[BUNDLE] Unknown-stride buffers: #704 on #193, stacked on #1511 #1643

Closed
MamaLeVrai wants to merge 115 commits from upstream-pr/1644 into main
MamaLeVrai commented 2026-11-24 20:20:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T20:20:56Z.


One PR in place of 2. Unknown-stride structured buffers are one of the two compute walls left in YaBulochka's retail run on #1402 (6 shaders there) and the third reason in Impre-visible's list on #1589 (56 shaders). Two open PRs address it: #193 (a runtime stride table for structured buffers) and #704, which is stacked on it and reads such buffers through a raw view of the same bytes. #704's branch carries #193's commits, so the two are one merge. On top of the shader stack (#1319, #1402, #1492, #1504, #1511). Every head is merged unchanged onto main plus #1511, and the result is built and tested together.

For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a [BUNDLE] PR. The re-verification commands are below, so one run covers all of it.

What is inside

PR Author Head Title
#193 n-romanovich f99b792 Shaders, GPU: add runtime stride table for structured buffers
#704 r4tedx 1f3c184 Shaders, GPU: unknown-stride buffers are read through a raw view of the same bytes (stacked on #193)

Changes made while bundling

No PR was edited. Two things on the stack:

  1. Tests at the end of emit/mod.rs: the stack and #704 both add helpers and tests there; both sets are kept (a join, nothing dropped).
  2. stride_table: #193 adds the field to HostShader; two literals in tests that the stack adds (validate_and_create_cs_pso in emit/shader.rs and the root view test) get it, in a separate commit.

Left out, and why

  • #160 (texel offsets, comparison and gather forms of image samples; what YaBulochka names for image_gather4_l): it conflicts with the stack in 13 places (emit/lower.rs 10, gfx10/fields.rs 2, emit/host.rs 1). It rewrites how the lowering reads a sample or gather opcode's name (a flag struct), where the stack extends the existing code step by step (#563 gradients and cubes, #306 16-bit coordinates, #1004 level of detail). Joining the two is a design choice, not a mechanical merge, so I left it.
  • #1548 (keep the full DYNAMIC descriptor range when the host view heap is capped): it conflicts with the view-heap sizing that is already on the stack in descriptor/host.rs (two hunks that rewrite the same make(count + ...) logic differently).
  • What this does not show: the numbers I know for these PRs are #1247's offline ones on main (+70 programs for #193 against its merge base, +39 for #704), not for this branch, which was only checked by clippy and the tests here (RX 6950 XT, WARP).

Verification

Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):

Check Result
cargo clippy --workspace --all-targets --locked -- -D warnings clean
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean
cargo test --workspace --locked 412 passed, 0 failed, 6 ignored (two runs; main: 342 passed, 6 ignored)

The title was not run, so this says nothing about in-game effect. No game data is used or committed.

Re-verify in one go

git fetch https://github.com/MamaLeVrai/VIctory.git bundle/stride-stack
git checkout FETCH_HEAD
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

To confirm that no component PR moved since this was built, compare each Head above with gh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.

If this lands

The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6590646747 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1644). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-24T20:20:56Z. --- **One PR in place of 2.** Unknown-stride structured buffers are one of the two compute walls left in YaBulochka's retail run on #1402 (6 shaders there) and the third reason in Impre-visible's list on #1589 (56 shaders). Two open PRs address it: #193 (a runtime stride table for structured buffers) and #704, which is stacked on it and reads such buffers through a raw view of the same bytes. #704's branch carries #193's commits, so the two are one merge. On top of the shader stack (#1319, #1402, #1492, #1504, #1511). Every head is merged unchanged onto `main` plus #1511, and the result is built and tested together. > For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a `[BUNDLE]` PR. The re-verification commands are below, so one run covers all of it. ## What is inside | PR | Author | Head | Title | |---|---|---|---| | #193 | n-romanovich | `f99b792` | Shaders, GPU: add runtime stride table for structured buffers | | #704 | r4tedx | `1f3c184` | Shaders, GPU: unknown-stride buffers are read through a raw view of the same bytes (stacked on #193) | ## Changes made while bundling No PR was edited. Two things on the stack: 1. **Tests at the end of `emit/mod.rs`**: the stack and #704 both add helpers and tests there; both sets are kept (a join, nothing dropped). 2. **`stride_table`**: #193 adds the field to `HostShader`; two literals in tests that the stack adds (`validate_and_create_cs_pso` in `emit/shader.rs` and the root view test) get it, in a separate commit. ## Left out, and why - **#160** (texel offsets, comparison and gather forms of image samples; what YaBulochka names for `image_gather4_l`): it conflicts with the stack in 13 places (`emit/lower.rs` 10, `gfx10/fields.rs` 2, `emit/host.rs` 1). It rewrites how the lowering reads a sample or gather opcode's name (a flag struct), where the stack extends the existing code step by step (#563 gradients and cubes, #306 16-bit coordinates, #1004 level of detail). Joining the two is a design choice, not a mechanical merge, so I left it. - **#1548** (keep the full DYNAMIC descriptor range when the host view heap is capped): it conflicts with the view-heap sizing that is already on the stack in `descriptor/host.rs` (two hunks that rewrite the same `make(count + ...)` logic differently). - **What this does not show**: the numbers I know for these PRs are #1247's offline ones on `main` (+70 programs for #193 against its merge base, +39 for #704), not for this branch, which was only checked by clippy and the tests here (RX 6950 XT, WARP). ## Verification Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain): | Check | Result | |---|---| | `cargo clippy --workspace --all-targets --locked -- -D warnings` | clean | | `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` | clean | | `cargo test --workspace --locked` | 412 passed, 0 failed, 6 ignored (two runs; `main`: 342 passed, 6 ignored) | The title was not run, so this says nothing about in-game effect. No game data is used or committed. ## Re-verify in one go ```powershell git fetch https://github.com/MamaLeVrai/VIctory.git bundle/stride-stack git checkout FETCH_HEAD cargo clippy --workspace --all-targets --locked -- -D warnings cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo test --workspace --locked ``` To confirm that no component PR moved since this was built, compare each `Head` above with `gh pr view <n> --repo Marvisak/VIctory --json headRefOid`. If one differs, the branch needs a rebuild: merge the new head in the same order. ## If this lands The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot commented 2026-11-24 21:02:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T20:21:05Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:Marvisak/VIctory:review:6046732812 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1644#pullrequestreview-6046732812). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/copilot-pull-request-reviewer%5Bbot%5D) on 2026-11-24T20:21:05Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
upstream-sync closed this pull request 2026-11-25 02:04:44 +00:00
Marvisak commented 2026-11-25 02:05:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:22:49Z.


Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149485208 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1644#issuecomment-7149485208). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:22:49Z. --- Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Marvisak commented 2026-11-25 02:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:33:09Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/draw.rs, crates/victory-gpu/src/pipeline/host.rs, crates/victory-gpu/src/shader_cache.rs, crates/victory-shader/src/emit/bitcode.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149677887 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1644#issuecomment-7149677887). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:33:09Z. --- <!-- victory-triage v1 head=8bf13c49dfd2fbd355a7894a340c79cff15cc8d9 verdict=needs-rebase at=2026-11-25T01:33:09Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-gpu/src/descriptor/host.rs`, `crates/victory-gpu/src/draw.rs`, `crates/victory-gpu/src/pipeline/host.rs`, `crates/victory-gpu/src/shader_cache.rs`, `crates/victory-shader/src/emit/bitcode.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1643
No description provided.