Repository navigation
Conversation
On the console a texture has a GPU address like any resource. A retail game turns a 256x256 R32_FLOAT texture's address into the CPU pointer it clears it through; on the PC GetGPUVirtualAddress of a texture is 0, so it wrote 256 KB at address 0. For a resource the title placed at its own address, the PC's answer 0 becomes that address (title_address); buffers and everything with a PC address are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
RTX 3060 Ti (wave32), Windows 11 host, |
|
Thanks for testing! |
… is its title address
… is its title address
…-target and texture-address fixes Open upstream pull requests applied as they are (their authors' work): - ivall#151 (gbuyssens): clzero / clwb / rdpru / monitorx / mwaitx / rdpid emulated on CPUs that lack them (HANDOFF.md hunk left out, it did not apply). - ivall#163, ivall#170 (Sr-0w): Xbox D16S8 depth formats, depth + UAV buffers, console mesh pipeline streams, null stand-in shaders. - ivall#168 (ShyVortex): GetGPUVirtualAddress of a placed texture. Local changes: - xg: XGTextureAddressComputer ivall#10 as GetResourceTiling, from the layout model (not checked against the console's library). - d3d12x: a UAV of a texture made without ALLOW_UNORDERED_ACCESS is a null UAV (the real call removed the device); a committed texture gets memory when the title asks for its address; clear values and view descriptions get pc_format; formats 86 / 115 -> R8G8B8A8, 116 / 117 -> R16G16B16A16_FLOAT. - Debug layer log: 8 messages per id instead of 200 in all. - The earlier "AS slot ignored" workaround stays but is no longer reached (ivall#170). - CHANGES.txt, README status and installer version for build 3. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tested on AMD (RX, GTA VI retail). One gap: in 🤖 Generated with Claude Code |
|
Second spot, same crash: textures that 🤖 Generated with Claude Code |
|
Setup: AMD Radeon RX 7800 XT (RDNA3, 16 GB), driver 32.0.32015.7029, 32 GB RAM, Windows 11 Pro 26200, GTA VI retail, Confirming @Sr-0w's gap (the That's the texture the same init function ( if let Some(hr) = super::vram::place(this, va as usize, &pc, state, clear, riid, ppv) {
+ if hr >= 0 && !(*ppv).is_null() {
+ real::note_title_address(*ppv as usize, va as usize);
+ }
return hr;
}Caveat: for arena textures the title's CPU writes then land in title memory, not in the PC texture. That's harmless for this clear-to-zero, but content written on the CPU wouldn't reach the GPU. 🤖 Generated with Claude Code |
|
Confirmed the slot-11 fallback on an actual placed texture with a registered title address. I tested PR head
The native check created a real D3D12 heap and placed texture, adopted the resource, called The PR adds no test of its own. This checks address selection once registration succeeds. The two creation paths already discussed above, CPU-to-GPU write visibility, retail execution and merge-onto-main were outside this run. AI-assisted review. |
After xcl (ivall/xcl#168): a title clears a texture through the CPU pointer its address is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Superseded by 38b05b7 on Thanks to everyone who tested this: ryosen0, Sr-0w, gw1337x and Kalmarv. |
|
Closing: on main a texture's GetGPUVirtualAddress gives its title address when the PC answers 0, and the address is noted on both creation paths named in the review ( |
Summary
On the console every resource has a GPU address, textures included. On the PC,
GetGPUVirtualAddressof a texture is 0.A retail game turns a 256×256
R32_FLOATtexture's address into the CPU pointer it clears it through. The chain, from its code:0x2913410creates the texture.[tex + 0x10] = 0x4fd2940(tex), which isGetGPUVirtualAddress(vtable+0x58) mapped through the title's unified-memory window.memset([tex + 0x10], 0, w * h * 4).With the PC's 0 it wrote 256 KB at address 0 (
vcruntime140!memset, access violation).The texture is one the title placed at its own address (
CreatePlacedResourceX→ video-memory arena), so XCL already knows that address:title_address(), whichMapuses.res_gpu_va_xonly consultedconsole_buffer(). Now, when the PC answers 0, it returns the resource's title address if there is one. Buffers, and anything that has a PC address, are unchanged.Testing
cargo test --release --workspace: all pass.memseton two runs without this change, and ran past it with it.Draft until one more run confirms nothing later trips on the addresses this now returns.
🤖 Generated with Claude Code