AGC: f64 and division tests crash in amdvlk64 on RX 9060 XT (RDNA 4) since AMD driver 32.0.32015.2008 #7451

Closed
opened 2026-10-18 07:35:46 +00:00 by tezzgod74 · 5 comments
tezzgod74 commented 2026-10-18 07:35:46 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tezzgod74 on 2026-10-18T07:35:46Z.


On an RX 9060 XT (RDNA 4, 1002:7590, Windows), four f64 and division execution tests crash inside the AMD driver since it was updated from 32.0.31041.1004 to 32.0.32015.2008:

  • agc_driver_division_output_modifiers
  • agc_driver_division_result_modifiers
  • agc_driver_f64_conversions
  • agc_driver_f64_transcendental

The same AnyPS5 build that passed them on the old driver now crashes on the new one, so the change is the driver's.

AnyPS5 Driver 32.0.31041.1004 Driver 32.0.32015.2008
main 5aaf26bd3 + #4021 all four pass (full ctest, 2026-10-11) all four crash
main 20a84154f not run all four crash

The Ryzen 9 7950X iGPU (RDNA 2, 1002:164e, 32.0.21045.5002, unchanged) in the same machine passes all four on both commits.

Each crash is an access violation on a driver thread:

FATAL: unhandled exception 0xc0000005 on thread 35280 ''
  rip 0x00007fff8e4e271c amdvlk64.dll+0x14c271c
    [rsp+0x68] 0x00007fff8ebb8638 amdvlk64.dll+0x1b98638
    [rsp+0xb8] 0x00007fff8ebba40d amdvlk64.dll+0x1b9a40d
    [rsp+0x108] 0x00007fff8ebba789 amdvlk64.dll+0x1b9a789
    [rsp+0x288] 0x00007fff8ece9e6d amdvlk64.dll+0x1cc9e6d

APS5_NO_PIPELINE_LTO=1 and APS5_NO_GPL=1 don't change it, so this isn't the background pipeline link from #2944 / #3173. I haven't narrowed it to one instruction or program yet.

agc_driver_quad_pixel_mask also fails on this device on main and passes on the iGPU, with a value that changes from run to run and with the switches above:

AGC graphics: implicit-LOD sample with quad pixel mask 2: pixel (12, 0) channel 1 is 255, expected 0

I couldn't place it on the old driver: the test isn't in the 5aaf26bd3 tree, so its cause is open.

