Repository navigation
Conversation
…rs in image_d3d12 valid_image_shape returns early for D2Msaa and D2MsaaArray without validating max_mip or last_level (which encodes log2(samples) for MSAA). image_d3d12 then unconditionally computed `t.max_mip + 1` and `t.last_level.saturating_sub(t.base_level) + 1`, overflowing on u32::MAX and setting MipLevels > 1 for 1x MSAA textures (last_level == 0, samples == 1). Set mips = 1 and levels = 1 directly whenever the image type is D2Msaa or D2MsaaArray, with a unit test. Assisted-by: OpenCode (Gemini 4 Neon)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…v#1305-xcl-dev#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - xcl-dev#1321 (xcl-dev#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - xcl-dev#549, xcl-dev#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - xcl-dev#1365 (xcl-dev#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - xcl-dev#1368: translated compute PSOs use NodeMask 0 - xcl-dev#1371 (xcl-dev#105): deduplicate packed ISG1 vertex input struct fields - xcl-dev#1375 (xcl-dev#1360): ES s_setpc_b64 ends block before gs_start - xcl-dev#1350, xcl-dev#1351, xcl-dev#1352, xcl-dev#1353, xcl-dev#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - xcl-dev#1305, xcl-dev#1306, xcl-dev#1314, xcl-dev#1319, xcl-dev#1322, xcl-dev#1334, xcl-dev#1339, xcl-dev#1355, xcl-dev#1357, xcl-dev#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
…v#1305-xcl-dev#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - xcl-dev#1321 (xcl-dev#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - xcl-dev#549, xcl-dev#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - xcl-dev#1365 (xcl-dev#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - xcl-dev#1368: translated compute PSOs use NodeMask 0 - xcl-dev#1371 (xcl-dev#105): deduplicate packed ISG1 vertex input struct fields - xcl-dev#1375 (xcl-dev#1360): ES s_setpc_b64 ends block before gs_start - xcl-dev#1350, xcl-dev#1351, xcl-dev#1352, xcl-dev#1353, xcl-dev#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - xcl-dev#1305, xcl-dev#1306, xcl-dev#1314, xcl-dev#1319, xcl-dev#1322, xcl-dev#1334, xcl-dev#1339, xcl-dev#1355, xcl-dev#1357, xcl-dev#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows test on ad9c154. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC.
With the D3D12 debug layer enabled, AI use: Codex (GPT-6, exact variant unspecified) wrote the scratch fixture, ran the tests and drafted this report. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
merge-check claim |
|
merge-check |
|
merge-check
|
|
No open or merged PR makes this change. On main, AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
valid_image_shapereturns early forD2MsaaandD2MsaaArraywithout validatingmax_miporlast_level(which encodeslog2(samples)for MSAA).image_d3d12then unconditionally computedt.max_mip + 1andt.last_level.saturating_sub(t.base_level) + 1, overflowing onu32::MAXand settingMipLevels > 1for 1x MSAA textures (last_level == 0,samples == 1).This sets
mips = 1andlevels = 1directly whenevert.tyisD2MsaaorD2MsaaArray.What is in it
crates/xcl/src/gpu/desc.rs: forceMipLevels = 1and skipmax_mip + 1/last_levelmip-level arithmetic forD2Msaa/D2MsaaArrayinimage_d3d12; add unit testmsaa_resources_always_have_one_mip_and_never_overflow(verified failing before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib msaa_resources_always_have_one_mip_and_never_overflow: 1 passed, 0 failed (failed before the fix withMipLevels == 16)Regression run
main:
PR:
Not tested
AI use
desc.rs, wrote the fix and unit test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.