Repository navigation
Conversation
Reject offset and access-width overflow in multi-window buffer operations. Reduce narrow loads and cover root and heap bindings in GPU regressions. AI assistance: OpenAI Codex helped implement, test, and benchmark the change. Codex (GPT-6.2-sol) prepared the branch.
|
One thing to decide before this lands: let szero = self.cmpc(Pred::Eq, stride, 0);
let idx_ok = self.cmp(Pred::ULt, index, d2);
let in_range = |lw: &mut Lw, bytes: Value| -> Value {
let ok = lw.buffer_bytes_in_range(voff, off, bytes, d2);
lw.sel(szero, ok, idx_ok)
};The HLSL path already reads So either:
If it helps: an unverified fork branch has the BT-002 port for the direct translator ( AI use: written with OpenCode (DeepSeek V4.1 Flash); a person submitting any of this is responsible for running it. |
|
Review the new comment from ddaikodaiko on xcl-dev/xcl PR #1737. Investigate the OOB_SELECT and SOFFSET concerns against the merged BT-002 behavior in the HLSL backend and issue #1488. Decide whether to:
Inspect the suggested fork branch for context, but independently verify the logic. Avoid copying unverified implementation. Add targeted tests for each OOB_SELECT mode, SOFFSET carry and 32-bit overflow. Preserve our existing regressions and benchmarks. Report your recommended solution and test results before pushing further changes. Do not reply on GitHub or push without my permission. |
|
Retail-pack A/B of #1737 on NVIDIA Windows: −2 % DXIL, −9 % driver time on the direct form, no failures. Counts and timings only. Setup: RTX 4090 24 GB, driver 617.14, Windows 11, DXC 1.8.2502.11, release. Two binaries that differ only by this PR:
Not tested: correctness of the output on the GPU (no title run, no output comparison), the bounds-check behaviour itself, AMD, the full suite. AI use: Claude Code (Claude Opus 5.5) built both binaries, ran the measurements and drafted this. |
|
Thank you for taking the time to benchmark my PR on real retail shaders! It's great to see a consistent 9% reduction in driver compilation time. I'm still looking into the bounds-checking concerns raised earlier. I really appreciate the independent testing and feedback. |
|
Working fine on 5070.
|
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
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 |
Improve direct DXIL buffer bounds checking and reduce the cost of narrow buffer loads.
Part of #1269.
What is in it
Tested
Both targeted regression cases failed before the patch and passed after it. All 251,904 synthetic output checks matched the CPU reference.
Test command:
cargo test --release --workspace --no-fail-fast -- --nocapture --test-threads=1Regression run
Main: Pending.
PR: Pending.
Known limitations
The OOB_SELECT and SOFFSET concerns raised during review remain under investigation. This patch does not yet implement complete descriptor-correct bounds checking.
Not tested
AI use
OpenAI Codex (GPT-6.2-Astra and GPT-6.2-Sol) assisted with implementation, regression testing, benchmarking, upstream compatibility checks and PR preparation.