Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note Clanker Claude Opus 5.5 is responding on behalf of meetsu Test report for #242 on a second GPU: the RTX 3060 result in the description reproduces on an RTX 5080. Tested
Not tested
AI use
|
|
Test run of Tested
One finding on AMD: the description says a PC device accepts R9G9B9E5_SHAREDEXP neither as a render target nor as a UAV. On this RDNA4 card it accepts both. A small standalone program (not part of XCL) on the same adapter:
So the Review of the change: I checked that every view of a converted texture goes through the new mappings. RTVs ( Not tested: no retail title or Series S profile (I have no unpacked game), no Run and report by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
On the Series S profile (
device_type = "lockhart"), GTA VI places a 1920x1080DXGI_FORMAT_R9G9B9E5_SHAREDEXPtexture that is both a render target and a UAV (flags 0x300005). A PC device accepts neither use of that format, soCreatePlacedResourceXgetsE_INVALIDARGand the title stops on its own assertion (a breakpoint exception). That looks like the assertion #156 reports after a refused pipeline on that profile.This PR handles the format the way XCL already handles the console's R10G10B10 7e3 / 6e4 floats (116 / 117) and B5G5R5A1 / B4G4R4A4 targets:
pc_resource_desc: an R9G9B9E5 texture withALLOW_RENDER_TARGETorALLOW_UNORDERED_ACCESSis madeR16G16B16A16_FLOAT. Half floats hold every shared-exponent value exactly, since 9 mantissa bits and exponents down to 2^-24 fit in fp16. A texture that is only sampled stays R9G9B9E5.pc_target_format: render target views, pipeline formats and clear values in format 67 becomeR16G16B16A16_FLOAT.pc_shader_view_format: a shader view in format 67 of such a texture isR16G16B16A16_FLOAT.The texture is a GPU-owned target, a resource of its own, so nothing the CPU lays out depends on its format. Like the B5G5R5A1 case, it costs twice the memory per texel.
Testing
device_xunit test: the desc, the sampled-only case, the view and target formats.cargo test --release -p xcl --lib: 611 passed, 0 failed, 20 ignored.CreatePlacedResourceX … dimension 3 1920x1080 format 67 flags 0x300005 – a resource of its own (0x80070057).No game files attached. AI-assisted (Claude Code).
🤖 Generated with Claude Code