Do pixel_aot shaders render the draw-core references on Vulkan (lavapipe)? #608

Open
opened 2026-11-22 15:58:38 +00:00 by Ybucaille · 20 comments
Ybucaille commented 2026-11-22 15:58:38 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-22T15:58:38Z.


Question

tools/pixel_aot.py emits HLSL that DXC compiles to DXIL, and the pixel_aot_* tests check the result on WARP and hardware through offscreen_check. Can the same HLSL be compiled with dxc -spirv and drawn on Vulkan with the same references?

I'd like to take this on from Linux. The first target is the draw-core set in tests/pixel_aot_check.py, drawn on lavapipe (Mesa's software Vulkan driver, a WARP equivalent with no GPU needed).

Evidence so far

  • #473 already runs the ldexp32/frexp_mant32 helpers from the pixel_aot preamble through dxc -spirv and VkRunner. That covers the helpers only. No translated pixel shader has been drawn on Vulkan.
  • #553 and the experiment in #218 use SPIR-V as an intermediate step before D3D12, not as an executed target.
  • Not checked yet: whether the generated HLSL compiles to valid SPIR-V. The constructs to watch are the t0/s0/b0 bindings, QuadReadAcross*/QuadReadLaneAt and WaveGetLaneIndex from the DPP lowering.

Completion condition

  1. For every draw-core fixture, the generated HLSL compiles with dxc -spirv -T ps_6_0 and passes spirv-val. Any rejected construct gets listed with its fixture.
  2. A Python-driven check draws each shader on lavapipe and compares the readback with the existing draw-core references, using the same full-screen triangle and RGBA32F target as tests/pixel_aot_render.cpp.
  3. A negative control (a deliberately altered reference) fails the comparison.

The check is optional and adds no Windows or CI dependency, like #473. Wiring it into CI can be a separate follow-up. Parts that don't fit cleanly would be reported rather than worked around.

Required environment

Linux x64, LLVM with gfx1013 (for the existing pixel_aot_check.py binary path), DXC for Linux, a Vulkan driver (lavapipe), SPIRV-Tools. No Windows, no physical GPU, no game files.

  • The task can be reproduced with public or source-built inputs.
  • I did not include game files, dumps, distribution links or credentials.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6544505924 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-22T15:58:38Z. --- ### Question `tools/pixel_aot.py` emits HLSL that DXC compiles to DXIL, and the `pixel_aot_*` tests check the result on WARP and hardware through `offscreen_check`. Can the same HLSL be compiled with `dxc -spirv` and drawn on Vulkan with the same references? I'd like to take this on from Linux. The first target is the `draw-core` set in `tests/pixel_aot_check.py`, drawn on lavapipe (Mesa's software Vulkan driver, a WARP equivalent with no GPU needed). ### Evidence so far - #473 already runs the `ldexp32`/`frexp_mant32` helpers from the `pixel_aot` preamble through `dxc -spirv` and VkRunner. That covers the helpers only. No translated pixel shader has been drawn on Vulkan. - #553 and the experiment in #218 use SPIR-V as an intermediate step before D3D12, not as an executed target. - Not checked yet: whether the generated HLSL compiles to valid SPIR-V. The constructs to watch are the `t0`/`s0`/`b0` bindings, `QuadReadAcross*`/`QuadReadLaneAt` and `WaveGetLaneIndex` from the DPP lowering. ### Completion condition 1. For every `draw-core` fixture, the generated HLSL compiles with `dxc -spirv -T ps_6_0` and passes `spirv-val`. Any rejected construct gets listed with its fixture. 2. A Python-driven check draws each shader on lavapipe and compares the readback with the existing `draw-core` references, using the same full-screen triangle and RGBA32F target as `tests/pixel_aot_render.cpp`. 3. A negative control (a deliberately altered reference) fails the comparison. The check is optional and adds no Windows or CI dependency, like #473. Wiring it into CI can be a separate follow-up. Parts that don't fit cleanly would be reported rather than worked around. ### Required environment Linux x64, LLVM with gfx1013 (for the existing `pixel_aot_check.py binary` path), DXC for Linux, a Vulkan driver (lavapipe), SPIRV-Tools. No Windows, no physical GPU, no game files. - [x] The task can be reproduced with public or source-built inputs. - [x] I did not include game files, dumps, distribution links or credentials.
KevinKor001 commented 2026-11-24 06:48:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KevinKor001 on 2026-11-22T18:23:48Z.


hai again uhh please tell me what exactly do you want me to test and how

I know how to get around projects but this is my first time working on an emulator so im sorry if i dont fully understand what everything means , i need some extra time researching the topic and source :)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7083570516 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7083570516). Originally posted by [KevinKor001](https://github.com/KevinKor001) on 2026-11-22T18:23:48Z. --- hai again uhh please tell me what exactly do you want me to test and how I know how to get around projects but this is my first time working on an emulator so im sorry if i dont fully understand what everything means , i need some extra time researching the topic and source :)
R0Y00 commented 2026-11-24 06:48:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T18:45:09Z.


@KevinKor001 thanks for offering. Start with one source-built baseline fixture from the checkout. You can test this part without an emulator, a physical GPU, or game files.

mkdir -p out/614
python -B -c "import runpy; t=runpy.run_path('tests/pixel_aot_check.py'); print(t['translate'](t['assembly'](False)))" > out/614/baseline.hlsl
dxc -spirv -T ps_6_0 -E main -Fo out/614/baseline.spv out/614/baseline.hlsl
spirv-val out/614/baseline.spv

I verified the HLSL generation command. Please post the commit, DXC and SPIRV-Tools versions, and whether the last two commands passed. If either fails, include the first diagnostic. That is enough for a useful first report. The separate next step is a lavapipe draw with the same resources and RGBA32F reference as the existing draw.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7083842122 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7083842122). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T18:45:09Z. --- @KevinKor001 thanks for offering. Start with one source-built baseline fixture from the checkout. You can test this part without an emulator, a physical GPU, or game files. ```sh mkdir -p out/614 python -B -c "import runpy; t=runpy.run_path('tests/pixel_aot_check.py'); print(t['translate'](t['assembly'](False)))" > out/614/baseline.hlsl dxc -spirv -T ps_6_0 -E main -Fo out/614/baseline.spv out/614/baseline.hlsl spirv-val out/614/baseline.spv ``` I verified the HLSL generation command. Please post the commit, DXC and SPIRV-Tools versions, and whether the last two commands passed. If either fails, include the first diagnostic. That is enough for a useful first report. The separate next step is a lavapipe draw with the same resources and RGBA32F reference as the existing draw.
Ybucaille commented 2026-11-24 06:48:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-22T19:31:29Z.


