Repository navigation
Conversation
…TVs without a list (D3D-RGBA8-SRGB-UNORM-RTV) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Read the whole diff and tested RTX 5060 Ti (NVIDIA 621.01):
No VUID lines in any run. Ryzen 7 7700 iGPU (AMD 31.0.22044.1, 128 push-constant bytes): no evidence for or against the new block. On the code: I checked the case where the title asks AI-assisted (Claude Code, Claude Opus 5.5). |
|
Closing this one:
If a draw test of |
Claimed in the coordination issue as: D3D-RGBA8-SRGB-UNORM-RTV
What and why
The retail title draws its Bink movie through an
R8G8B8A8_UNORMRTV of anR8G8B8A8_UNORM_SRGB2D texture made withALLOW_RENDER_TARGETand no castable list (measured on a retail boot, RTX 5080).CreateRenderTargetViewrefused the view (unsupported typeless or RGBA8 RTV format/subresource: 28), so the movie's draw had no target. The console allows the cast.CreateRenderTargetView, the clear path and the draw path already handle this cast when the texture's castable list names the view. So the only change is which list the texture gets: on a device the Xbox-ABI proxy owns (set_device_outer, whichD3D12XboxCreateDevicecalls), a 2DR8G8B8A8_UNORMor_SRGBrender target without a list of its own gets {UNORM, SRGB} inResource::create_texture. That covers every creation slot (27, 29, 76, 127, 133) without touching the proxy or losing the initial state, and a device without the proxy behaves as before.Limits:
B8G8R8A8and other families are left as they are: no such cast has been seen.Tested
Built with MSVC (Ninja, RelWithDebInfo).
d3d12_draw_testgained a block: for an sRGB texture with a UNORM RTV and the reverse, a clear and a draw are read back as raw bytes, and the same texture made while the device has no proxy must still refuse the RTV (Closefails). With the device change disabled the test does not get through this block; with it, it passes.Run with and without
LEONIDA_VK_VALIDATION=1, exit 0 in both and no VUID messages:d3d12_draw,d3d12_clear,d3d12_typeless_rtv,d3d12_vulkan_device,d3d12_method_variants,typeless_rtv,xs_proxy_mock,d3d12_descriptor,d3d12_present,d3d12_msaa_draw,d3d12_srgb_uav,d3d12_m2_textured,d3d12_m3_frame.d3d12_first_lightskips (exit 77).scripts/check_no_game_data.pypasses on the touched files.Not run: the rest of
ctest, another GPU, Linux/Wine, the translator suite (untouched), and the retail title with exactly this change (a local prototype with the same list and another gate showed the movie).GPUs tested: NVIDIA GeForce RTX 5080, 621.24, Windows 11 build 26200
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (not applicable: no translator change)🤖 Generated with Claude Code