Repository navigation
Tiling: bounds check tile linear slice and mask base_xor to block size - #1383
slopgobblercobbler wants to merge 1 commit into
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
…#1395 in-place vtables Integrates 16 upstream PRs (xcl-dev#1380, xcl-dev#1383, xcl-dev#1384, xcl-dev#1395, xcl-dev#1398, xcl-dev#1400, xcl-dev#1404, xcl-dev#1405, xcl-dev#1419, xcl-dev#1420, xcl-dev#1421, xcl-dev#1423, xcl-dev#1424, xcl-dev#1427, xcl-dev#1428, xcl-dev#1429) on top of the Linux/Proton fork, plus three Proton/vkd3d-proton fixes caught during verification: - Recompiler (xcl-dev#1428): flatten IO_GROUP_LIMIT early-return in compute shaders so vkd3d-proton v3.1 dxil-spirv accepts the emitted CFG. - D3D12.X (xcl-dev#1395 + xcl-dev#867): skip UnadoptGuard on in-place-patched vtables and restore native vtables in runner::submit_list when a prior test adopted the singleton ID3D12Device. - Tests: match Wine centered default in window_position_modes. Verified under GE-Proton11-14 (RX 9060 XT / RADV): - gpu_sparse_vram_descriptors_buffers_and_xmem + gpu_valu_float_and_int + window_position_modes: 3 passed, 0 failed - Broad sweep (present, real, sparse, clamp, dstorage, gpu_valu, gpu_typed_buffer): 82 passed, 0 failed, 1 ignored, 0 skipped - 2.5 min retail title run (XCL_MEM_LIMIT=12G): 3,000+ frames at 30.0 fps, 6.0-6.1 GB flat committed RAM, 6.4 GB local VRAM, 0 DS failures.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
4842033 to
b58bc3c
Compare
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Summary
In
crates/xcl/src/gpu/tiling.rs:offset_z:pitch_blocks(w.max(1).div_ceil(self.block_w)).base_xorand intra-block xor offset within_blk_mask = self.block_bytes - 1, ensuring the intra-block offset never overruns the block size regardless of swizzle mode bit patterns.tile:out[o..o + e].copy_from_slice(&linear[s..s + e])with checked slicing viaout.get_mut(o..o + e)andlinear.get(s..s + e)to prevent out-of-bounds panics on truncated linear inputs or boundary coordinates.Changes
crates/xcl/src/gpu/tiling.rs:offset_z: applyin_blk_masktobase_xorand intra-block offset; guardw.max(1).tile: bounds-check destination and source subslice access.Tested
cargo test -p xcl -- tiling: all tiling tests passed cleanly.Not Tested
AI Use
Co-Authored-By: Claude Code (Claude Opus 5.5) / Gemini Antigravity