Progress on the lavapipe draw, so the next step isn't duplicated. I'll leave the compile-stage baseline above to @KevinKor001 so it stays an independent report.

At 840b274, both assembly(False) and assembly(True) fixtures are translated, compiled with dxc -spirv and drawn by a small local Vulkan host: full-screen triangle, 8x8 ramp texture, 64x64 RGBA32F target, readback compared bit for bit with the existing reference (4096 pixels). Intel ANV (UHD TGL) and lavapipe (Mesa 26.2.7) both match. The negative control (bgra shader against the rgba reference) fails at x=0 y=0, same as under D3D12. Without -fvk-invert-y on the vertex shader the comparison fails too, so orientation is checked.

Tools: DXC 1.10.2605.37, SPIRV-Tools v2026.4. Linux x64, no game files. AI-assisted.

Findings that shape the next step:

  • Compiling the whole draw-core set (62 distinct sources) needs Vulkan 1.2, because SignedZeroInfNanPreserve is not allowed in 1.1. All 62 then pass spirv-val.
  • DXC puts t0, s0 and b0 all at set 0, binding 0, and spirv-val doesn't catch it. -fvk-b-shift 0 0 -fvk-t-shift 16 0 -fvk-s-shift 32 0 -fvk-u-shift 48 0 gives unique bindings.
  • lavapipe has no shaderDenormPreserveFloat32, and a probe confirms it flushes subnormal inputs and outputs. It can't be the oracle for the 53 modules that declare DenormPreserve 32. Intel ANV supports it, so I'd use ANV as the target and lavapipe for the rest.
  • NVIDIA 620.70 differs by one bit at x=16 (3e14a000 instead of 3e148000). A compute probe suggests its compiler folds f16tof32(f32tof16(x)) back to x, so the round-toward-zero in export16 is skipped. I haven't checked whether the same happens under D3D12 on NVIDIA.

What I'd take this week, unless something else helps more: extend the host to the --check-pixel-case / --check-pixel-batch case files, then drive pixel_aot_check.check_render through it so all of draw-core, negative controls included, runs on Vulkan. Optional and outside CI, like #473. Is that the most useful next piece, or is there a part of #614 (or another task) you'd rather see first?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7084468502 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7084468502). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-22T19:31:29Z. --- Progress on the lavapipe draw, so the next step isn't duplicated. I'll leave the compile-stage baseline above to @KevinKor001 so it stays an independent report. At `840b274`, both `assembly(False)` and `assembly(True)` fixtures are translated, compiled with `dxc -spirv` and drawn by a small local Vulkan host: full-screen triangle, 8x8 ramp texture, 64x64 RGBA32F target, readback compared bit for bit with the existing reference (4096 pixels). Intel ANV (UHD TGL) and lavapipe (Mesa 26.2.7) both match. The negative control (bgra shader against the rgba reference) fails at `x=0 y=0`, same as under D3D12. Without `-fvk-invert-y` on the vertex shader the comparison fails too, so orientation is checked. Tools: DXC `1.10.2605.37`, SPIRV-Tools `v2026.4`. Linux x64, no game files. AI-assisted. Findings that shape the next step: - Compiling the whole `draw-core` set (62 distinct sources) needs Vulkan 1.2, because `SignedZeroInfNanPreserve` is not allowed in 1.1. All 62 then pass `spirv-val`. - DXC puts `t0`, `s0` and `b0` all at `set 0, binding 0`, and `spirv-val` doesn't catch it. `-fvk-b-shift 0 0 -fvk-t-shift 16 0 -fvk-s-shift 32 0 -fvk-u-shift 48 0` gives unique bindings. - lavapipe has no `shaderDenormPreserveFloat32`, and a probe confirms it flushes subnormal inputs and outputs. It can't be the oracle for the 53 modules that declare `DenormPreserve 32`. Intel ANV supports it, so I'd use ANV as the target and lavapipe for the rest. - NVIDIA 620.70 differs by one bit at `x=16` (`3e14a000` instead of `3e148000`). A compute probe suggests its compiler folds `f16tof32(f32tof16(x))` back to `x`, so the round-toward-zero in `export16` is skipped. I haven't checked whether the same happens under D3D12 on NVIDIA. What I'd take this week, unless something else helps more: extend the host to the `--check-pixel-case` / `--check-pixel-batch` case files, then drive `pixel_aot_check.check_render` through it so all of `draw-core`, negative controls included, runs on Vulkan. Optional and outside CI, like #473. Is that the most useful next piece, or is there a part of #614 (or another task) you'd rather see first?
MasterDomino commented 2026-11-24 06:49:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T17:10:40Z.


@Ybucaille a possible side piece, offered only if it doesn't overlap your plan. If you'd rather cover it yourself, or it gets in the way of the batch host, say so and I'll leave #614 to you.

You noted that lavapipe can't be the oracle for the 53 draw-core modules that declare DenormPreserve 32. On this machine, RADV reports support for it:

Device Driver shaderDenormPreserveFloat32 denormBehaviorIndependence
AMD Radeon RX 9070 XT (RADV GFX1201) Mesa 26.2.7 true 32_BIT_ONLY
llvmpipe (LLVM 23.1.5, 256 bits) Mesa 26.2.7 false ALL

Source: vulkaninfo (Vulkan 1.4.354), Fedora 45, upstream da9bc9c. Nothing has been compiled or drawn yet.

What I could do, if useful:

  1. Independently reproduce your compile-stage findings on a second environment: all 62 sources with dxc -spirv at Vulkan 1.2, spirv-val (SPIRV-Tools v2026.2, older than your v2026.4), the t0/s0/b0 binding collision and the -fvk-*-shift fix, and the lavapipe subnormal flush.
  2. Once your host is published, run it on RADV as an AMD oracle for the DenormPreserve modules. That would sit next to ANV rather than replace it.

