gpu(list): strip console flags from UAV/aliasing barriers and add DMA list vtable #517

Open
hingeowl wants to merge 1 commit from hingeowl/Darner:pr/list-barrier-flags-dma into Main
Contributor

What it changes

  • The problem on main: UAV and aliasing barriers can forward console-only flag bits to the host D3D12 runtime, classic barrier method return width differs from 64-bit, and copy (DMA) lists (type 16) lack a dedicated vtable.
  • Ported from leonida/mandy (ac9ff29695, 33181d479e, 2f8d4d52b0):
    • Drops console-only flags from UAV/aliasing barriers before host submission (DARNER_BARRIER_CONSOLE_FLAGS=0 rollback switch).
    • Returns 64-bit from the classic barrier method.
    • Adds a dedicated vtable for copy (DMA) lists (type 16) in crates/darner-gpu/src/list.rs, with unit tests.

How it was tested

  • Tested revision: 285d599 (based on main c8258f9)
  • Commands and results:
    • cargo xtask policy — pass
    • cargo clippy --workspace --all-targets --locked -- -D warnings — pass
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — pass
    • cargo test -p darner-gpu --locked — pass
  • Changes a default: yes (strips console-only barrier flags unless DARNER_BARRIER_CONSOLE_FLAGS=0, and gives DMA lists their own vtable).
  • A/B result: correctness fix; ran clean in cam-city60 (RTX 4090 + Ryzen 9 7950X3D, Series X, HW RT) as part of our integration branch.
  • Gates run on that revision: cargo xtask policy, both workspace clippy gates, cargo test -p darner-gpu --locked.
  • Hardware dependence: likely general.
  • Coverage gaps: standalone A/B comparison not recorded.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found
  • Replaces or overlaps: none found
## What it changes - The problem on main: UAV and aliasing barriers can forward console-only flag bits to the host D3D12 runtime, classic barrier method return width differs from 64-bit, and copy (DMA) lists (type 16) lack a dedicated vtable. - Ported from `leonida/mandy` (`ac9ff29695`, `33181d479e`, `2f8d4d52b0`): - Drops console-only flags from UAV/aliasing barriers before host submission (`DARNER_BARRIER_CONSOLE_FLAGS=0` rollback switch). - Returns 64-bit from the classic barrier method. - Adds a dedicated vtable for copy (DMA) lists (type 16) in `crates/darner-gpu/src/list.rs`, with unit tests. ## How it was tested - Tested revision: `285d599` (based on `main` `c8258f9`) - Commands and results: - `cargo xtask policy` — pass - `cargo clippy --workspace --all-targets --locked -- -D warnings` — pass - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` — pass - `cargo test -p darner-gpu --locked` — pass - Changes a default: yes (strips console-only barrier flags unless `DARNER_BARRIER_CONSOLE_FLAGS=0`, and gives DMA lists their own vtable). - A/B result: correctness fix; ran clean in `cam-city60` (RTX 4090 + Ryzen 9 7950X3D, Series X, HW RT) as part of our integration branch. - Gates run on that revision: `cargo xtask policy`, both workspace `clippy` gates, `cargo test -p darner-gpu --locked`. - Hardware dependence: likely general. - Coverage gaps: standalone A/B comparison not recorded. ## Checklist - [x] I ran this change in the game. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found - Replaces or overlaps: none found
Ported from Mandy: drop console-only flags from UAV/aliasing barriers before
host submission (DARNER_BARRIER_CONSOLE_FLAGS=0 rollback), return 64-bit from
classic barrier method, and give copy (DMA) lists type 16 their own vtable.

Upstream-Repository: https://git.leonida.now/leonida/mandy
Upstream-Commit: ac9ff29695, 33181d479e, 2f8d4d52b0
Integration-Base: 6134402
Validation: cargo test --locked -p darner-gpu --lib list::tests:: (passed)
TrustNo1 changed title from [pr-fix][rendering] gpu(list): strip console flags from UAV/aliasing barriers and add DMA list vtable to gpu(list): strip console flags from UAV/aliasing barriers and add DMA list vtable 2026-12-06 03:27:45 +00:00
Owner

Test needed — commit 285d599e; what to check:

  • The problem on main: UAV and aliasing barriers can forward console-only flag bits to the host D3D12 runtime, classic barrier method return width differs from 64-bit, and copy (DMA) lists (type 16) lack a dedicated vtable.
  • Ported from leonida/mandy (ac9ff29695, 33181d479e, 2f8d4d52b0):
    • Drops console-only flags from UAV/aliasing barriers before host submission (DARNER_BARRIER_CONSOLE_FLAGS=0 rollback switch).
    • Returns 64-bit from the classic barrier method.
    • Adds a dedicated vtable for copy (DMA) lists (type 16) in crates/darner-gpu/src/list.rs, with unit tests.

Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.

Reply testing to take this run; it's free again after 24 h with no results.

**Test needed** — commit `285d599e`; what to check: - The problem on main: UAV and aliasing barriers can forward console-only flag bits to the host D3D12 runtime, classic barrier method return width differs from 64-bit, and copy (DMA) lists (type 16) lack a dedicated vtable. - Ported from `leonida/mandy` (`ac9ff29695`, `33181d479e`, `2f8d4d52b0`): - Drops console-only flags from UAV/aliasing barriers before host submission (`DARNER_BARRIER_CONSOLE_FLAGS=0` rollback switch). - Returns 64-bit from the classic barrier method. - Adds a dedicated vtable for copy (DMA) lists (type 16) in `crates/darner-gpu/src/list.rs`, with unit tests. Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture. Reply `testing` to take this run; it's free again after 24 h with no results.
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 'pr/list-barrier-flags-dma:hingeowl-pr/list-barrier-flags-dma'
git switch 'hingeowl-pr/list-barrier-flags-dma'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'hingeowl-pr/list-barrier-flags-dma'
git switch 'hingeowl-pr/list-barrier-flags-dma'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'hingeowl-pr/list-barrier-flags-dma'
git switch 'hingeowl-pr/list-barrier-flags-dma'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'hingeowl-pr/list-barrier-flags-dma'
git switch 'Main'
git merge --squash 'hingeowl-pr/list-barrier-flags-dma'
git switch 'Main'
git merge --ff-only 'hingeowl-pr/list-barrier-flags-dma'
git switch 'Main'
git merge 'hingeowl-pr/list-barrier-flags-dma'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!517
No description provided.