GPU: keep indirect argument windows within the named buffers #204

Open
github-bot wants to merge 1 commit from github-bot/gh-204 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-11-24 22:33 UTC · original
avt0m4t48:fix/execute-indirect-buffer-ranges → main · +84 −10 · 2 files · 1 commits · open

Refs #107. Validate the argument and count offsets against the sizes of their named guest buffers before looking up desktop shadows. Cap the clamp window by both the guest and host ranges. If only one record fits, copy its signature stride. A 12-byte record at the end of a buffer previously could acquire the 32-byte look-ahead stride. D3D12 ExecuteIndirect range requirements

Five source-built Rust tests reproduce the old unchecked bounds and window stride and pass with the change. They cover a neighboring buffer, count alignment and size, address wraparound, one remaining record and a short guest range in a larger shadow. cargo check -p victory-gpu --tests --all-features -F blake3/pure --target x86_64-pc-windows-msvc --locked --offline passed. The full native Linux crate build hits existing Windows-only references on the unmodified base.

This is a bounds correction for the existing clamp path. GPU execution and frame timing remain unmeasured. Source-built inputs only. AI-assisted using Codex.

**@⁠avt0m4t48** on GitHub · 2026-11-24 22:33 UTC · [original](https://github.com/fxceless/victory-fork/pull/204) `avt0m4t48:fix/execute-indirect-buffer-ranges` → `main` · +84 −10 · 2 files · 1 commits · open Refs #107. Validate the argument and count offsets against the sizes of their named guest buffers before looking up desktop shadows. Cap the clamp window by both the guest and host ranges. If only one record fits, copy its signature stride. A 12-byte record at the end of a buffer previously could acquire the 32-byte look-ahead stride. [D3D12 ExecuteIndirect range requirements](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-executeindirect) Five source-built Rust tests reproduce the old unchecked bounds and window stride and pass with the change. They cover a neighboring buffer, count alignment and size, address wraparound, one remaining record and a short guest range in a larger shadow. `cargo check -p victory-gpu --tests --all-features -F blake3/pure --target x86_64-pc-windows-msvc --locked --offline` passed. The full native Linux crate build hits existing Windows-only references on the unmodified base. This is a bounds correction for the existing clamp path. GPU execution and frame timing remain unmeasured. Source-built inputs only. AI-assisted using Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:14 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/204/head:github-bot/gh-204'
git switch 'github-bot/gh-204'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-204'
git switch 'github-bot/gh-204'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-204'
git switch 'github-bot/gh-204'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-204'
git switch 'main'
git merge --squash 'github-bot/gh-204'
git switch 'main'
git merge --ff-only 'github-bot/gh-204'
git switch 'main'
git merge 'github-bot/gh-204'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.