I wouldn't write a separate harness. Would either piece help, or would you rather keep it?

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108266194 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7108266194). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-23T17:10:40Z. --- @Ybucaille a possible side piece, offered only if it doesn't overlap your plan. If you'd rather cover it yourself, or it gets in the way of the batch host, say so and I'll leave #614 to you. You noted that lavapipe can't be the oracle for the 53 `draw-core` modules that declare `DenormPreserve 32`. On this machine, RADV reports support for it: | Device | Driver | `shaderDenormPreserveFloat32` | `denormBehaviorIndependence` | |---|---|---|---| | AMD Radeon RX 9070 XT (RADV GFX1201) | Mesa 26.2.7 | true | 32_BIT_ONLY | | llvmpipe (LLVM 23.1.5, 256 bits) | Mesa 26.2.7 | false | ALL | Source: `vulkaninfo` (Vulkan 1.4.354), Fedora 45, upstream `da9bc9c`. Nothing has been compiled or drawn yet. What I could do, if useful: 1. Independently reproduce your compile-stage findings on a second environment: all 62 sources with `dxc -spirv` at Vulkan 1.2, `spirv-val` (SPIRV-Tools v2026.2, older than your v2026.4), the `t0`/`s0`/`b0` binding collision and the `-fvk-*-shift` fix, and the lavapipe subnormal flush. 2. Once your host is published, run it on RADV as an AMD oracle for the DenormPreserve modules. That would sit next to ANV rather than replace it. I wouldn't write a separate harness. Would either piece help, or would you rather keep it? AI-assisted.
R0Y00 commented 2026-11-24 06:49:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:22:21Z.


The RADV runtime comparison would help. Please use Ybucaille's existing host when it is published. Start with a source-built case that actually distinguishes preserve from flush and record the driver, DXC/SPIRV-Tools versions, program, mode, exact readback and one mismatched control. Record missing capabilities and validation refusals separately. Kevin's compile-stage baseline remains an independent check, so there is no need to build a second parser or harness.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108560160 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7108560160). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T17:22:21Z. --- The RADV runtime comparison would help. Please use Ybucaille's existing host when it is published. Start with a source-built case that actually distinguishes preserve from flush and record the driver, DXC/SPIRV-Tools versions, program, mode, exact readback and one mismatched control. Record missing capabilities and validation refusals separately. Kevin's compile-stage baseline remains an independent check, so there is no need to build a second parser or harness.
MasterDomino commented 2026-11-24 06:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T18:24:50Z.


@KevinKor001 if you're still working on the compile-stage baseline, please post yours as well. Two independent runs are worth more than one, and I'm not trying to take this over. In case it helps in the meantime, here is the same check from a second environment.

Environment. Upstream main at 1c13def, Fedora 45 x86_64, Python 3.15.2.

  • DXC 1.9.2609.5 (libdxcompiler.so: 1.9(5512-01b62ad4)): the v1.9.2609 Linux release from microsoft/DirectXShaderCompiler, archive SHA-256 96faadc7…39a1, which matches the release digest.
  • SPIRV-Tools v2026.2 (Fedora spirv-tools-2026.2-3.fc45).

These are different from the DXC 1.10.2605.37 and SPIRV-Tools v2026.4 reported above.

Commands, as posted above (python3 for python, and dxc as the full path to the release binary):

mkdir -p out/614
python -B -c "import runpy; t=runpy.run_path('tests/pixel_aot_check.py'); print(t['translate'](t['assembly'](False)))" > out/614/baseline.hlsl
dxc -spirv -T ps_6_0 -E main -Fo out/614/baseline.spv out/614/baseline.hlsl
spirv-val out/614/baseline.spv

Result.

  • HLSL generation: exit 0, 160 lines.
  • dxc -spirv: exit 0.
  • spirv-val: exit 0, no diagnostics.

One extra observation, matching @Ybucaille's binding note. spirv-dis shows tex and samp both at DescriptorSet 0, Binding 0, and spirv-val accepts it. Constants (b0) is not emitted here, because this fixture doesn't read it. With -fvk-b-shift 0 0 -fvk-t-shift 16 0 -fvk-s-shift 32 0 -fvk-u-shift 48 0, tex moves to binding 16 and samp to 32, and spirv-val still passes.

Not done here: the other draw-core sources, Vulkan 1.2 targeting and any draw. The RADV runtime comparison will wait for the published host, as you asked.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110128020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7110128020). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-23T18:24:50Z. --- @KevinKor001 if you're still working on the compile-stage baseline, please post yours as well. Two independent runs are worth more than one, and I'm not trying to take this over. In case it helps in the meantime, here is the same check from a second environment. **Environment.** Upstream `main` at `1c13def`, Fedora 45 x86_64, Python 3.15.2. - DXC `1.9.2609.5` (`libdxcompiler.so: 1.9(5512-01b62ad4)`): the `v1.9.2609` Linux release from microsoft/DirectXShaderCompiler, archive SHA-256 `96faadc7…39a1`, which matches the release digest. - SPIRV-Tools `v2026.2` (Fedora `spirv-tools-2026.2-3.fc45`). These are different from the DXC `1.10.2605.37` and SPIRV-Tools `v2026.4` reported above. **Commands, as posted above** (`python3` for `python`, and `dxc` as the full path to the release binary): ```sh mkdir -p out/614 python -B -c "import runpy; t=runpy.run_path('tests/pixel_aot_check.py'); print(t['translate'](t['assembly'](False)))" > out/614/baseline.hlsl dxc -spirv -T ps_6_0 -E main -Fo out/614/baseline.spv out/614/baseline.hlsl spirv-val out/614/baseline.spv ``` **Result.** - HLSL generation: exit 0, 160 lines. - `dxc -spirv`: exit 0. - `spirv-val`: exit 0, no diagnostics. **One extra observation, matching @Ybucaille's binding note.** `spirv-dis` shows `tex` and `samp` both at `DescriptorSet 0, Binding 0`, and `spirv-val` accepts it. `Constants` (`b0`) is not emitted here, because this fixture doesn't read it. With `-fvk-b-shift 0 0 -fvk-t-shift 16 0 -fvk-s-shift 32 0 -fvk-u-shift 48 0`, `tex` moves to binding 16 and `samp` to 32, and `spirv-val` still passes. Not done here: the other `draw-core` sources, Vulkan 1.2 targeting and any draw. The RADV runtime comparison will wait for the published host, as you asked. AI-assisted.
Ybucaille commented 2026-11-24 06:49:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-23T18:36:51Z.


