Repository navigation
Conversation
|
Tested b2458f7 on Windows 11 with NVIDIA GeForce RTX 4090 (driver 32.0.16.2101) and AMD Radeon Graphics (driver 32.0.21043.5001): pass. AI-assisted. I set VK_DRIVER_FILES to one driver per run. I set LEONIDA_W64_EMULATE=1. I built vk_compute_test in RelWithDebInfo.
The shader passed spirv-val. Each GPU returned the five expected words: CAFE0F00 1234ABCD 5EED0001 9E3779B9 9E3779B9. For the control, I built vk_compute_test from parent 3faac55. I ran the same SPIR-V file with VKC_CODE_BASE=0x800 and VKC_OUT_WORDS=552. Both GPUs returned EEEEEEEE in all five positions. This check covers the low code-base word. |
|
Independent Windows 11 GPU check at exact head \�2458f7c7568478317c6caf0640b9700c80c443c\ (GPU: NVIDIA GeForce RTX 4060 Laptop GPU, driver \32.0.16.1714; claim: #5156 (comment)):
Synthetic fixtures only, no game data. AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Built and ran at b2458f7c7 on Windows 11, RTX 5070 Ti: run_gpu_tests.py --filter cs_code_base -> 1/1 passed, cs_code_base -> 5/5 words exact; translator 1/1 + spirv-val; git diff --check clean.
The fixture reads a constant table embedded in the shader's own code (at Xbox VA 0x880) through the code base, which is how the game's shaders reach code-embedded data; the runner and check.py expect the five words. This pins the code-base path separately from the per-stage user-data slots. No blocking issue.
|
Independent check — PASS (Windows 11, NVIDIA RTX 5090, driver 617.42, Vulkan SDK 1.4.363.0).
Note: this is a coverage fixture — the underlying code-base feature is already on main (#5128 lineage), so the value is locking code-embedded-data reads into the GPU regression suite. AI-assisted (Devin); no game files. |
|
Tested GPU checks (
|
|
Tested b2458f7 on Intel UHD 630 (CFL GT2, subgroup 8..32): run_gpu_tests.py --filter cs_code_base with LEONIDA_VK_DEVICE=Intel passes, "PASS cs_code_base 5/5 words exact", and a nonexistent device name fails with "no Vulkan physical device matches". Dispatching it directly with VKC_CODE_BASE=0x800 VKC_OUT_WORDS=552 prints out[0..7] = 3405647616 305441741 1592590337 2654435769 2654435769 4008636142 4008636142 4008636142, the five expected words (0xCAFE0F00, 0x1234ABCD, 0x5EED0001, 0x9E3779B9, 0x9E3779B9) followed by the 0xEEEEEEEE fill. The full suite gives 155/218 passed, 61 skipped, with FAIL cs_fmt_int_narrow and cs_signed_zero_nan, and tests/test_run_gpu_tests.py passes (41 tests). A run with the code base unset and a negative control on the translator were not part of this check. AI-assisted. |
|
Tested AI-assisted (Claude Code). |
|
Tested
Synthetic fixtures only, no game files. AI-assisted (Claude Code). |
|
Thanks @justr4mzi and @lunarminus. Both causes you named were real: 5c98cae counts the fixture and adds the branch. The branch returns the five table words only when the call carries the I also merged main (merge commit 5efc84b). Two conflicts: the
AI-assisted. |
Add a hand-written GPU fixture
cs_code_base.asmfor the translator contract row "Code-embedded data" (docs/design.md). One thread stores a four-word table at Xbox VA 0x880 with the code base at 0x800 and reads it back throughs_getpc_b64+s_add_u32/s_addc_u32+s_load_dwordx4, plus one word from a seconds_getpc_b64site, so a next-instruction offset that is not the assembler's lands off the table.vk_compute_testgainsVKC_CODE_BASEto set the code base push constant (dwords 34-35), which was always 0 before;scripts/run_gpu_tests.pyandruntime/test/shaders/check.pyrun the fixture and judge its five words. The branch changes no translator file: the bytes under test are main's translator.Tested on main's translator: 5/5 words exact on NVIDIA GeForce RTX 5080 (Linux, driver 620.70.06) and on AMD Radeon 610M (Mesa RADV 26.2.6, Linux). Negative control, with the translator patched to drop the code base, reads the 0xEE fill in all five words.
The carry into the high half is 0 at these addresses, so the carry itself is covered only by the CPU tests.
AI-assisted.