Allow the compute detile readback test on the runtime GPU #1435

Open
UwUCammie wants to merge 1 commit from upstream-pr/1435 into main
UwUCammie commented 2026-11-27 05:02:39 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-27T05:02:39Z.


The detile test can now run against the device the renderer selects. Set VICTORY_TEST_GPU_DETILE_HARDWARE=1 to require that device. With the switch unset, the same test still uses WARP.

On RX 7900 XT with Wine 11.22, RADV 26.3.1 and GE vkd3d-proton cae8353ed7959c4, all 19 generated GPU readbacks matched the CPU detile. That includes compressed and plain formats, arrays, 3D textures, and two partial mip masks. The Windows MSVC test binary matched all 89 runtime source checksums. The test exercises the detile operation and readback.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5521484849 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1435). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T05:02:39Z. --- The detile test can now run against the device the renderer selects. Set `VICTORY_TEST_GPU_DETILE_HARDWARE=1` to require that device. With the switch unset, the same test still uses WARP. On RX 7900 XT with Wine 11.22, RADV 26.3.1 and GE vkd3d-proton `cae8353ed7959c4`, all 19 generated GPU readbacks matched the CPU detile. That includes compressed and plain formats, arrays, 3D textures, and two partial mip masks. The Windows MSVC test binary matched all 89 runtime source checksums. The test exercises the detile operation and readback.
Filip722 commented 2026-11-27 07:22:20 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T07:22:20Z.


I ran this fixture at e50eeef9 merged with main 9a9091d on an RTX 5060 Laptop (8 GiB), NVIDIA 615.78.08, GE-Proton11-14 and vkd3d-proton 3.2.0. Both runs explicitly selected the physical RTX and used the same generated inputs.

  • The current detile compiler returned DXBC with no embedded root signature. Root/pipeline setup then failed with 0x80004005.
  • Changing only the detile compiler call to use the helper in #20 returned DXIL with the embedded signature. Pipeline creation succeeded, and all 19 GPU readbacks matched the CPU implementation, including the partial mip masks.

This complements the Radeon result with a Proton/NVIDIA test. The compiler change can be kept with the shared runtime fallback.

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7212406842 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1435#issuecomment-7212406842). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-27T07:22:20Z. --- I ran this fixture at `e50eeef9` merged with main `9a9091d` on an RTX 5060 Laptop (8 GiB), NVIDIA 615.78.08, GE-Proton11-14 and vkd3d-proton 3.2.0. Both runs explicitly selected the physical RTX and used the same generated inputs. - The current detile compiler returned DXBC with no embedded root signature. Root/pipeline setup then failed with `0x80004005`. - Changing only the detile compiler call to use the helper in #20 returned DXIL with the embedded signature. Pipeline creation succeeded, and all 19 GPU readbacks matched the CPU implementation, including the partial mip masks. This complements the Radeon result with a Proton/NVIDIA test. The compiler change can be kept with the shared runtime fallback. Assisted by Codex (GPT-6.2-Sol High).
UwUCammie commented 2026-11-27 07:41:10 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-27T07:41:10Z.


Thanks for checking this on the RTX 5060. The Radeon run allowed a native d3dcompiler_47 in the test prefix, so its 19 matching readbacks didn’t cover the built-in compiler case you hit. I’ve queued a Radeon comparison with Wine’s compiler forced and the shared #20 fallback as the only compiler change. The test-only PR can stand on its own while we check the runtime path.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7212716231 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1435#issuecomment-7212716231). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T07:41:10Z. --- Thanks for checking this on the RTX 5060. The Radeon run allowed a native `d3dcompiler_47` in the test prefix, so its 19 matching readbacks didn’t cover the built-in compiler case you hit. I’ve queued a Radeon comparison with Wine’s compiler forced and the shared #20 fallback as the only compiler change. The test-only PR can stand on its own while we check the runtime path.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1435:upstream-pr/1435'
git switch 'upstream-pr/1435'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1435'
git switch 'upstream-pr/1435'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1435'
git switch 'upstream-pr/1435'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1435'
git switch 'main'
git merge --squash 'upstream-pr/1435'
git switch 'main'
git merge --ff-only 'upstream-pr/1435'
git switch 'main'
git merge 'upstream-pr/1435'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
fxceless/victory-fork!1435
No description provided.