gpu: integrate XSS rendering and resource lifetime fixes #3944

Manually merged
github merged 8 commits from github-bot/gh-3942 into gh-pr/3942/base 2026-12-03 17:54:27 +00:00 AGit
Owner

@⁠R0Y00 on GitHub · 2026-12-03 15:41 UTC · original
R0Y00:codex/xss-runtime-integration → main · +25169 −1921 · 168 files · 8 commits · merged 2026-12-03 17:42 UTC

Summary

  • Integrate native C++ shader translation and XSS graphics resource bindings.
  • Batch XMem range validation, preserve GPU-written ranges across submissions and recycle staging allocations after their fences.
  • Defer sampled texture and address-SRV allocations, track upload budget by creator and record presentation evidence.
  • Preserve the current main branch's lazy texture, descriptor publication and GPU readback behavior alongside the sampled-texture budget policy.

Verification

The local build at c2f5c8ca6 passed 71 targeted CTest cases. The Windows host was build 26300.9974 with an RTX 4060 Laptop GPU and NVIDIA driver 616.56. The cases cover native mesh and pixel shaders, cache equality, masked execution, packed outputs, UAV manifests, indirect draws, Mesh86 material buffers, texture deferral, retirement, linear staging and GPU-to-CPU visibility. The WQM draw fixture ran with the D3D12 debug layer enabled.

ctest --test-dir out/publish-xss-build -j 1 --output-on-failure --no-tests=error -R '^(native_direct_(mesh|container|cache_controls|cache_key_controls)|native_compute_manifest_reasons(_requests)?|native_graphics_wqm_(ir|warp)|native_mesh_(heap_provenance_smem_ir|packed_rows_vcc_ir|packed_order_dxil)|native_pixel_masked_region_alu_(controls|warp)|native_uav_slots_controls|startup_resource_budget_creators_(warp|hardware)|startup_triage_run|startup_mesh86_material_backing(_[a-z_]+)?_(warp|hardware)|startup_indirect_(draw_indexed|copy_provenance|translated_indexed_snapshot|translated_argument_snapshot)_(warp|hardware)|upload_reservation_unit_(all|reuse_rec_guard_mut)|upload_budget|startup_upload_reserve|linear_buffer_backing_share_(warp|hardware)|startup_slot133_lazy_textures_.*warp.*|startup_view_census_.*warp|startup_sampled_texture_policy.*_(warp|hardware)|startup_resource_retire_(title|views)_warp_debug[01]|linear_buffer_backing_(copy|staging-resize|staging-oom)_warp|gpu_cpu_visibility_reference_.*_warp|startup_gpu_to_cpu_.*warp.*)$'

In an earlier matched local XSS trace, median address validation for a sampled 39.8 MB heap fell from 1.97 s to 42 ms and median recording time from 2.09 s to 201 ms. That trace reached loading. Interactive scene presentation remains open.

Refs #3765 and #3643.