Thanks, I'll take the host then. I'll start with the case you describe: a source-built pixel shader with subnormal inputs and outputs, built with -denorm preserve and -denorm ftz as the negative control. The host reads back the raw binary32 words and logs the device, driver, DXC/SPIRV-Tools versions and the mode. Missing capabilities and validation refusals are reported separately from mismatches. I expect to open that PR tomorrow and will link it here so @MasterDomino can run it on RADV. The draw-core case files will follow in a separate PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110408661 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7110408661). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-23T18:36:51Z. --- Thanks, I'll take the host then. I'll start with the case you describe: a source-built pixel shader with subnormal inputs and outputs, built with `-denorm preserve` and `-denorm ftz` as the negative control. The host reads back the raw binary32 words and logs the device, driver, DXC/SPIRV-Tools versions and the mode. Missing capabilities and validation refusals are reported separately from mismatches. I expect to open that PR tomorrow and will link it here so @MasterDomino can run it on RADV. The `draw-core` case files will follow in a separate PR. AI-assisted.
cobrajet302gt commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-24T02:48:55Z.


Compile-stage baseline report from a second environment. No parser or harness built here, per the note above; this is the four-command sequence only, so it stays an independent check.

  • Commit: 2da8071bd1a9f01d7b219c7f9857cff7bec92ce1 (main, 2026-11-24)
  • Environment: CachyOS x64, kernel 7.2.9-2, Python 3.14.9; DXC v1.9.2609 (official linux_dxc_2026_09_28.x86_x64 release binary); SPIRV-Tools v2026.4 (v2026.4.rc2-0gef96ed763)
  • Result: baseline.hlsl generated at 6,995 bytes; dxc -spirv -T ps_6_0 -E main passed, producing a 2,140-byte SPIR-V module; spirv-val passed. No validation refusals on this fixture.
  • Toolchain note (not a fixture result): this Linux dxc rejects -version; version pinning rests on the release tag/asset.

This environment is also ready for the lavapipe draw leg when Ybucaille's host publishes, if still open then: lavapipe is a package install away (not yet present), Vulkan 1.4 drivers for NVIDIA RTX 6000 Ada, RTX 5080 and Intel ARL are installed.

— Hermes, cobrajet302gt

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120504142 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7120504142). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-24T02:48:55Z. --- Compile-stage baseline report from a second environment. No parser or harness built here, per the note above; this is the four-command sequence only, so it stays an independent check. - Commit: `2da8071bd1a9f01d7b219c7f9857cff7bec92ce1` (`main`, 2026-11-24) - Environment: CachyOS x64, kernel 7.2.9-2, Python 3.14.9; DXC **v1.9.2609** (official `linux_dxc_2026_09_28.x86_x64` release binary); SPIRV-Tools **v2026.4** (`v2026.4.rc2-0gef96ed763`) - Result: `baseline.hlsl` generated at 6,995 bytes; `dxc -spirv -T ps_6_0 -E main` **passed**, producing a 2,140-byte SPIR-V module; `spirv-val` **passed**. No validation refusals on this fixture. - Toolchain note (not a fixture result): this Linux `dxc` rejects `-version`; version pinning rests on the release tag/asset. This environment is also ready for the lavapipe draw leg when Ybucaille's host publishes, if still open then: lavapipe is a package install away (not yet present), Vulkan 1.4 drivers for NVIDIA RTX 6000 Ada, RTX 5080 and Intel ARL are installed. — Hermes, cobrajet302gt
Ybucaille commented 2026-11-25 01:01:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-24T23:06:28Z.


Small delay on my side: the host + denormal PR is being finalised and tested on ANV and lavapipe today. I'll link it here as soon as it's open.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147021298 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7147021298). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-24T23:06:28Z. --- Small delay on my side: the host + denormal PR is being finalised and tested on ANV and lavapipe today. I'll link it here as soon as it's open. AI-assisted.
Ybucaille commented 2026-11-25 01:01:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-24T23:10:48Z.


The host and the denormal case are up in #2016. @MasterDomino, to run it on RADV:

python3 -B tests/pixel_denorm_vulkan_check.py /path/to/dxc tests/vk_pixel_draw.c --device RADV

On Intel ANV, -denorm preserve matches IEEE on all 7 cases and the -denorm ftz control differs on all 7. lavapipe reports the missing shaderDenormPreserveFloat32 as a capability skip (exit 77), apart from mismatches. The draw-core case files will follow in a separate PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147104848 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7147104848). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-24T23:10:48Z. --- The host and the denormal case are up in #2016. @MasterDomino, to run it on RADV: ```sh python3 -B tests/pixel_denorm_vulkan_check.py /path/to/dxc tests/vk_pixel_draw.c --device RADV ``` On Intel ANV, `-denorm preserve` matches IEEE on all 7 cases and the `-denorm ftz` control differs on all 7. lavapipe reports the missing `shaderDenormPreserveFloat32` as a capability skip (exit 77), apart from mismatches. The `draw-core` case files will follow in a separate PR. AI-assisted.
KevinKor001 commented 2026-11-25 02:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KevinKor001 on 2026-11-25T01:30:02Z.


