Repository navigation
Conversation
xg::Texture::volume refuses 3-D render targets (flags 1 / 2: E_NOTIMPL), so CreatePlacedResourceX had no console size for them and vram gave such a texture every tile of the PC texture as a 64 KiB page at its address. The newer retail title of xcl-dev#505 places thirteen 33x33x33 RGBA16F colour LUTs (flags 0x5) 512 KiB apart. The PC texture has 18 tiles, so each LUT shared 10 pages with the next one. A LUT's bake overwrote its neighbour's rows and the tone map sampled the wrong LUT (black -> cyan): the picture was teal. On our lab branch the same change turned the picture into the game's colours. The fallback is the bytes of the texels of every level (287,496 bytes, 5 pages of its own, for that LUT) and not a console layout. What the console's library does with a 3-D render target is not known: the xg oracle covers 3-D flags 0 and 4 only, and no console library was at hand. The 2-D render target rule (64KB_R_X, thin for 3-D) gives 2.06 MiB, which cannot be right for textures packed 512 KiB apart and keeps the overlap. 4KB_S thick (500 KiB) fits but is a guess. Teaching XG would also change what XGCreateTextureComputer and GetResourceAllocationInfo tell titles. No layout is smaller than its texels, so the pages taken are always the texture's own. Part of xcl-dev#505. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Ampere validation of the NVIDIA-branch precursor b59d263 RTX 3090 Ti 24 GiB, driver 621.40, Windows 10, 32 GiB RAM. Both release builds use
The direction of the color change is consistent with correcting cyan sampled from the wrong LUT. The frames are from different points in the opening and this is one run per arm. The control also recorded 153 two-pass mesh allocation refusals at the same 4 GiB cap, while the treatment recorded zero. No claim about a matched-frame color error, correct geometry, sustained rendering or device-removal prevention. The exact #2753 head has not been run here. Memory details are in the existing #2688 report. AI use: Codex (GPT-6) built and ran the pair, reviewed the backbuffer samples and wrote this report. |
|
Independent AMD RDNA4 (native wave64) verification of exact PR head Tested
(Compare against Not tested
AI use
|
|
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2753 at Setup
Targeted RTX 4060 release unit tests (
|
|
I compared stock On stock, adjacent placements shared 10 backing pages. I stopped that case before issuing texture commands, so I have no readback result for the overlapping pair. With the placements farther apart, stock shared zero pages and both textures read back correctly. On the PR head, both placement cases shared zero pages. After waiting for GPU completion, I read back every component of every texel: I used Codex GPT-6 Sol Daybreak for the WARP fixture and GPT-6.2 Sol for physical GPU verification and independent review. Codex GPT-6.2 Astra wrote this comment. I reviewed and approved this comment before posting. |
|
Windows / NVIDIA results for Regression run (default settings, 600 s)
This PR,
Tested
Not tested: #505's title; a frame of the world (no run gets that far); AMD / wave64. AI use: Claude Code (Claude Opus 5.5) built the commit, ran the suite and the runs on my machine, read the logs and wrote this. |
|
On Linux + NVIDIA (RTX 4060 Ti 16 GB), this PR took away the large white shapes over the title's opening scenes that we reported on #505 (7199770263): with it, 0 of 25 frames dumped after the world load were over 20 % near-white (2 of 2 runs); without it, 43 of 48 were (5 of 5 runs). Setup: NVIDIA 615.71.09, Wine 11.21 Staging, vkd3d-proton
Not tested: Windows; AMD; this PR on AI use: Claude Code (Claude Opus 5.5) merged the trees, made and read the runs, and wrote this. Posted without review by a person: the account owner was away and reads replies later. |
|
Independent native Windows validation of #2753 for #505 Tested
Not tested The exact adjacent 3D render-target pair in a GPU readback, retail world rendering, whole-workspace or parent runs, and net VRAM usage. The footprint query measures tile count. The fallback changes which addresses own those tiles. AI use Codex GPT-6.2 reviewed the diff, wrote the standalone footprint probe, ran the checks and drafted this report. |
A 3-D texture XG does not lay out (a 3-D render target:
xg::Texture::volumerefuses flags 1 / 2 withE_NOTIMPL) got no console size inCreatePlacedResourceX, sovramgave it every tile of the PC texture as a 64 KiB page at its address. The newer retail title of #505 places thirteen 33x33x33 RGBA16F colour LUTs (render target + UAV, flags 0x5) 512 KiB apart; the PC texture has 18 tiles of 64 KiB, so each LUT shared 10 pages with the next one. A LUT's bake overwrote rows of its neighbour, the tone map sampled another LUT's rows (LUT[black] = cyan) and the whole picture came out teal. Such a texture is now taken at the bytes of its texels (287,496 here: 5 pages of its own), which no console layout of it is smaller than.Part of #505.
Why not the console's layout: what the console's library does with a 3-D render target is not known here. The
xg_oraclevolume test covers flags 0 and 4 only, and no console library was at hand to ask. The 2-D rule for render targets (64KB_R_X, thin for 3-D in our tiling model) would give 33 x 64 KiB = 2.06 MiB, which cannot be right for textures the title packs 512 KiB apart, and it would keep the overlap. 4KB_S thick (500 KiB) fits, but that is a guess. Teaching XG this would also change whatXGCreateTextureComputerandGetResourceAllocationInfotell titles. The texels' bytes are a lower bound of any layout, so the pages taken are always the texture's own.What is in it
D3D12.X: a 3-D texture XG cannot size is taken at its texels' bytes(crates/xcl/src/hle/d3d12x/device_x.rs:console_bytes/volume_texel_bytes, used bycreate_placed_resource_x;vram::owned_pagesmadepub(super)for the test), with the unit testvolume_targets_xg_does_not_lay_out_keep_to_their_texels: two such LUTs 512 KiB apart do not share a page, a full mip chain is summed, and a sampled 3-D texture keeps XG's size.Tested
console_bytesis XG's size only) the new test fails:assertion left == right failed, left: None, right: Some(287496); with it, it passescargo test --release -p xcl --lib -- volume_targets owned_pages hle::xgon e07d03b: 80 passed, 0 failed, 0 ignored, 1257 filtered out (CPU tests; the filter also matcheshle::xgameruntime)stable-x86_64-pc-windows-msvc, release. One07d03b(this PR, onmainb49be18).cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4one07d03b: 1432 passed, 4 failed, 47 ignored. The 4 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3(CreateComputePipelineState: out of memory (0x8007000E)), which fail onmainas well.main): 21 "no wave64", 3 refused by the per-lane form,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(needs Developer Mode).Regression run
main:
this PR:
Not tested
xg_xs.dll(XCL_SAMPLE_XG) was at hand.AI use
🤖 Generated with Claude Code