Several reports run an RX 9070 XT on 32.0.32015.2008 (#5631, #5679, #5781), but I didn't find one that ran these tests, so I don't know whether other RDNA 4 parts are affected.

Windows 11 Pro 10.0.26300, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON.

Reproduce

$env:ANYPS5_GPU = "RX 9060"
ctest --test-dir build -R '^agc_driver_(division_output_modifiers|division_result_modifiers|f64_conversions|f64_transcendental)$' --output-on-failure

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5907301842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451). Originally posted by [tezzgod74](https://github.com/tezzgod74) on 2026-10-18T07:35:46Z. --- On an RX 9060 XT (RDNA 4, `1002:7590`, Windows), four f64 and division execution tests crash inside the AMD driver since it was updated from 32.0.31041.1004 to 32.0.32015.2008: - `agc_driver_division_output_modifiers` - `agc_driver_division_result_modifiers` - `agc_driver_f64_conversions` - `agc_driver_f64_transcendental` The same AnyPS5 build that passed them on the old driver now crashes on the new one, so the change is the driver's. | AnyPS5 | Driver 32.0.31041.1004 | Driver 32.0.32015.2008 | |---|---|---| | `main` 5aaf26bd3 + #4021 | all four pass (full `ctest`, 2026-10-11) | all four crash | | `main` 20a84154f | not run | all four crash | The Ryzen 9 7950X iGPU (RDNA 2, `1002:164e`, 32.0.21045.5002, unchanged) in the same machine passes all four on both commits. Each crash is an access violation on a driver thread: ``` FATAL: unhandled exception 0xc0000005 on thread 35280 '' rip 0x00007fff8e4e271c amdvlk64.dll+0x14c271c [rsp+0x68] 0x00007fff8ebb8638 amdvlk64.dll+0x1b98638 [rsp+0xb8] 0x00007fff8ebba40d amdvlk64.dll+0x1b9a40d [rsp+0x108] 0x00007fff8ebba789 amdvlk64.dll+0x1b9a789 [rsp+0x288] 0x00007fff8ece9e6d amdvlk64.dll+0x1cc9e6d ``` `APS5_NO_PIPELINE_LTO=1` and `APS5_NO_GPL=1` don't change it, so this isn't the background pipeline link from #2944 / #3173. I haven't narrowed it to one instruction or program yet. `agc_driver_quad_pixel_mask` also fails on this device on `main` and passes on the iGPU, with a value that changes from run to run and with the switches above: ``` AGC graphics: implicit-LOD sample with quad pixel mask 2: pixel (12, 0) channel 1 is 255, expected 0 ``` I couldn't place it on the old driver: the test isn't in the 5aaf26bd3 tree, so its cause is open. Several reports run an RX 9070 XT on 32.0.32015.2008 (#5631, #5679, #5781), but I didn't find one that ran these tests, so I don't know whether other RDNA 4 parts are affected. Windows 11 Pro 10.0.26300, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`. ### Reproduce ``` $env:ANYPS5_GPU = "RX 9060" ctest --test-dir build -R '^agc_driver_(division_output_modifiers|division_result_modifiers|f64_conversions|f64_transcendental)$' --output-on-failure ``` AI-assisted: yes
LeandroLP23 commented 2026-10-18 09:52:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T09:52:32Z.


RDNA 3.5 data point: all four tests pass here, 3 runs of 3 each.

Radeon 860M (RDNA 3.5, 1002:1114, APU), AMD driver 32.0.13058.8001 (Vulkan driver info 24.30.58.08, LLPC), Windows 11 Home 26300, WinLibs GCC 15.2.0, Release. Build: main 1c523bdb4 + #6308 + #7264 (neither touches these paths).

agc_driver_division_output_modifiers, agc_driver_division_result_modifiers, agc_driver_f64_conversions and agc_driver_f64_transcendental all pass. The output confirms the Radeon 860M was the selected device. This is a different driver branch from either of yours, so it does not separate the architecture from the 32.0.32015.2008 update. It does show that the four tests are not failing on every recent AMD Windows driver.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248450634 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451#issuecomment-6248450634). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T09:52:32Z. --- RDNA 3.5 data point: all four tests pass here, 3 runs of 3 each. Radeon 860M (RDNA 3.5, `1002:1114`, APU), AMD driver 32.0.13058.8001 (Vulkan driver info 24.30.58.08, LLPC), Windows 11 Home 26300, WinLibs GCC 15.2.0, Release. Build: `main` `1c523bdb4` + #6308 + #7264 (neither touches these paths). `agc_driver_division_output_modifiers`, `agc_driver_division_result_modifiers`, `agc_driver_f64_conversions` and `agc_driver_f64_transcendental` all pass. The output confirms the Radeon 860M was the selected device. This is a different driver branch from either of yours, so it does not separate the architecture from the 32.0.32015.2008 update. It does show that the four tests are not failing on every recent AMD Windows driver. AI-assisted
savvaniss commented 2026-10-18 21:53:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:23Z.


RDNA 4 control on the driver this report calls good: on an RX 9070 XT the four tests pass with 32.0.31041.1004.

AMD Radeon RX 9070 XT (RDNA 4, 1002:7550), driver 32.0.31041.1004 (Adrenalin 26.8.1), Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, unchanged main f3059421f, ANYPS5_NO_SHADER_CACHE=1, serial CTest, VkCache emptied first.

Test, ×3 RX 9070 XT, 32.0.31041.1004
agc_driver_division_output_modifiers pass
agc_driver_division_result_modifiers pass
agc_driver_f64_conversions pass
agc_driver_f64_transcendental pass

They also passed in a full CTest run of the same build. I haven't tried 32.0.32015.2008 on this card. If I update the driver, I'll rerun these four and post the result here.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255605694 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451#issuecomment-6255605694). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-18T21:53:23Z. --- RDNA 4 control on the driver this report calls good: on an RX 9070 XT the four tests pass with 32.0.31041.1004. AMD Radeon RX 9070 XT (RDNA 4, `1002:7550`), driver 32.0.31041.1004 (Adrenalin 26.8.1), Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, unchanged `main` `f3059421f`, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest, `VkCache` emptied first. | Test, ×3 | RX 9070 XT, 32.0.31041.1004 | |---|---| | `agc_driver_division_output_modifiers` | pass | | `agc_driver_division_result_modifiers` | pass | | `agc_driver_f64_conversions` | pass | | `agc_driver_f64_transcendental` | pass | They also passed in a full CTest run of the same build. I haven't tried 32.0.32015.2008 on this card. If I update the driver, I'll rerun these four and post the result here. AI-assisted: yes (Claude Code)
BunnyFl commented 2026-10-21 10:34:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T10:34:42Z.


RX 9070 XT on a newer driver than the report's: the same four tests crash.

AMD Radeon RX 9070 XT (RDNA 4, 1002:7550), driver 32.0.32015.7029 (Adrenalin 26.10.1), Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release, unchanged main 27c88a8d7, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, serial CTest (the driver's own VkCache was not cleared).

Test, ×3 RX 9070 XT, 32.0.32015.7029
agc_driver_division_output_modifiers SegFault
agc_driver_division_result_modifiers SegFault
agc_driver_f64_conversions SegFault
agc_driver_f64_transcendental SegFault
agc_driver_quad_pixel_mask pass

As in the report, the crash is an access violation on a driver thread (agc_driver_f64_conversions_tests.exe run directly):

FATAL: unhandled exception 0xc0000005 on thread 28768 ''
  rip 0x00007fff5ef41ecc amdvlk64.dll+0x1491ecc
    [rsp+0x68] 0x00007fff5f969408 amdvlk64.dll+0x1eb9408
    [rsp+0xb8] 0x00007fff5f96b1cd amdvlk64.dll+0x1ebb1cd
    [rsp+0x108] 0x00007fff5f96b549 amdvlk64.dll+0x1ebb549
    [rsp+0x288] 0x00007fff5fa8eb6d amdvlk64.dll+0x1fdeb6d

With @savvaniss's result for this card on 32.0.31041.1004, this points at the driver change on RDNA 4 rather than the RX 9060 XT alone, and 32.0.32015.7029 still has it.

It is a pipeline compile crash. With APS5_DUMP_COMPUTE_PIPELINES, agc_driver_f64_conversions captures 13 compute pipelines before it crashes; replayed one at a time with agc_compute_pipeline_replay (compile only, no dispatch), 12 compile and one, compute-7e97bd66c3bfe19b, crashes at the same amdvlk64.dll+0x1491ecc. Its SPIR-V (1.4, 6,687 words, Float64, SPV_KHR_float_controls) passes spirv-val --target-env vulkan1.3. Removing its SignedZeroInfNanPreserve 64 execution mode, or its two 32-bit float-control modes, does not avoid the crash. I'm reducing that module with spirv-reduce and will post the smallest crashing module here.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313868700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451#issuecomment-6313868700). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-21T10:34:42Z. --- RX 9070 XT on a newer driver than the report's: the same four tests crash. AMD Radeon RX 9070 XT (RDNA 4, `1002:7550`), driver 32.0.32015.7029 (Adrenalin 26.10.1), Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release, unchanged `main` 27c88a8d7, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, serial CTest (the driver's own `VkCache` was not cleared). | Test, ×3 | RX 9070 XT, 32.0.32015.7029 | |---|---| | `agc_driver_division_output_modifiers` | SegFault | | `agc_driver_division_result_modifiers` | SegFault | | `agc_driver_f64_conversions` | SegFault | | `agc_driver_f64_transcendental` | SegFault | | `agc_driver_quad_pixel_mask` | pass | As in the report, the crash is an access violation on a driver thread (`agc_driver_f64_conversions_tests.exe` run directly): ``` FATAL: unhandled exception 0xc0000005 on thread 28768 '' rip 0x00007fff5ef41ecc amdvlk64.dll+0x1491ecc [rsp+0x68] 0x00007fff5f969408 amdvlk64.dll+0x1eb9408 [rsp+0xb8] 0x00007fff5f96b1cd amdvlk64.dll+0x1ebb1cd [rsp+0x108] 0x00007fff5f96b549 amdvlk64.dll+0x1ebb549 [rsp+0x288] 0x00007fff5fa8eb6d amdvlk64.dll+0x1fdeb6d ``` With @savvaniss's result for this card on 32.0.31041.1004, this points at the driver change on RDNA 4 rather than the RX 9060 XT alone, and 32.0.32015.7029 still has it. It is a pipeline compile crash. With `APS5_DUMP_COMPUTE_PIPELINES`, `agc_driver_f64_conversions` captures 13 compute pipelines before it crashes; replayed one at a time with `agc_compute_pipeline_replay` (compile only, no dispatch), 12 compile and one, `compute-7e97bd66c3bfe19b`, crashes at the same `amdvlk64.dll+0x1491ecc`. Its SPIR-V (1.4, 6,687 words, `Float64`, `SPV_KHR_float_controls`) passes `spirv-val --target-env vulkan1.3`. Removing its `SignedZeroInfNanPreserve 64` execution mode, or its two 32-bit float-control modes, does not avoid the crash. I'm reducing that module with `spirv-reduce` and will post the smallest crashing module here. AI-assisted: yes (Claude Code)
BunnyFl commented 2026-10-21 10:55:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T10:55:02Z.


Follow-up: spirv-reduce (SPIRV-Tools from the repository's submodule, 1,500 steps) shrank compute-7e97bd66c3bfe19b from 6,687 words to the module below, keeping only candidates that crash at amdvlk64.dll+0x1491ecc when compiled with agc_compute_pipeline_replay (RX 9070 XT, 32.0.32015.7029). It passes spirv-val --target-env vulkan1.3 and crashes in 3 of 3 compiles. Its function is a 64-bit compare-and-select of a value read from memory:

%420 = OpLoad %uint %421
%553 = OpCompositeConstruct %v2uint %uint_32 %420
%554 = OpBitcast %double %553
%558 = OpFOrdLessThan %bool %554 %double_1
%559 = OpSelect %double %558 %554 %double_1
%561 = OpBitcast %v2uint %559
%563 = OpCompositeExtract %uint %561 1

and %563 is then used as the index of a store.

One change at a time, each variant valid and compiled twice:

Variant Result
reduced module crash, crash
without SignedZeroInfNanPreserve 64 crash, crash
with only one of the three float-control modes kept (any of DenormFlushToZero 32, SignedZeroInfNanPreserve 32, SignedZeroInfNanPreserve 64) crash, crash (each)
without any float-control execution mode compiles, compiles
%559 replaced by %554 (no compare and select) compiles, compiles
the select made on the v2uint halves, then bitcast to double compiles, compiles
the compare kept, the select between two constants compiles, compiles
GLSL.std.450 FMin instead of compare and select compiles, compiles
%563 stored as a value at index 0 crash, crash
the low half extracted instead of the high half crash, crash

So in this module the crash needs a float-control execution mode (any one, also a 32-bit one) together with a 64-bit OpSelect between a runtime double and a constant under a 64-bit compare.

That is not the whole story for the original module: rewriting all three of its 64-bit OpSelects on v2uint halves still crashes at the same address (3 of 3), so something else in it reaches the same failure. I haven't reduced that further.

Reduced module (spirv-dis)
; SPIR-V
; Version: 1.4
; Generator: Khronos; 0
; Bound: 2854
; Schema: 0
               OpCapability Shader
               OpCapability GroupNonUniform
               OpCapability SignedZeroInfNanPreserve
               OpCapability DenormFlushToZero
               OpCapability Float64
               OpExtension "SPV_KHR_float_controls"
        %720 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %19 "main" %18
               OpExecutionMode %19 SignedZeroInfNanPreserve 32
               OpExecutionMode %19 DenormFlushToZero 32
               OpExecutionMode %19 SignedZeroInfNanPreserve 64
               OpExecutionMode %19 LocalSize 32 1 1
               OpDecorate %_runtimearr_uint ArrayStride 4
               OpDecorate %_struct_14 Block
               OpMemberDecorate %_struct_14 0 Offset 0
               OpDecorate %18 DescriptorSet 0
               OpDecorate %18 Binding 0
       %uint = OpTypeInt 32 0
    %uint_32 = OpConstant %uint 32
%_runtimearr_uint = OpTypeRuntimeArray %uint
 %_struct_14 = OpTypeStruct %_runtimearr_uint
     %uint_2 = OpConstant %uint 2
%_arr__struct_14_uint_2 = OpTypeArray %_struct_14 %uint_2
%_ptr_StorageBuffer__arr__struct_14_uint_2 = OpTypePointer StorageBuffer %_arr__struct_14_uint_2
         %18 = OpVariable %_ptr_StorageBuffer__arr__struct_14_uint_2 StorageBuffer
       %void = OpTypeVoid
         %24 = OpTypeFunction %void
     %uint_0 = OpConstant %uint 0
     %uint_8 = OpConstant %uint 8
   %uint_0_0 = OpConstant %uint 0
   %uint_255 = OpConstant %uint 255
     %uint_1 = OpConstant %uint 1
     %uint_3 = OpConstant %uint 3
     %uint_4 = OpConstant %uint 4
     %uint_5 = OpConstant %uint 5
     %uint_6 = OpConstant %uint 6
     %uint_7 = OpConstant %uint 7
     %v4uint = OpTypeVector %uint 4
         %85 = OpConstantComposite %v4uint %uint_0_0 %uint_0_0 %uint_0_0 %uint_0_0
       %bool = OpTypeBool
       %true = OpConstantTrue %bool
   %uint_0_1 = OpConstant %uint 0
%uint_822177708 = OpConstant %uint 822177708
    %uint_30 = OpConstant %uint 30
    %uint_23 = OpConstant %uint 23
    %uint_31 = OpConstant %uint 31
    %uint_14 = OpConstant %uint 14
    %uint_16 = OpConstant %uint 16
   %uint_1_0 = OpConstant %uint 1
    %uint_21 = OpConstant %uint 21
%uint_4294967292 = OpConstant %uint 4294967292
    %uint_28 = OpConstant %uint 28
    %uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer__struct_14 = OpTypePointer StorageBuffer %_struct_14
   %uint_0_2 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_4294967295 = OpConstant %uint 4294967295
     %double = OpTypeFloat 64
     %v2uint = OpTypeVector %uint 2
%uint_2139095040 = OpConstant %uint 2139095040
%uint_2147483647 = OpConstant %uint 2147483647
%uint_2147483648 = OpConstant %uint 2147483648
%uint_8388607 = OpConstant %uint 8388607
%uint_2146959360 = OpConstant %uint 2146959360
    %uint_29 = OpConstant %uint 29
%uint_2146435072 = OpConstant %uint 2146435072
%uint_524288 = OpConstant %uint 524288
        %int = OpTypeInt 32 1
%uint_4294443008 = OpConstant %uint 4294443008
   %double_0 = OpConstant %double 0
   %double_1 = OpConstant %double 1
%uint_1074266112 = OpConstant %uint 1074266112
        %631 = OpConstantComposite %v2uint %uint_0_0 %uint_1074266112
  %uint_2047 = OpConstant %uint 2047
    %uint_20 = OpConstant %uint 20
  %uint_1075 = OpConstant %uint 1075
  %uint_1023 = OpConstant %uint 1023
%uint_1069834032 = OpConstant %uint 1069834032
%uint_1841940610 = OpConstant %uint 1841940610
        %759 = OpConstantComposite %v2uint %uint_1841940610 %uint_1069834032
%uint_1072693248 = OpConstant %uint 1072693248
        %761 = OpConstantComposite %v2uint %uint_0_0 %uint_1072693248
      %int_0 = OpConstant %int 0
%double_1_8446744073709552e_19 = OpConstant %double 1.8446744073709552e+19
     %int_64 = OpConstant %int 64
   %int_2046 = OpConstant %int 2046
   %int_1023 = OpConstant %int 1023
     %int_60 = OpConstant %int 60
   %int_n150 = OpConstant %int -150
%uint_915406848 = OpConstant %uint 915406848
%uint_2148532223 = OpConstant %uint 2148532223
%double_134217729 = OpConstant %double 134217729
      %int_1 = OpConstant %int 1
     %int_54 = OpConstant %int 54
%uint_1048576 = OpConstant %uint 1048576
%uint_1048575 = OpConstant %uint 1048575
    %uint_33 = OpConstant %uint 33
    %int_n60 = OpConstant %int -60
   %int_2047 = OpConstant %int 2047
   %uint_0_3 = OpConstant %uint 0
%uint_822177708_0 = OpConstant %uint 822177708
   %uint_1_1 = OpConstant %uint 1
   %uint_0_4 = OpConstant %uint 0
    %uint_72 = OpConstant %uint 72
    %uint_24 = OpConstant %uint 24
    %uint_36 = OpConstant %uint 36
    %uint_40 = OpConstant %uint 40
    %uint_44 = OpConstant %uint 44
    %uint_48 = OpConstant %uint 48
    %uint_52 = OpConstant %uint 52
    %uint_56 = OpConstant %uint 56
    %uint_60 = OpConstant %uint 60
       %2849 = OpUndef %bool
       %2850 = OpUndef %uint
       %2851 = OpUndef %v2uint
       %2852 = OpUndef %double
       %2853 = OpUndef %int
         %19 = OpFunction %void None %24
         %20 = OpLabel
        %404 = OpAccessChain %_ptr_StorageBuffer__struct_14 %18 %uint_0_0
        %421 = OpAccessChain %_ptr_StorageBuffer_uint %404 %uint_0_0 %uint_2148532223
        %420 = OpLoad %uint %421
        %422 = OpShiftRightLogical %uint %420 %uint_0
        %553 = OpCompositeConstruct %v2uint %uint_32 %422
        %554 = OpBitcast %double %553
        %558 = OpFOrdLessThan %bool %554 %double_1
        %559 = OpSelect %double %558 %554 %double_1
        %561 = OpBitcast %v2uint %559
        %563 = OpCompositeExtract %uint %561 1
       %1950 = OpAccessChain %_ptr_StorageBuffer__struct_14 %18 %uint_1
       %1965 = OpAccessChain %_ptr_StorageBuffer_uint %1950 %uint_0_0 %563
               OpStore %1965 %uint_915406848
               OpReturn
               OpFunctionEnd

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6314215203 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451#issuecomment-6314215203). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-21T10:55:02Z. --- Follow-up: `spirv-reduce` (SPIRV-Tools from the repository's submodule, 1,500 steps) shrank `compute-7e97bd66c3bfe19b` from 6,687 words to the module below, keeping only candidates that crash at `amdvlk64.dll+0x1491ecc` when compiled with `agc_compute_pipeline_replay` (RX 9070 XT, 32.0.32015.7029). It passes `spirv-val --target-env vulkan1.3` and crashes in 3 of 3 compiles. Its function is a 64-bit compare-and-select of a value read from memory: ``` %420 = OpLoad %uint %421 %553 = OpCompositeConstruct %v2uint %uint_32 %420 %554 = OpBitcast %double %553 %558 = OpFOrdLessThan %bool %554 %double_1 %559 = OpSelect %double %558 %554 %double_1 %561 = OpBitcast %v2uint %559 %563 = OpCompositeExtract %uint %561 1 ``` and `%563` is then used as the index of a store. One change at a time, each variant valid and compiled twice: | Variant | Result | |---|---| | reduced module | crash, crash | | without `SignedZeroInfNanPreserve 64` | crash, crash | | with only one of the three float-control modes kept (any of `DenormFlushToZero 32`, `SignedZeroInfNanPreserve 32`, `SignedZeroInfNanPreserve 64`) | crash, crash (each) | | without any float-control execution mode | compiles, compiles | | `%559` replaced by `%554` (no compare and select) | compiles, compiles | | the select made on the `v2uint` halves, then bitcast to `double` | compiles, compiles | | the compare kept, the select between two constants | compiles, compiles | | `GLSL.std.450 FMin` instead of compare and select | compiles, compiles | | `%563` stored as a value at index 0 | crash, crash | | the low half extracted instead of the high half | crash, crash | So in this module the crash needs a float-control execution mode (any one, also a 32-bit one) together with a 64-bit `OpSelect` between a runtime double and a constant under a 64-bit compare. That is not the whole story for the original module: rewriting all three of its 64-bit `OpSelect`s on `v2uint` halves still crashes at the same address (3 of 3), so something else in it reaches the same failure. I haven't reduced that further. <details> <summary>Reduced module (spirv-dis)</summary> ``` ; SPIR-V ; Version: 1.4 ; Generator: Khronos; 0 ; Bound: 2854 ; Schema: 0 OpCapability Shader OpCapability GroupNonUniform OpCapability SignedZeroInfNanPreserve OpCapability DenormFlushToZero OpCapability Float64 OpExtension "SPV_KHR_float_controls" %720 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %19 "main" %18 OpExecutionMode %19 SignedZeroInfNanPreserve 32 OpExecutionMode %19 DenormFlushToZero 32 OpExecutionMode %19 SignedZeroInfNanPreserve 64 OpExecutionMode %19 LocalSize 32 1 1 OpDecorate %_runtimearr_uint ArrayStride 4 OpDecorate %_struct_14 Block OpMemberDecorate %_struct_14 0 Offset 0 OpDecorate %18 DescriptorSet 0 OpDecorate %18 Binding 0 %uint = OpTypeInt 32 0 %uint_32 = OpConstant %uint 32 %_runtimearr_uint = OpTypeRuntimeArray %uint %_struct_14 = OpTypeStruct %_runtimearr_uint %uint_2 = OpConstant %uint 2 %_arr__struct_14_uint_2 = OpTypeArray %_struct_14 %uint_2 %_ptr_StorageBuffer__arr__struct_14_uint_2 = OpTypePointer StorageBuffer %_arr__struct_14_uint_2 %18 = OpVariable %_ptr_StorageBuffer__arr__struct_14_uint_2 StorageBuffer %void = OpTypeVoid %24 = OpTypeFunction %void %uint_0 = OpConstant %uint 0 %uint_8 = OpConstant %uint 8 %uint_0_0 = OpConstant %uint 0 %uint_255 = OpConstant %uint 255 %uint_1 = OpConstant %uint 1 %uint_3 = OpConstant %uint 3 %uint_4 = OpConstant %uint 4 %uint_5 = OpConstant %uint 5 %uint_6 = OpConstant %uint 6 %uint_7 = OpConstant %uint 7 %v4uint = OpTypeVector %uint 4 %85 = OpConstantComposite %v4uint %uint_0_0 %uint_0_0 %uint_0_0 %uint_0_0 %bool = OpTypeBool %true = OpConstantTrue %bool %uint_0_1 = OpConstant %uint 0 %uint_822177708 = OpConstant %uint 822177708 %uint_30 = OpConstant %uint 30 %uint_23 = OpConstant %uint 23 %uint_31 = OpConstant %uint 31 %uint_14 = OpConstant %uint 14 %uint_16 = OpConstant %uint 16 %uint_1_0 = OpConstant %uint 1 %uint_21 = OpConstant %uint 21 %uint_4294967292 = OpConstant %uint 4294967292 %uint_28 = OpConstant %uint 28 %uint_12 = OpConstant %uint 12 %_ptr_StorageBuffer__struct_14 = OpTypePointer StorageBuffer %_struct_14 %uint_0_2 = OpConstant %uint 0 %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint %uint_4294967295 = OpConstant %uint 4294967295 %double = OpTypeFloat 64 %v2uint = OpTypeVector %uint 2 %uint_2139095040 = OpConstant %uint 2139095040 %uint_2147483647 = OpConstant %uint 2147483647 %uint_2147483648 = OpConstant %uint 2147483648 %uint_8388607 = OpConstant %uint 8388607 %uint_2146959360 = OpConstant %uint 2146959360 %uint_29 = OpConstant %uint 29 %uint_2146435072 = OpConstant %uint 2146435072 %uint_524288 = OpConstant %uint 524288 %int = OpTypeInt 32 1 %uint_4294443008 = OpConstant %uint 4294443008 %double_0 = OpConstant %double 0 %double_1 = OpConstant %double 1 %uint_1074266112 = OpConstant %uint 1074266112 %631 = OpConstantComposite %v2uint %uint_0_0 %uint_1074266112 %uint_2047 = OpConstant %uint 2047 %uint_20 = OpConstant %uint 20 %uint_1075 = OpConstant %uint 1075 %uint_1023 = OpConstant %uint 1023 %uint_1069834032 = OpConstant %uint 1069834032 %uint_1841940610 = OpConstant %uint 1841940610 %759 = OpConstantComposite %v2uint %uint_1841940610 %uint_1069834032 %uint_1072693248 = OpConstant %uint 1072693248 %761 = OpConstantComposite %v2uint %uint_0_0 %uint_1072693248 %int_0 = OpConstant %int 0 %double_1_8446744073709552e_19 = OpConstant %double 1.8446744073709552e+19 %int_64 = OpConstant %int 64 %int_2046 = OpConstant %int 2046 %int_1023 = OpConstant %int 1023 %int_60 = OpConstant %int 60 %int_n150 = OpConstant %int -150 %uint_915406848 = OpConstant %uint 915406848 %uint_2148532223 = OpConstant %uint 2148532223 %double_134217729 = OpConstant %double 134217729 %int_1 = OpConstant %int 1 %int_54 = OpConstant %int 54 %uint_1048576 = OpConstant %uint 1048576 %uint_1048575 = OpConstant %uint 1048575 %uint_33 = OpConstant %uint 33 %int_n60 = OpConstant %int -60 %int_2047 = OpConstant %int 2047 %uint_0_3 = OpConstant %uint 0 %uint_822177708_0 = OpConstant %uint 822177708 %uint_1_1 = OpConstant %uint 1 %uint_0_4 = OpConstant %uint 0 %uint_72 = OpConstant %uint 72 %uint_24 = OpConstant %uint 24 %uint_36 = OpConstant %uint 36 %uint_40 = OpConstant %uint 40 %uint_44 = OpConstant %uint 44 %uint_48 = OpConstant %uint 48 %uint_52 = OpConstant %uint 52 %uint_56 = OpConstant %uint 56 %uint_60 = OpConstant %uint 60 %2849 = OpUndef %bool %2850 = OpUndef %uint %2851 = OpUndef %v2uint %2852 = OpUndef %double %2853 = OpUndef %int %19 = OpFunction %void None %24 %20 = OpLabel %404 = OpAccessChain %_ptr_StorageBuffer__struct_14 %18 %uint_0_0 %421 = OpAccessChain %_ptr_StorageBuffer_uint %404 %uint_0_0 %uint_2148532223 %420 = OpLoad %uint %421 %422 = OpShiftRightLogical %uint %420 %uint_0 %553 = OpCompositeConstruct %v2uint %uint_32 %422 %554 = OpBitcast %double %553 %558 = OpFOrdLessThan %bool %554 %double_1 %559 = OpSelect %double %558 %554 %double_1 %561 = OpBitcast %v2uint %559 %563 = OpCompositeExtract %uint %561 1 %1950 = OpAccessChain %_ptr_StorageBuffer__struct_14 %18 %uint_1 %1965 = OpAccessChain %_ptr_StorageBuffer_uint %1950 %uint_0_0 %563 OpStore %1965 %uint_915406848 OpReturn OpFunctionEnd ``` </details> AI-assisted: yes (Claude Code)
BunnyFl commented 2026-10-21 11:25:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-21T11:25:02Z.


Second trigger. I reduced the original module again with its three 64-bit OpSelects rewritten on v2uint halves (the version that still crashed). spirv-reduce stopped at its 1,500-step limit, so the result is not minimal, but it is valid (spirv-val --target-env vulkan1.3) and crashes at the same amdvlk64.dll+0x1491ecc in 3 of 3 compiles. It has no OpSelect on double; its function clamps a double built from a loaded word to [0, 1] with two compares and two selects on the halves:

%393 = OpBitcast %double %392
%394 = OpFOrdGreaterThan %bool %393 %double_0
%395 = OpFOrdLessThan %bool %393 %double_1
%396 = OpBitcast %v2uint %393
%398 = OpSelect %v2uint %395 %396 %1276
%399 = OpBitcast %double %398
%400 = OpBitcast %v2uint %399
%401 = OpBitcast %v2uint %double_0
%402 = OpSelect %v2uint %394 %400 %401

One change at a time, each variant valid and compiled twice:

Variant Result
reduced module crash, crash
without any float-control execution mode crash, crash
%395 (x < 1) replaced by true crash, crash
%394 (x > 0) replaced by true compiles, compiles
%394 as OpFOrdGreaterThanEqual compiles, compiles
%394 as OpFUnordGreaterThan compiles, compiles
%394 as OpFOrdLessThan %double_0 %393 (0 < x) crash, crash
%394 comparing with 0.5 instead of 0 compiles, compiles
%394 kept, %402 selecting between two constants compiles, compiles
%394 kept, used as a 0/1 value instead of selecting x compiles, compiles
%394 as OpLogicalNot of OpFUnordLessThanEqual %393 %double_0 (same result for every input) crash, crash
both compares done on the high word as integers compiles, compiles

So this one needs an ordered 64-bit x > 0.0 that chooses between x and 0.0, and it crashes without float-control modes too. Together with the first trigger (x < 1.0 ? x : 1.0 with a float-control mode), both are a 64-bit min or max of a runtime value with a constant written as a compare and a select. My guess is that the driver's recognition of that idiom on 64-bit floats is what fails, but I haven't shown that. The same-result rewrite in the table still crashes, so I haven't found a form AnyPS5 could emit that the driver doesn't turn back into the same pattern.

Reduced module (spirv-dis)
; SPIR-V
; Version: 1.4
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 1280
; Schema: 0
               OpCapability Shader
               OpCapability GroupNonUniform
               OpCapability SignedZeroInfNanPreserve
               OpCapability DenormFlushToZero
               OpCapability Float64
               OpExtension "SPV_KHR_float_controls"
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %2 "main" %7
               OpExecutionMode %2 SignedZeroInfNanPreserve 32
               OpExecutionMode %2 DenormFlushToZero 32
               OpExecutionMode %2 SignedZeroInfNanPreserve 64
               OpExecutionMode %2 LocalSize 32 1 1
               OpDecorate %_runtimearr_uint ArrayStride 4
               OpDecorate %_struct_11 Block
               OpMemberDecorate %_struct_11 0 Offset 0
               OpDecorate %7 DescriptorSet 0
               OpDecorate %7 Binding 0
       %uint = OpTypeInt 32 0
    %uint_32 = OpConstant %uint 32
%_runtimearr_uint = OpTypeRuntimeArray %uint
 %_struct_11 = OpTypeStruct %_runtimearr_uint
     %uint_2 = OpConstant %uint 2
%_arr__struct_11_uint_2 = OpTypeArray %_struct_11 %uint_2
%_ptr_StorageBuffer__arr__struct_11_uint_2 = OpTypePointer StorageBuffer %_arr__struct_11_uint_2
          %7 = OpVariable %_ptr_StorageBuffer__arr__struct_11_uint_2 StorageBuffer
       %void = OpTypeVoid
         %77 = OpTypeFunction %void
     %uint_0 = OpConstant %uint 0
     %uint_8 = OpConstant %uint 8
   %uint_0_0 = OpConstant %uint 0
   %uint_255 = OpConstant %uint 255
     %uint_1 = OpConstant %uint 1
     %uint_3 = OpConstant %uint 3
     %uint_4 = OpConstant %uint 4
     %uint_5 = OpConstant %uint 5
     %uint_6 = OpConstant %uint 6
     %uint_7 = OpConstant %uint 7
     %v4uint = OpTypeVector %uint 4
         %90 = OpConstantComposite %v4uint %uint_0_0 %uint_0_0 %uint_0_0 %uint_0_0
       %bool = OpTypeBool
       %true = OpConstantTrue %bool
   %uint_0_1 = OpConstant %uint 0
%uint_822177708 = OpConstant %uint 822177708
    %uint_30 = OpConstant %uint 30
    %uint_23 = OpConstant %uint 23
    %uint_31 = OpConstant %uint 31
    %uint_14 = OpConstant %uint 14
    %uint_16 = OpConstant %uint 16
   %uint_1_0 = OpConstant %uint 1
    %uint_21 = OpConstant %uint 21
%uint_4294967292 = OpConstant %uint 4294967292
    %uint_28 = OpConstant %uint 28
    %uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer__struct_11 = OpTypePointer StorageBuffer %_struct_11
   %uint_0_2 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_4294967295 = OpConstant %uint 4294967295
     %double = OpTypeFloat 64
     %v2uint = OpTypeVector %uint 2
%uint_2139095040 = OpConstant %uint 2139095040
%uint_2147483647 = OpConstant %uint 2147483647
%uint_2147483648 = OpConstant %uint 2147483648
%uint_8388607 = OpConstant %uint 8388607
%uint_2146959360 = OpConstant %uint 2146959360
    %uint_29 = OpConstant %uint 29
%uint_2146435072 = OpConstant %uint 2146435072
%uint_524288 = OpConstant %uint 524288
        %int = OpTypeInt 32 1
%uint_4294443008 = OpConstant %uint 4294443008
   %double_0 = OpConstant %double 0
   %double_1 = OpConstant %double 1
%uint_1074266112 = OpConstant %uint 1074266112
        %125 = OpConstantComposite %v2uint %uint_0_0 %uint_1074266112
  %uint_2047 = OpConstant %uint 2047
    %uint_20 = OpConstant %uint 20
  %uint_1075 = OpConstant %uint 1075
  %uint_1023 = OpConstant %uint 1023
%uint_1069834032 = OpConstant %uint 1069834032
%uint_1841940610 = OpConstant %uint 1841940610
        %132 = OpConstantComposite %v2uint %uint_1841940610 %uint_1069834032
%uint_1072693248 = OpConstant %uint 1072693248
        %134 = OpConstantComposite %v2uint %uint_0_0 %uint_1072693248
      %int_0 = OpConstant %int 0
%double_1_8446744073709552e_19 = OpConstant %double 1.8446744073709552e+19
     %int_64 = OpConstant %int 64
   %int_2046 = OpConstant %int 2046
   %int_1023 = OpConstant %int 1023
     %int_60 = OpConstant %int 60
   %int_n150 = OpConstant %int -150
%uint_915406848 = OpConstant %uint 915406848
%uint_2148532223 = OpConstant %uint 2148532223
%double_134217729 = OpConstant %double 134217729
      %int_1 = OpConstant %int 1
     %int_54 = OpConstant %int 54
%uint_1048576 = OpConstant %uint 1048576
%uint_1048575 = OpConstant %uint 1048575
    %uint_33 = OpConstant %uint 33
    %int_n60 = OpConstant %int -60
   %int_2047 = OpConstant %int 2047
   %uint_0_3 = OpConstant %uint 0
%uint_822177708_0 = OpConstant %uint 822177708
   %uint_1_1 = OpConstant %uint 1
   %uint_0_4 = OpConstant %uint 0
    %uint_72 = OpConstant %uint 72
    %uint_24 = OpConstant %uint 24
    %uint_36 = OpConstant %uint 36
    %uint_40 = OpConstant %uint 40
    %uint_44 = OpConstant %uint 44
    %uint_48 = OpConstant %uint 48
    %uint_52 = OpConstant %uint 52
    %uint_56 = OpConstant %uint 56
    %uint_60 = OpConstant %uint 60
       %1274 = OpUndef %uint
       %1275 = OpUndef %bool
       %1276 = OpUndef %v2uint
       %1277 = OpUndef %double
       %1278 = OpUndef %int
       %1279 = OpUndef %v4uint
          %2 = OpFunction %void None %77
        %165 = OpLabel
        %293 = OpAccessChain %_ptr_StorageBuffer__struct_11 %7 %uint_0_0
        %297 = OpIAdd %uint %uint_32 %uint_32
        %303 = OpAccessChain %_ptr_StorageBuffer_uint %293 %uint_0_0 %297
        %304 = OpLoad %uint %303
        %305 = OpShiftRightLogical %uint %304 %uint_0
        %308 = OpBitwiseOr %uint %305 %uint_0_0
        %309 = OpBitwiseAnd %uint %308 %uint_4294967295
               OpBranch %300
        %302 = OpLabel
               OpBranch %300
        %300 = OpLabel
        %311 = OpPhi %uint %309 %165 %uint_0_0 %302
        %312 = OpCompositeConstruct %v4uint %1274 %uint_32 %uint_32 %311
        %317 = OpCompositeExtract %uint %312 3
        %356 = OpCompositeConstruct %v2uint %1274 %317
        %382 = OpCompositeExtract %uint %356 1
        %383 = OpBitwiseAnd %uint %382 %uint_2147483647
        %384 = OpUGreaterThan %bool %383 %uint_2146435072
        %388 = OpLogicalOr %bool %384 %true
        %389 = OpBitwiseOr %uint %382 %uint_524288
        %391 = OpSelect %uint %true %389 %1274
        %392 = OpCompositeConstruct %v2uint %1274 %391
        %393 = OpBitcast %double %392
        %394 = OpFOrdGreaterThan %bool %393 %double_0
        %395 = OpFOrdLessThan %bool %393 %double_1
        %396 = OpBitcast %v2uint %393
        %398 = OpSelect %v2uint %395 %396 %1276
        %399 = OpBitcast %double %398
        %400 = OpBitcast %v2uint %399
        %401 = OpBitcast %v2uint %double_0
        %402 = OpSelect %v2uint %394 %400 %401
        %403 = OpBitcast %double %402
        %404 = OpBitcast %v2uint %403
        %406 = OpCompositeExtract %uint %404 1
       %1040 = OpAccessChain %_ptr_StorageBuffer__struct_11 %7 %uint_1
       %1049 = OpAccessChain %_ptr_StorageBuffer_uint %1040 %uint_0_0 %406
               OpStore %1049 %406
               OpReturn
               OpFunctionEnd

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6314737940 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7451#issuecomment-6314737940). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-21T11:25:02Z. --- Second trigger. I reduced the original module again with its three 64-bit `OpSelect`s rewritten on `v2uint` halves (the version that still crashed). `spirv-reduce` stopped at its 1,500-step limit, so the result is not minimal, but it is valid (`spirv-val --target-env vulkan1.3`) and crashes at the same `amdvlk64.dll+0x1491ecc` in 3 of 3 compiles. It has no `OpSelect` on `double`; its function clamps a double built from a loaded word to [0, 1] with two compares and two selects on the halves: ``` %393 = OpBitcast %double %392 %394 = OpFOrdGreaterThan %bool %393 %double_0 %395 = OpFOrdLessThan %bool %393 %double_1 %396 = OpBitcast %v2uint %393 %398 = OpSelect %v2uint %395 %396 %1276 %399 = OpBitcast %double %398 %400 = OpBitcast %v2uint %399 %401 = OpBitcast %v2uint %double_0 %402 = OpSelect %v2uint %394 %400 %401 ``` One change at a time, each variant valid and compiled twice: | Variant | Result | |---|---| | reduced module | crash, crash | | without any float-control execution mode | crash, crash | | `%395` (`x < 1`) replaced by `true` | crash, crash | | `%394` (`x > 0`) replaced by `true` | compiles, compiles | | `%394` as `OpFOrdGreaterThanEqual` | compiles, compiles | | `%394` as `OpFUnordGreaterThan` | compiles, compiles | | `%394` as `OpFOrdLessThan %double_0 %393` (`0 < x`) | crash, crash | | `%394` comparing with 0.5 instead of 0 | compiles, compiles | | `%394` kept, `%402` selecting between two constants | compiles, compiles | | `%394` kept, used as a 0/1 value instead of selecting `x` | compiles, compiles | | `%394` as `OpLogicalNot` of `OpFUnordLessThanEqual %393 %double_0` (same result for every input) | crash, crash | | both compares done on the high word as integers | compiles, compiles | So this one needs an ordered 64-bit `x > 0.0` that chooses between `x` and 0.0, and it crashes without float-control modes too. Together with the first trigger (`x < 1.0 ? x : 1.0` with a float-control mode), both are a 64-bit min or max of a runtime value with a constant written as a compare and a select. My guess is that the driver's recognition of that idiom on 64-bit floats is what fails, but I haven't shown that. The same-result rewrite in the table still crashes, so I haven't found a form AnyPS5 could emit that the driver doesn't turn back into the same pattern. <details> <summary>Reduced module (spirv-dis)</summary> ``` ; SPIR-V ; Version: 1.4 ; Generator: Khronos SPIR-V Tools Assembler; 0 ; Bound: 1280 ; Schema: 0 OpCapability Shader OpCapability GroupNonUniform OpCapability SignedZeroInfNanPreserve OpCapability DenormFlushToZero OpCapability Float64 OpExtension "SPV_KHR_float_controls" %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %2 "main" %7 OpExecutionMode %2 SignedZeroInfNanPreserve 32 OpExecutionMode %2 DenormFlushToZero 32 OpExecutionMode %2 SignedZeroInfNanPreserve 64 OpExecutionMode %2 LocalSize 32 1 1 OpDecorate %_runtimearr_uint ArrayStride 4 OpDecorate %_struct_11 Block OpMemberDecorate %_struct_11 0 Offset 0 OpDecorate %7 DescriptorSet 0 OpDecorate %7 Binding 0 %uint = OpTypeInt 32 0 %uint_32 = OpConstant %uint 32 %_runtimearr_uint = OpTypeRuntimeArray %uint %_struct_11 = OpTypeStruct %_runtimearr_uint %uint_2 = OpConstant %uint 2 %_arr__struct_11_uint_2 = OpTypeArray %_struct_11 %uint_2 %_ptr_StorageBuffer__arr__struct_11_uint_2 = OpTypePointer StorageBuffer %_arr__struct_11_uint_2 %7 = OpVariable %_ptr_StorageBuffer__arr__struct_11_uint_2 StorageBuffer %void = OpTypeVoid %77 = OpTypeFunction %void %uint_0 = OpConstant %uint 0 %uint_8 = OpConstant %uint 8 %uint_0_0 = OpConstant %uint 0 %uint_255 = OpConstant %uint 255 %uint_1 = OpConstant %uint 1 %uint_3 = OpConstant %uint 3 %uint_4 = OpConstant %uint 4 %uint_5 = OpConstant %uint 5 %uint_6 = OpConstant %uint 6 %uint_7 = OpConstant %uint 7 %v4uint = OpTypeVector %uint 4 %90 = OpConstantComposite %v4uint %uint_0_0 %uint_0_0 %uint_0_0 %uint_0_0 %bool = OpTypeBool %true = OpConstantTrue %bool %uint_0_1 = OpConstant %uint 0 %uint_822177708 = OpConstant %uint 822177708 %uint_30 = OpConstant %uint 30 %uint_23 = OpConstant %uint 23 %uint_31 = OpConstant %uint 31 %uint_14 = OpConstant %uint 14 %uint_16 = OpConstant %uint 16 %uint_1_0 = OpConstant %uint 1 %uint_21 = OpConstant %uint 21 %uint_4294967292 = OpConstant %uint 4294967292 %uint_28 = OpConstant %uint 28 %uint_12 = OpConstant %uint 12 %_ptr_StorageBuffer__struct_11 = OpTypePointer StorageBuffer %_struct_11 %uint_0_2 = OpConstant %uint 0 %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint %uint_4294967295 = OpConstant %uint 4294967295 %double = OpTypeFloat 64 %v2uint = OpTypeVector %uint 2 %uint_2139095040 = OpConstant %uint 2139095040 %uint_2147483647 = OpConstant %uint 2147483647 %uint_2147483648 = OpConstant %uint 2147483648 %uint_8388607 = OpConstant %uint 8388607 %uint_2146959360 = OpConstant %uint 2146959360 %uint_29 = OpConstant %uint 29 %uint_2146435072 = OpConstant %uint 2146435072 %uint_524288 = OpConstant %uint 524288 %int = OpTypeInt 32 1 %uint_4294443008 = OpConstant %uint 4294443008 %double_0 = OpConstant %double 0 %double_1 = OpConstant %double 1 %uint_1074266112 = OpConstant %uint 1074266112 %125 = OpConstantComposite %v2uint %uint_0_0 %uint_1074266112 %uint_2047 = OpConstant %uint 2047 %uint_20 = OpConstant %uint 20 %uint_1075 = OpConstant %uint 1075 %uint_1023 = OpConstant %uint 1023 %uint_1069834032 = OpConstant %uint 1069834032 %uint_1841940610 = OpConstant %uint 1841940610 %132 = OpConstantComposite %v2uint %uint_1841940610 %uint_1069834032 %uint_1072693248 = OpConstant %uint 1072693248 %134 = OpConstantComposite %v2uint %uint_0_0 %uint_1072693248 %int_0 = OpConstant %int 0 %double_1_8446744073709552e_19 = OpConstant %double 1.8446744073709552e+19 %int_64 = OpConstant %int 64 %int_2046 = OpConstant %int 2046 %int_1023 = OpConstant %int 1023 %int_60 = OpConstant %int 60 %int_n150 = OpConstant %int -150 %uint_915406848 = OpConstant %uint 915406848 %uint_2148532223 = OpConstant %uint 2148532223 %double_134217729 = OpConstant %double 134217729 %int_1 = OpConstant %int 1 %int_54 = OpConstant %int 54 %uint_1048576 = OpConstant %uint 1048576 %uint_1048575 = OpConstant %uint 1048575 %uint_33 = OpConstant %uint 33 %int_n60 = OpConstant %int -60 %int_2047 = OpConstant %int 2047 %uint_0_3 = OpConstant %uint 0 %uint_822177708_0 = OpConstant %uint 822177708 %uint_1_1 = OpConstant %uint 1 %uint_0_4 = OpConstant %uint 0 %uint_72 = OpConstant %uint 72 %uint_24 = OpConstant %uint 24 %uint_36 = OpConstant %uint 36 %uint_40 = OpConstant %uint 40 %uint_44 = OpConstant %uint 44 %uint_48 = OpConstant %uint 48 %uint_52 = OpConstant %uint 52 %uint_56 = OpConstant %uint 56 %uint_60 = OpConstant %uint 60 %1274 = OpUndef %uint %1275 = OpUndef %bool %1276 = OpUndef %v2uint %1277 = OpUndef %double %1278 = OpUndef %int %1279 = OpUndef %v4uint %2 = OpFunction %void None %77 %165 = OpLabel %293 = OpAccessChain %_ptr_StorageBuffer__struct_11 %7 %uint_0_0 %297 = OpIAdd %uint %uint_32 %uint_32 %303 = OpAccessChain %_ptr_StorageBuffer_uint %293 %uint_0_0 %297 %304 = OpLoad %uint %303 %305 = OpShiftRightLogical %uint %304 %uint_0 %308 = OpBitwiseOr %uint %305 %uint_0_0 %309 = OpBitwiseAnd %uint %308 %uint_4294967295 OpBranch %300 %302 = OpLabel OpBranch %300 %300 = OpLabel %311 = OpPhi %uint %309 %165 %uint_0_0 %302 %312 = OpCompositeConstruct %v4uint %1274 %uint_32 %uint_32 %311 %317 = OpCompositeExtract %uint %312 3 %356 = OpCompositeConstruct %v2uint %1274 %317 %382 = OpCompositeExtract %uint %356 1 %383 = OpBitwiseAnd %uint %382 %uint_2147483647 %384 = OpUGreaterThan %bool %383 %uint_2146435072 %388 = OpLogicalOr %bool %384 %true %389 = OpBitwiseOr %uint %382 %uint_524288 %391 = OpSelect %uint %true %389 %1274 %392 = OpCompositeConstruct %v2uint %1274 %391 %393 = OpBitcast %double %392 %394 = OpFOrdGreaterThan %bool %393 %double_0 %395 = OpFOrdLessThan %bool %393 %double_1 %396 = OpBitcast %v2uint %393 %398 = OpSelect %v2uint %395 %396 %1276 %399 = OpBitcast %double %398 %400 = OpBitcast %v2uint %399 %401 = OpBitcast %v2uint %double_0 %402 = OpSelect %v2uint %394 %400 %401 %403 = OpBitcast %double %402 %404 = OpBitcast %v2uint %403 %406 = OpCompositeExtract %uint %404 1 %1040 = OpAccessChain %_ptr_StorageBuffer__struct_11 %7 %uint_1 %1049 = OpAccessChain %_ptr_StorageBuffer_uint %1040 %uint_0_0 %406 OpStore %1049 %406 OpReturn OpFunctionEnd ``` </details> AI-assisted: yes (Claude Code)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#7451
No description provided.