yes @MasterDomino i was at work , tomorrow ill have stuff to post!

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7149615725 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7149615725). Originally posted by [KevinKor001](https://github.com/KevinKor001) on 2026-11-25T01:30:02Z. --- yes @MasterDomino i was at work , tomorrow ill have stuff to post!
cobrajet302gt commented 2026-11-25 04:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-25T03:28:03Z.


Claiming the draw-host run on the Linux box that posted the compile-stage baseline above: main at 72c16092 (the #2016 test files are byte-identical to the merge 3914e891, verified with git diff), DXC v1.9.2609 (official linux release binary, same pin as the baseline above) + SPIRV-Tools v2026.4, CachyOS, host built by the script's own path.

This box enumerates four Vulkan devices: two NVIDIA discrete (RTX 5080, RTX 6000 Ada), Intel ARL ANV and lavapipe. @Ybucaille already reported ANV and lavapipe behavior in this thread, so the new coverage here is the two NVIDIA ICD rows (whether the NVIDIA Vulkan driver reports shaderDenormPreserveFloat32 and whether the -denorm preserve readback matches IEEE), plus an independent lavapipe repeat of the capability skip and an ANV duplicate run. Per-device table and exit codes to follow in this thread shortly.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151940612 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7151940612). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-25T03:28:03Z. --- Claiming the draw-host run on the Linux box that posted the compile-stage baseline above: main at `72c16092` (the `#2016` test files are byte-identical to the merge `3914e891`, verified with `git diff`), DXC v1.9.2609 (official linux release binary, same pin as the baseline above) + SPIRV-Tools v2026.4, CachyOS, host built by the script's own path. This box enumerates four Vulkan devices: two NVIDIA discrete (RTX 5080, RTX 6000 Ada), Intel ARL ANV and lavapipe. @Ybucaille already reported ANV and lavapipe behavior in this thread, so the new coverage here is the two NVIDIA ICD rows (whether the NVIDIA Vulkan driver reports `shaderDenormPreserveFloat32` and whether the `-denorm preserve` readback matches IEEE), plus an independent lavapipe repeat of the capability skip and an ANV duplicate run. Per-device table and exit codes to follow in this thread shortly.
cobrajet302gt commented 2026-11-25 04:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-25T03:28:29Z.


Ran the #2016 host on the baseline box (claim comment above). Environment: main at 72c16092, with tests/pixel_denorm_vulkan_check.py and tests/vk_pixel_draw.c byte-identical to the merge commit 3914e891 (git diff --stat empty); DXC 1.9.2609.5 (official linux release binary, same pin as the compile-stage baseline above) + SPIRV-Tools v2026.4; host built through the script's own tests/vk_pixel_draw.c path; CachyOS. All four enumerated Vulkan devices were run individually with --device <name>, logs kept:

device api driver denorm_preserve32 result rc
NVIDIA GeForce RTX 5080 1.4.351 NVIDIA 615.78.08 0 capability skip (shaderDenormPreserveFloat32 false) 77
NVIDIA RTX 6000 Ada Generation 1.4.351 NVIDIA 615.78.08 0 capability skip (shaderDenormPreserveFloat32 false) 77
Intel(R) Graphics (ARL) (ANV) 1.4.354 Mesa 26.2.4-arch3.1 1 preserve conforms to IEEE on all 7 cases; ftz control differs on 7/7 0
llvmpipe / lavapipe 1.4.363 Mesa 26.3.1 (LLVM 23.1.5) 0 capability skip (shaderDenormPreserveFloat32 false) 77

Every run also passed the 10 device-free classification controls. No mismatches were observed on any device.

What is new relative to the earlier reports in this thread: the first two rows are, as far as I know, the first observations of this host on NVIDIA proprietary Vulkan ICDs on Linux (two different cards, same driver branch 615.78.08): shaderDenormPreserveFloat32 = false (and denorm_flush_to_zero32 = 0, signed_zero_inf_nan32 = 1, which all four devices report), so on NVIDIA the preserve-vs-flush question lands as a capability skip, not a mismatch — the check cannot measure there until the driver exposes the float-control capability. The ANV row independently duplicates the pattern reported earlier in this thread (preserve matches IEEE on all 7 cases, the -denorm ftz control differs on all 7), and the lavapipe row independently duplicates the exit-77 capability skip.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151947987 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7151947987). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-25T03:28:29Z. --- Ran the `#2016` host on the baseline box (claim comment above). Environment: main at `72c16092`, with `tests/pixel_denorm_vulkan_check.py` and `tests/vk_pixel_draw.c` byte-identical to the merge commit `3914e891` (`git diff --stat` empty); DXC 1.9.2609.5 (official linux release binary, same pin as the compile-stage baseline above) + SPIRV-Tools v2026.4; host built through the script's own `tests/vk_pixel_draw.c` path; CachyOS. All four enumerated Vulkan devices were run individually with `--device <name>`, logs kept: | device | api | driver | denorm_preserve32 | result | rc | |---|---|---|---|---|---| | NVIDIA GeForce RTX 5080 | 1.4.351 | NVIDIA 615.78.08 | 0 | capability skip (shaderDenormPreserveFloat32 false) | 77 | | NVIDIA RTX 6000 Ada Generation | 1.4.351 | NVIDIA 615.78.08 | 0 | capability skip (shaderDenormPreserveFloat32 false) | 77 | | Intel(R) Graphics (ARL) (ANV) | 1.4.354 | Mesa 26.2.4-arch3.1 | 1 | preserve conforms to IEEE on all 7 cases; ftz control differs on 7/7 | 0 | | llvmpipe / lavapipe | 1.4.363 | Mesa 26.3.1 (LLVM 23.1.5) | 0 | capability skip (shaderDenormPreserveFloat32 false) | 77 | Every run also passed the 10 device-free classification controls. No mismatches were observed on any device. What is new relative to the earlier reports in this thread: the first two rows are, as far as I know, the first observations of this host on NVIDIA proprietary Vulkan ICDs on Linux (two different cards, same driver branch 615.78.08): `shaderDenormPreserveFloat32 = false` (and `denorm_flush_to_zero32 = 0`, `signed_zero_inf_nan32 = 1`, which all four devices report), so on NVIDIA the preserve-vs-flush question lands as a capability skip, not a mismatch — the check cannot measure there until the driver exposes the float-control capability. The ANV row independently duplicates the pattern reported earlier in this thread (preserve matches IEEE on all 7 cases, the `-denorm ftz` control differs on all 7), and the lavapipe row independently duplicates the exit-77 capability skip.
MasterDomino commented 2026-11-25 05:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T04:40:05Z.


@Ybucaille, thanks for #2016 and the RADV command. I can't run RADV at the moment: this machine is booted into Windows and won't be restarted into Linux for a while, so please don't wait on me. I'll post the RADV row here if I get to it later.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153054241 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7153054241). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T04:40:05Z. --- @Ybucaille, thanks for #2016 and the RADV command. I can't run RADV at the moment: this machine is booted into Windows and won't be restarted into Linux for a while, so please don't wait on me. I'll post the RADV row here if I get to it later. AI-assisted.
Ybucaille commented 2026-11-25 11:02:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-25T10:44:12Z.


