Repository navigation
D3D12.X: a view-by-address desc's padding is zeroed before it keys a texture - #3000
voiceovarian1-max wants to merge 1 commit into
Conversation
…texture `resource_at` makes one PC texture per address and desc for the title's views by address (device xcl-dev#70 and the UAV form), keyed by the PC part of the desc. The 4 bytes after the dimension are padding (before the 8-byte Alignment) and hold whatever the title's stack held there, so the same texture at the same address was made again for each different garbage: 19,780 of 65,536 creations in a retail title's world (a texture object cost 1-7 ms under vkd3d-proton here). The key is now `view_desc_key`, which zeroes that padding as well as the padding after the flags. Test: view_desc_padding_does_not_change_the_key (fails without the change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
RTX 5080, driver 620.73.04, Proton Experimental, Series X profile. We tested the cache-key change at In a 660 s title run, With the same save, driver and cache seeds as the unpatched control, both runs passed the credits and showed the cellmate tutorial over uniform gray. The 790 × 510 scene crop stayed pixel-identical in all 15 captures around forward/backward and camera inputs in each run. We still have no visible gameplay on this setup. This is an integration result, separate from the clean-main regression run. AI-assisted testing and write-up with OpenAI Codex ( |
|
The Windows regression run the description asks for: Setup: Windows 11 Pro 26200, RTX 2070 SUPER 8 GB, driver 621.01, Ryzen 7 5700X3D, 16 GB RAM, rustc 1.100.0, release;
The blocks of runs 3 and 4, for Regression run:
Not tested: the title's world, where the duplicates were counted ( AI use: Claude Code (Claude Opus 5.5) ran the smoke runs, read the diff and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
…-dev#3000 behind a switch) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested PR #3000 ( Unit test
Smoke check (
|
resource_atmakes one PC texture per address and desc for a title's views by address, keyed by the PC part of the desc. The 4 bytes after the dimension are padding (before the 8-byteAlignment) and hold whatever the title's stack held there, so the same texture at the same address was made again for each value: in a retail title's world, 19,780 of 65,536 texture creations by address. The key (view_desc_key) now zeroes that padding as well as the padding after the flags.What is in it
hle/d3d12x/real.rs:view_desc_key, used byresource_at, and the testview_desc_padding_does_not_change_the_key.Tested
x86_64-pc-windows-gnu, release; head001bf96a074don main623d02e4.cargo test -p xcl --lib view_desc(under Wine): 2 passed, 0 failed. Without the change the new test fails (1 failed).Regression run
scripts/smoke.ps1needs Windows, and we only have Linux. A Windows run of smoke on main and on this head would be welcome.Not tested
AI use
🤖 Generated with Claude Code