**@⁠R0Y00** on GitHub · 2026-12-03 15:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3942) `R0Y00:codex/xss-runtime-integration` → `main` · +25169 −1921 · 168 files · 8 commits · merged 2026-12-03 17:42 UTC ## Summary - Integrate native C++ shader translation and XSS graphics resource bindings. - Batch XMem range validation, preserve GPU-written ranges across submissions and recycle staging allocations after their fences. - Defer sampled texture and address-SRV allocations, track upload budget by creator and record presentation evidence. - Preserve the current main branch's lazy texture, descriptor publication and GPU readback behavior alongside the sampled-texture budget policy. ## Verification The local build at `c2f5c8ca6` passed 71 targeted CTest cases. The Windows host was build 26300.9974 with an RTX 4060 Laptop GPU and NVIDIA driver 616.56. The cases cover native mesh and pixel shaders, cache equality, masked execution, packed outputs, UAV manifests, indirect draws, Mesh86 material buffers, texture deferral, retirement, linear staging and GPU-to-CPU visibility. The WQM draw fixture ran with the D3D12 debug layer enabled. ```powershell ctest --test-dir out/publish-xss-build -j 1 --output-on-failure --no-tests=error -R '^(native_direct_(mesh|container|cache_controls|cache_key_controls)|native_compute_manifest_reasons(_requests)?|native_graphics_wqm_(ir|warp)|native_mesh_(heap_provenance_smem_ir|packed_rows_vcc_ir|packed_order_dxil)|native_pixel_masked_region_alu_(controls|warp)|native_uav_slots_controls|startup_resource_budget_creators_(warp|hardware)|startup_triage_run|startup_mesh86_material_backing(_[a-z_]+)?_(warp|hardware)|startup_indirect_(draw_indexed|copy_provenance|translated_indexed_snapshot|translated_argument_snapshot)_(warp|hardware)|upload_reservation_unit_(all|reuse_rec_guard_mut)|upload_budget|startup_upload_reserve|linear_buffer_backing_share_(warp|hardware)|startup_slot133_lazy_textures_.*warp.*|startup_view_census_.*warp|startup_sampled_texture_policy.*_(warp|hardware)|startup_resource_retire_(title|views)_warp_debug[01]|linear_buffer_backing_(copy|staging-resize|staging-oom)_warp|gpu_cpu_visibility_reference_.*_warp|startup_gpu_to_cpu_.*warp.*)$' ``` In an earlier matched local XSS trace, median address validation for a sampled 39.8 MB heap fell from 1.97 s to 42 ms and median recording time from 2.09 s to 201 ms. That trace reached loading. Interactive scene presentation remains open. Refs #3765 and #3643.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:43:22 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 16:42 UTC · original

The hosted Linux job on 47fb9bab has five actual failing checks. The FAIL lines under successful mutation audits are expected and are separate from this list.

  • docs_links_check: the material-placed-buffer-backing heading no longer matches the link in docs/experiments.md.
  • startup_triage_run_check: the inventory is missing four new compute root constant-buffer refusal reasons (unset parameter, non-CBV, misalignment, missing coherent backing).
  • startup_formatted_raw_srv_check: the extracted fixture lacks the new buffer_srv_offset helper and descriptor record.
  • startup_close_guard_check: the extracted Wrapper stub lacks the const own() overload used by the production fragment.
  • upload_reservation_unit_meta_check: two reservation contract anchors moved and the recordings-guard mutation no longer applies. When updating the fixture, keep its capacity and live-recording failure cases and verify the mutation still fails against the new anchor.

Log: https://github.com/R0Y00/Xbox2Windows/actions/runs/47150865898/job/144411621776

**@⁠R0Y00** on GitHub · 2026-12-03 16:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3942#issuecomment-7385317076) The hosted Linux job on 47fb9bab has five actual failing checks. The FAIL lines under successful mutation audits are expected and are separate from this list. - docs_links_check: the material-placed-buffer-backing heading no longer matches the link in docs/experiments.md. - startup_triage_run_check: the inventory is missing four new compute root constant-buffer refusal reasons (unset parameter, non-CBV, misalignment, missing coherent backing). - startup_formatted_raw_srv_check: the extracted fixture lacks the new buffer_srv_offset helper and descriptor record. - startup_close_guard_check: the extracted Wrapper stub lacks the const own() overload used by the production fragment. - upload_reservation_unit_meta_check: two reservation contract anchors moved and the recordings-guard mutation no longer applies. When updating the fixture, keep its capacity and live-recording failure cases and verify the mutation still fails against the new anchor. Log: https://github.com/R0Y00/Xbox2Windows/actions/runs/47150865898/job/144411621776
github-bot changed target branch from main to gh-pr/3942/base 2026-12-03 17:51:00 +00:00
github manually merged commit c2f5c8ca6e into gh-pr/3942/base 2026-12-03 17:54:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.