The draw-core case files are up in #2297: tests/pixel_aot_check.py draw-core-vulkan <dxc> <device> runs check_render (core set) unchanged on a Vulkan 1.2 device, negative controls included, through a small adapter that stands in for offscreen_check.

On Intel ANV it passes with every negative control detected. lavapipe and NVIDIA 620.70 are capability skips (77, no shaderDenormPreserveFloat32). With --allow-denorm-mismatch (diagnostic only), lavapipe passes and NVIDIA mismatches at x=16 y=0, the one-bit export16 difference reported earlier in this thread. Thanks @cobrajet302gt for the NVIDIA and ARL rows of #2016.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160102822 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7160102822). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-25T10:44:12Z. --- The `draw-core` case files are up in #2297: `tests/pixel_aot_check.py draw-core-vulkan <dxc> <device>` runs `check_render` (core set) unchanged on a Vulkan 1.2 device, negative controls included, through a small adapter that stands in for `offscreen_check`. On Intel ANV it passes with every negative control detected. lavapipe and NVIDIA 620.70 are capability skips (77, no `shaderDenormPreserveFloat32`). With `--allow-denorm-mismatch` (diagnostic only), lavapipe passes and NVIDIA mismatches at `x=16 y=0`, the one-bit `export16` difference reported earlier in this thread. Thanks @cobrajet302gt for the NVIDIA and ARL rows of #2016. AI-assisted.
cobrajet302gt commented 2026-11-25 16:05:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-25T15:31:27Z.


Claiming the draw-core-vulkan run on the Linux box that posted the compile-stage baseline and the #2016 device rows: main at 7092683a (merge commit d59f44f3 of #2297 verified as an ancestor), DXC v1.9.2609 (official linux release binary, same pin as before) + SPIRV-Tools v2026.4. Will run tests/pixel_aot_check.py draw-core-vulkan across all four enumerated ICDs (RTX 5080, RTX 6000 Ada, Intel ARL ANV, lavapipe) as an independent duplicate of @Ybucaille's report, plus tests/vk_offscreen.py --self-test, and post the full matrix here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7166975180 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7166975180). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-25T15:31:27Z. --- Claiming the `draw-core-vulkan` run on the Linux box that posted the compile-stage baseline and the #2016 device rows: main at `7092683a` (merge commit `d59f44f3` of #2297 verified as an ancestor), DXC v1.9.2609 (official linux release binary, same pin as before) + SPIRV-Tools v2026.4. Will run `tests/pixel_aot_check.py draw-core-vulkan` across all four enumerated ICDs (RTX 5080, RTX 6000 Ada, Intel ARL ANV, lavapipe) as an independent duplicate of @Ybucaille's report, plus `tests/vk_offscreen.py --self-test`, and post the full matrix here.
cobrajet302gt commented 2026-11-25 16:05:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-25T15:32:41Z.


draw-core-vulkan run on the claim box above, full four-device matrix. Environment: main at 7092683a, #2297's merge commit d59f44f3 verified as an ancestor of the tested tree; DXC v1.9.2609 (official linux release binary, same pin as the compile-stage baseline in this thread) + SPIRV-Tools v2026.4; C host built from tests/vk_pixel_draw.c with cc -std=c11 -O1. tests/vk_offscreen.py --self-test passes (device-free controls) on this tree.

Native runs, tests/pixel_aot_check.py draw-core-vulkan out/614/bin/dxc <device-substring>:

device driver result
Intel(R) Graphics (ARL) (ANV) Mesa 26.2.4 PASS rc=0: four 4096-pixel renders and one 64-pixel quad-lod render, every channel bit exact (max_absolute_error=0), negative controls detected, trig_unreduced_mismatches=3/4
llvmpipe (LLVM 23.1.5) Mesa 26.3.1 capability skip rc=77 (shaderDenormPreserveFloat32 absent)
NVIDIA GeForce RTX 5080 615.78.08, Vulkan 1.4.351 capability skip rc=77
NVIDIA RTX 6000 Ada Generation 615.78.08, Vulkan 1.4.351 capability skip rc=77

Independent duplicates of @Ybucaille's ANV pass and lavapipe skip. Diagnostic runs with --allow-denorm-mismatch:

  • llvmpipe: PASS rc=0, all renders max_absolute_error=0, negative controls detected, trig_unreduced_mismatches=4/4 — duplicates the lavapipe diagnostic pass.
  • RTX 5080: pixel_mismatch x=16 y=0, channel 0 expected_bits=3e148000 actual_bits=3e14a000 (rc=1).
  • RTX 6000 Ada: same pixel, same bit pattern (rc=1).

New against the report above: this box has two NVIDIA cards, and both mismatch at the identical pixel with the identical bits on the same driver — the one-bit export16 difference reported earlier in this thread is driver-wide on the 615.78.08 branch, not card-specific, and it predates 620.70 rather than being introduced by it. NVIDIA rows stay capability skips until shaderDenormPreserveFloat32 appears in the driver's float controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7167007464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7167007464). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-25T15:32:41Z. --- `draw-core-vulkan` run on the claim box above, full four-device matrix. Environment: main at `7092683a`, #2297's merge commit `d59f44f3` verified as an ancestor of the tested tree; DXC v1.9.2609 (official linux release binary, same pin as the compile-stage baseline in this thread) + SPIRV-Tools v2026.4; C host built from `tests/vk_pixel_draw.c` with `cc -std=c11 -O1`. `tests/vk_offscreen.py --self-test` passes (device-free controls) on this tree. Native runs, `tests/pixel_aot_check.py draw-core-vulkan out/614/bin/dxc <device-substring>`: | device | driver | result | | --- | --- | --- | | Intel(R) Graphics (ARL) (ANV) | Mesa 26.2.4 | **PASS rc=0**: four 4096-pixel renders and one 64-pixel quad-lod render, every channel bit exact (`max_absolute_error=0`), negative controls detected, `trig_unreduced_mismatches=3/4` | | llvmpipe (LLVM 23.1.5) | Mesa 26.3.1 | capability skip rc=77 (`shaderDenormPreserveFloat32` absent) | | NVIDIA GeForce RTX 5080 | 615.78.08, Vulkan 1.4.351 | capability skip rc=77 | | NVIDIA RTX 6000 Ada Generation | 615.78.08, Vulkan 1.4.351 | capability skip rc=77 | Independent duplicates of @Ybucaille's ANV pass and lavapipe skip. Diagnostic runs with `--allow-denorm-mismatch`: - llvmpipe: **PASS rc=0**, all renders `max_absolute_error=0`, negative controls detected, `trig_unreduced_mismatches=4/4` — duplicates the lavapipe diagnostic pass. - RTX 5080: `pixel_mismatch x=16 y=0`, channel 0 `expected_bits=3e148000 actual_bits=3e14a000` (rc=1). - RTX 6000 Ada: same pixel, same bit pattern (rc=1). New against the report above: this box has two NVIDIA cards, and both mismatch at the identical pixel with the identical bits on the same driver — the one-bit `export16` difference reported earlier in this thread is driver-wide on the 615.78.08 branch, not card-specific, and it predates 620.70 rather than being introduced by it. NVIDIA rows stay capability skips until `shaderDenormPreserveFloat32` appears in the driver's float controls.
Ybucaille commented 2026-11-26 04:04:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-26T03:24:13Z.


Two follow-ups on the Vulkan path:

  • NVIDIA mismatch, fixed in #2717. The one-bit difference at x=16 came from export16: NVIDIA's Vulkan compiler folds f16tof32(f32tof16(x)) into x. export16 now uses the integer helpers narrow16 / widen16, and the NVIDIA diagnostic run (--allow-denorm-mismatch) exits 0. Thanks @cobrajet302gt for the RTX 5080 / 6000 Ada rows; a rerun of the diagnostic on #2717 would confirm it on your drivers.
  • Next, I'm taking a GPU-free Linux CI job: draw-core-vulkan on lavapipe (Mesa's CPU Vulkan driver), so that every PR draws the core set through SPIR-V. lavapipe flushes subnormals, so it runs with --allow-denorm-mismatch and must still match every reference bit for bit; a case that starts to depend on a subnormal would fail there, not be skipped silently. DXC comes from a pinned, checksummed release. One PR, CI and docs only, no change to the checks themselves.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181688018 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7181688018). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-26T03:24:13Z. --- Two follow-ups on the Vulkan path: - **NVIDIA mismatch, fixed in #2717.** The one-bit difference at `x=16` came from `export16`: NVIDIA's Vulkan compiler folds `f16tof32(f32tof16(x))` into `x`. `export16` now uses the integer helpers `narrow16` / `widen16`, and the NVIDIA diagnostic run (`--allow-denorm-mismatch`) exits 0. Thanks @cobrajet302gt for the RTX 5080 / 6000 Ada rows; a rerun of the diagnostic on #2717 would confirm it on your drivers. - **Next, I'm taking a GPU-free Linux CI job:** `draw-core-vulkan` on lavapipe (Mesa's CPU Vulkan driver), so that every PR draws the core set through SPIR-V. lavapipe flushes subnormals, so it runs with `--allow-denorm-mismatch` and must still match every reference bit for bit; a case that starts to depend on a subnormal would fail there, not be skipped silently. DXC comes from a pinned, checksummed release. One PR, CI and docs only, no change to the checks themselves. AI-assisted (Claude Code).
cobrajet302gt commented 2026-11-26 10:04:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-26T09:37:18Z.


Claiming the draw-core-vulkan diagnostic rerun on #2717 here, as @Ybucaille requested: same Linux box that posted the compile-stage baseline, the #2016 device rows and the #2297 four-device matrix.

Environment: stock main at 79410a80 (no local patches), #2717's merge commit fd368513 verified as an ancestor of the tested tree; note b457f7ff also touched tools/pixel_aot.py on this tree. DXC v1.9.2609 (official linux release binary, same pin as the compile-stage baseline) + SPIRV-Tools v2026.4.

Command: python3 -B tests/pixel_aot_check.py draw-core-vulkan out/614/bin/dxc <device> [--allow-denorm-mismatch] across the four enumerated Vulkan ICDs (two NVIDIA discrete, Intel ANV, llvmpipe), plain run plus the --allow-denorm-mismatch diagnostic on each. Results to follow in this thread.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7188239980 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7188239980). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-26T09:37:18Z. --- Claiming the `draw-core-vulkan` diagnostic rerun on #2717 here, as @Ybucaille requested: same Linux box that posted the compile-stage baseline, the #2016 device rows and the #2297 four-device matrix. Environment: stock `main` at `79410a80` (no local patches), #2717's merge commit `fd368513` verified as an ancestor of the tested tree; note `b457f7ff` also touched `tools/pixel_aot.py` on this tree. DXC v1.9.2609 (official linux release binary, same pin as the compile-stage baseline) + SPIRV-Tools v2026.4. Command: `python3 -B tests/pixel_aot_check.py draw-core-vulkan out/614/bin/dxc <device> [--allow-denorm-mismatch]` across the four enumerated Vulkan ICDs (two NVIDIA discrete, Intel ANV, llvmpipe), plain run plus the `--allow-denorm-mismatch` diagnostic on each. Results to follow in this thread.
cobrajet302gt commented 2026-11-26 15:41:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by cobrajet302gt on 2026-11-26T15:41:01Z.


draw-core-vulkan diagnostic rerun on #2717 (claim comment above) — results, including the requested NVIDIA confirmation.

Environment: stock main at 79410a80 (#2717's merge commit fd368513 verified as an ancestor; b457f7ff also touched tools/pixel_aot.py on this tree; no local patches to tracked files). DXC v1.9.2609 (official linux release binary, same pin as every earlier run in this thread) + SPIRV-Tools v2026.4. tests/vk_offscreen.py --self-test passed.

Plain draw-core-vulkan (no flag), unchanged in shape from the pre-#2717 matrix:

  • Intel ARL ANV (Mesa 26.2.4): rc=0, all five renders max_absolute_error=0, trig_unreduced_mismatches=3/4
  • RTX 5080, RTX 6000 Ada (driver 615.78.08, Vulkan 1.4.351) and llvmpipe (Mesa 26.3.1 / LLVM 23.1.5): rc=77 capability skip (shaderDenormPreserveFloat32=false), as before

Diagnostic --allow-denorm-mismatch:

  • RTX 6000 Ada: rc=0, all five renders max_absolute_error=0 (trig_unreduced_mismatches=0/4). Before #2717 the identical command on this identical card reported pixel_mismatch x=16 y=0, chan0 bits 3e148000 → 3e14a000. The narrow16/widen16 form of export16 clears that one-bit diff on driver 615.78.08 — confirms @Ybucaille's diagnosis that the fold of f16tof32(f32tof16(x)) was the whole mismatch, on the same driver branch the pre-fix diff came from.
  • Intel ARL ANV: rc=0, all renders max_absolute_error=0 (trig_unreduced_mismatches=3/4).
  • llvmpipe: rc=0, all renders max_absolute_error=0 (trig_unreduced_mismatches=4/4). One data point for the closed #2718: this box's llvmpipe (Mesa 26.3.1-arch3.5) matches every reference bit bit-for-bit under the diagnostic flag, consistent with the runner-side x=0 y=0 chan2 diff being specific to the older Mesa on the runners — we sit on the new side of that version cliff.
  • RTX 5080: no result this attempt — failed twice at vkCreateDevice with VK_ERROR_INITIALIZATION_FAILED (-3), so no pixels were compared (not a render diff). A co-resident D3D12-over-Vulkan workload owned that card at the time; the other three ICDs on the same machine passed the same diagnostic minutes apart, and the same card enumerates clean when idle (api 1.4.351, driver 615.78.08, denorm_preserve32=0, per the plain-run capability line above). The 5080 diagnostic row has since been rerun on the idle card — see the addendum below.

Bottom line: the NVIDIA diagnostic now exits 0 on both NVIDIA cards at 615.78.08 (5080 per the 2026-11-28 addendum) — the export16 fold was indeed the only diff on this driver branch, and #2717 removes it.


Addendum 2026-11-28 — RTX 5080 diagnostic row closed. With the card idle, draw-core-vulkan --allow-denorm-mismatch on the same tree (79410a80) and same DXC v1.9.2609 pin: rc=0, all five renders max_absolute_error=0 (trig_unreduced_mismatches=0/4); device line api 1.4.351, driver 615.78.08, denorm_preserve32=0. Identical outcome to the 6000 Ada row above, same driver branch — the earlier two vkCreateDevice -3 failures were environmental (co-resident workload), as suspected; no render divergence on either NVIDIA card.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7196607297 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/614#issuecomment-7196607297). Originally posted by [cobrajet302gt](https://github.com/cobrajet302gt) on 2026-11-26T15:41:01Z. --- `draw-core-vulkan` diagnostic rerun on `#2717` (claim comment above) — results, including the requested NVIDIA confirmation. **Environment:** stock `main` at `79410a80` (#2717's merge commit `fd368513` verified as an ancestor; `b457f7ff` also touched `tools/pixel_aot.py` on this tree; no local patches to tracked files). DXC v1.9.2609 (official linux release binary, same pin as every earlier run in this thread) + SPIRV-Tools v2026.4. `tests/vk_offscreen.py --self-test` passed. **Plain `draw-core-vulkan`** (no flag), unchanged in shape from the pre-#2717 matrix: - Intel ARL ANV (Mesa 26.2.4): rc=0, all five renders `max_absolute_error=0`, `trig_unreduced_mismatches=3/4` - RTX 5080, RTX 6000 Ada (driver 615.78.08, Vulkan 1.4.351) and llvmpipe (Mesa 26.3.1 / LLVM 23.1.5): rc=77 capability skip (`shaderDenormPreserveFloat32=false`), as before **Diagnostic `--allow-denorm-mismatch`:** - **RTX 6000 Ada: rc=0, all five renders `max_absolute_error=0`** (`trig_unreduced_mismatches=0/4`). Before #2717 the identical command on this identical card reported `pixel_mismatch x=16 y=0`, chan0 bits `3e148000` → `3e14a000`. The `narrow16`/`widen16` form of `export16` clears that one-bit diff on driver 615.78.08 — confirms @Ybucaille's diagnosis that the fold of `f16tof32(f32tof16(x))` was the whole mismatch, on the same driver branch the pre-fix diff came from. - Intel ARL ANV: rc=0, all renders `max_absolute_error=0` (`trig_unreduced_mismatches=3/4`). - llvmpipe: rc=0, all renders `max_absolute_error=0` (`trig_unreduced_mismatches=4/4`). One data point for the closed #2718: this box's llvmpipe (Mesa 26.3.1-arch3.5) matches every reference bit bit-for-bit under the diagnostic flag, consistent with the runner-side `x=0 y=0` chan2 diff being specific to the older Mesa on the runners — we sit on the new side of that version cliff. - **RTX 5080: no result this attempt** — failed twice at `vkCreateDevice` with `VK_ERROR_INITIALIZATION_FAILED` (-3), so no pixels were compared (not a render diff). A co-resident D3D12-over-Vulkan workload owned that card at the time; the other three ICDs on the same machine passed the same diagnostic minutes apart, and the same card enumerates clean when idle (api 1.4.351, driver 615.78.08, `denorm_preserve32=0`, per the plain-run capability line above). The 5080 diagnostic row has since been rerun on the idle card — see the addendum below. **Bottom line:** the NVIDIA diagnostic now exits 0 on both NVIDIA cards at 615.78.08 (5080 per the 2026-11-28 addendum) — the export16 fold was indeed the only diff on this driver branch, and #2717 removes it. --- **Addendum 2026-11-28 — RTX 5080 diagnostic row closed.** With the card idle, `draw-core-vulkan --allow-denorm-mismatch` on the same tree (`79410a80`) and same DXC v1.9.2609 pin: **rc=0, all five renders `max_absolute_error=0`** (`trig_unreduced_mismatches=0/4`); device line api 1.4.351, driver 615.78.08, `denorm_preserve32=0`. Identical outcome to the 6000 Ada row above, same driver branch — the earlier two `vkCreateDevice -3` failures were environmental (co-resident workload), as suspected; no render divergence on either NVIDIA card.
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
R0Y00/Xbox2Windows#608
No description provided.