GPU: an argument clamp Wine's compiler builds too #1279

Open
Mumogg wants to merge 2 commits from upstream-pr/1279 into main
Mumogg commented 2026-11-24 17:04:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Mumogg on 2026-11-24T17:04:54Z.


Problem

Under Wine, every indirect execution is dropped. The clamp of indirect arguments (crates/victory-gpu/src/indirect.rs) is HLSL compiled at run time with D3DCompile, and Wine's d3dcompiler_47 (vkd3d-shader's HLSL compiler) refuses it:

WARN victory_gpu::indirect: argument clamp: clamp:19:27: E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'.

indirect::bound then returns false for every record and execute_indirect reports not bounded (no clamp, or arguments not 4-byte aligned). In the world that is most of the frame: in one run here, per world frame on average, 1,449 mesh dispatches (kind 10), 776 dispatches (kind 2), 285 draws (kind 0) and 79 indexed draws (kind 1) were dropped for that reason alone. Filed first as #909 (PRs from outside contributors were closed at the time); anyone testing under Wine or Proton with the builtin compiler has it.

Wine's compiler has a second gap that the first one hides: it ignores the RootSignature attribute (W5302: Ignoring unknown attribute "RootSignature"), so the compiled blob has no RTS0 part and CreateRootSignature from the shader bytes would fail next.

Change

One file, the clamp only:

  • args and budget are RWStructuredBuffer<uint> instead of RWByteAddressBuffer, indexed in words. bound already refuses addresses and strides that are not multiples of 4, so the same words are read and written. A root descriptor can be a structured buffer.
  • The root signature (4 root constants at b0, root UAVs u0 and u1) is serialized with D3D12SerializeVersionedRootSignature beside the shader, as pipeline/host.rs does for its own, instead of being read from the shader blob.
  • The bounds, the budget and the InterlockedAdd on it are unchanged.

Testing

RTX 5070 Ti, driver 615.78.08, Nobara 44, Wine 11.21 Staging, vkd3d-proton and DXVK dxgi.dll from GE-Proton11-14, diag build cross-compiled on Linux, Series X 1.0.2.1, network off.

  • The new source compiles with D3DCompile (cs_5_1) from both Wine's builtin d3dcompiler_47 and Microsoft's (a small test program, run under Wine with and without the native DLL). The old source compiles only with Microsoft's.
  • In the title (tree: ffe310e + #454 #177 #259 #233 #646 #578 + the #783 fallback), one 450 s run each:
old clamp, Wine's compiler old clamp, Microsoft's d3dcompiler_47.dll beside the exe this change, Wine's compiler
argument clamp warning yes no no
not bounded drops every indirect record none none
host pipelines created in the run 618 1,063 782

With the clamp in place the next reasons for dropped indirect work are pipelines still being made, wave64 mesh programs refused by #578 on this 32-lane host, and shaders that do not translate.

  • cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings (target x86_64-pc-windows-msvc) is clean.

Verified by others in #909 (on this same commit, f2a71ac):

  • MichaelSmithAI, RTX 4090 under Wine: a numeric comparison of the clamp's output (draw, indexed draw, mesh, accepted and rejected compute records, padding at a 32-byte stride, and the budget consumed by earlier records) gave the expected words with both Wine's builtin compiler and Microsoft's, and the same buffer as a port of #190's precompiled DXIL.
  • andrewpozdnakov7-jpg, native Windows 10 (WARP): the pipeline is created.

Not tested: native Windows on a hardware GPU, AMD, and cargo test on my side (the existing argument_clamp_builds test covers this path on a machine with a GPU).

A workaround without this change: put Microsoft's d3dcompiler_47.dll next to victory.exe and add d3dcompiler_47=n to WINEDLLOVERRIDES.

AI-assisted (Claude Code): it found the cause from the logs, wrote the change and this text, and ran the tests on the machine above. No game data attached.

Closes #909.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587186076 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279). Originally posted by [Mumogg](https://github.com/Mumogg) on 2026-11-24T17:04:54Z. --- ### Problem Under Wine, every indirect execution is dropped. The clamp of indirect arguments (`crates/victory-gpu/src/indirect.rs`) is HLSL compiled at run time with `D3DCompile`, and Wine's `d3dcompiler_47` (vkd3d-shader's HLSL compiler) refuses it: ``` WARN victory_gpu::indirect: argument clamp: clamp:19:27: E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'. ``` `indirect::bound` then returns false for every record and `execute_indirect` reports `not bounded (no clamp, or arguments not 4-byte aligned)`. In the world that is most of the frame: in one run here, per world frame on average, 1,449 mesh dispatches (kind 10), 776 dispatches (kind 2), 285 draws (kind 0) and 79 indexed draws (kind 1) were dropped for that reason alone. Filed first as #909 (PRs from outside contributors were closed at the time); anyone testing under Wine or Proton with the builtin compiler has it. Wine's compiler has a second gap that the first one hides: it ignores the `RootSignature` attribute (`W5302: Ignoring unknown attribute "RootSignature"`), so the compiled blob has no `RTS0` part and `CreateRootSignature` from the shader bytes would fail next. ### Change One file, the clamp only: - `args` and `budget` are `RWStructuredBuffer<uint>` instead of `RWByteAddressBuffer`, indexed in words. `bound` already refuses addresses and strides that are not multiples of 4, so the same words are read and written. A root descriptor can be a structured buffer. - The root signature (4 root constants at b0, root UAVs u0 and u1) is serialized with `D3D12SerializeVersionedRootSignature` beside the shader, as `pipeline/host.rs` does for its own, instead of being read from the shader blob. - The bounds, the budget and the `InterlockedAdd` on it are unchanged. ### Testing RTX 5070 Ti, driver 615.78.08, Nobara 44, Wine 11.21 Staging, vkd3d-proton and DXVK `dxgi.dll` from GE-Proton11-14, diag build cross-compiled on Linux, Series X 1.0.2.1, network off. - The new source compiles with `D3DCompile` (`cs_5_1`) from both Wine's builtin `d3dcompiler_47` and Microsoft's (a small test program, run under Wine with and without the native DLL). The old source compiles only with Microsoft's. - In the title (tree: `ffe310e` + #454 #177 #259 #233 #646 #578 + the #783 fallback), one 450 s run each: | | old clamp, Wine's compiler | old clamp, Microsoft's `d3dcompiler_47.dll` beside the exe | this change, Wine's compiler | |---|---|---|---| | `argument clamp` warning | yes | no | no | | `not bounded` drops | every indirect record | none | none | | host pipelines created in the run | 618 | 1,063 | 782 | With the clamp in place the next reasons for dropped indirect work are pipelines still being made, wave64 mesh programs refused by #578 on this 32-lane host, and shaders that do not translate. - `cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings` (target `x86_64-pc-windows-msvc`) is clean. **Verified by others in #909** (on this same commit, `f2a71ac`): - MichaelSmithAI, RTX 4090 under Wine: a numeric comparison of the clamp's output (draw, indexed draw, mesh, accepted and rejected compute records, padding at a 32-byte stride, and the budget consumed by earlier records) gave the expected words with both Wine's builtin compiler and Microsoft's, and the same buffer as a port of #190's precompiled DXIL. - andrewpozdnakov7-jpg, native Windows 10 (WARP): the pipeline is created. **Not tested:** native Windows on a hardware GPU, AMD, and `cargo test` on my side (the existing `argument_clamp_builds` test covers this path on a machine with a GPU). A workaround without this change: put Microsoft's `d3dcompiler_47.dll` next to `victory.exe` and add `d3dcompiler_47=n` to `WINEDLLOVERRIDES`. AI-assisted (Claude Code): it found the cause from the logs, wrote the change and this text, and ran the tests on the machine above. No game data attached. Closes #909. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Mumogg commented 2026-11-24 18:05:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Mumogg on 2026-11-24T17:10:23Z.


Added MichaelSmithAI's readback test from #909 to this branch (4dd4cfc, test-only, 36 lines in indirect.rs's test module): it runs the clamp over draw, indexed draw, mesh and compute records sharing one budget and compares every word, padding included.

Run here on 4dd4cfc, RTX 5070 Ti (driver 615.78.08), Wine 11.22 Staging, vkd3d-proton from GE-Proton11-14, Wine's builtin d3dcompiler_47: argument_clamp_builds and clamp_preserves_record_offsets_and_shared_budget both pass. cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings is clean.

One thing for anyone repeating it under Wine: run the test binary with its own wineserver. Started against a wineserver that lives in another user namespace, WriteProcessMemory on the current process returns access denied, the copy back is silently skipped and the comparison fails although the GPU wrote the right words.

(AI-assisted, Claude Code.)

Edit: the Wine version was 11.22 Staging, not 11.21 (the system had updated before these runs).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7138794781 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7138794781). Originally posted by [Mumogg](https://github.com/Mumogg) on 2026-11-24T17:10:23Z. --- Added MichaelSmithAI's readback test from #909 to this branch (`4dd4cfc`, test-only, 36 lines in `indirect.rs`'s test module): it runs the clamp over draw, indexed draw, mesh and compute records sharing one budget and compares every word, padding included. Run here on `4dd4cfc`, RTX 5070 Ti (driver 615.78.08), Wine 11.22 Staging, vkd3d-proton from GE-Proton11-14, Wine's builtin `d3dcompiler_47`: `argument_clamp_builds` and `clamp_preserves_record_offsets_and_shared_budget` both pass. `cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings` is clean. One thing for anyone repeating it under Wine: run the test binary with its own wineserver. Started against a wineserver that lives in another user namespace, `WriteProcessMemory` on the current process returns access denied, the copy back is silently skipped and the comparison fails although the GPU wrote the right words. (AI-assisted, Claude Code.) *Edit: the Wine version was 11.22 Staging, not 11.21 (the system had updated before these runs).*
muhammed-aksoy commented 2026-11-24 18:06:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by muhammed-aksoy on 2026-11-24T17:55:07Z.


I independently tested 4dd4cfc against main ffe310e on Windows. The GPU diagnostics suite passed 54 tests with one ignored. In a local batch with #1283, #1307, #1309, and #1311, the all-features workspace suite passed 360 tests with six ignored and zero failures. WARP was selected, and Clippy and asset policy passed at local batch commit 1409f9c. These runs used synthetic fixtures. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7139892466 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7139892466). Originally posted by [muhammed-aksoy](https://github.com/muhammed-aksoy) on 2026-11-24T17:55:07Z. --- I independently tested 4dd4cfc against main ffe310e on Windows. The GPU diagnostics suite passed 54 tests with one ignored. In a local batch with #1283, #1307, #1309, and #1311, the all-features workspace suite passed 360 tests with six ignored and zero failures. WARP was selected, and Clippy and asset policy passed at local batch commit 1409f9c. These runs used synthetic fixtures. AI-assisted.
wwwwwwww3333333 commented 2026-11-24 20:03:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wwwwwwww3333333 on 2026-11-24T19:16:11Z.


Native Windows run on AMD: RX 6750 XT (RDNA2, gfx1031), AMD driver 32.0.21045.29003, i5-13400F, Windows 11, Rust 1.98.1 MSVC. Head 4dd4cfc on main ffe310e (clean merge).

cargo test -p victory-gpu --lib -- --test-threads=1: 51 passed, 0 failed, 1 ignored (main alone: 50). indirect::tests::clamp_preserves_record_offsets_and_shared_budget passes on this machine, and so does the existing argument_clamp_builds path. That adds an AMD hardware GPU to the RTX 5070 Ti and WARP results already here.

Synthetic tests only, no game files. AI-assisted (Claude picked the PRs and wrote the batch script; I ran it on my machine).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7141849894 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7141849894). Originally posted by [wwwwwwww3333333](https://github.com/wwwwwwww3333333) on 2026-11-24T19:16:11Z. --- Native Windows run on AMD: RX 6750 XT (RDNA2, gfx1031), AMD driver 32.0.21045.29003, i5-13400F, Windows 11, Rust 1.98.1 MSVC. Head 4dd4cfc on main ffe310e (clean merge). `cargo test -p victory-gpu --lib -- --test-threads=1`: **51 passed, 0 failed**, 1 ignored (main alone: 50). `indirect::tests::clamp_preserves_record_offsets_and_shared_budget` passes on this machine, and so does the existing `argument_clamp_builds` path. That adds an AMD hardware GPU to the RTX 5070 Ti and WARP results already here. Synthetic tests only, no game files. AI-assisted (Claude picked the PRs and wrote the batch script; I ran it on my machine).
Marvisak commented 2026-11-25 02:05:54 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-gpu/src/indirect.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149455705 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7149455705). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:20:59Z. --- <!-- victory-triage v1 head=4dd4cfc8c006e9ce66dc469e5b117e6b508b40f9 verdict=needs-rebase at=2026-11-25T01:20:57Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-gpu/src/indirect.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
ntgata1-dotcom commented 2026-11-25 14:07:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ntgata1-dotcom on 2026-11-25T13:39:56Z.


Rebased onto main (940d32f); the clamp now passes all its tests under Wine's own compiler

The branch needed a rebase across 4ab20fc ("GPU: the indirect budget is charged in record order and no longer wraps"), which rewrote the clamp's budget on main. In case it saves you time, I did it and kept both commits with their authors (yours and swarm's): https://github.com/ntgata1-dotcom/VIctory/tree/rebase-1279 (9113f41, 93dfd4e).

The conflict resolution:

  • It keeps main's algorithm: one group walks the records in tiles of 64 and charges them in order, with Dispatch(records.min(1), 1, 1) as on main. It's written with this PR's RWStructuredBuffer<uint> in words: budget[0], args[at] = 0, at = record * (stride / 4).
  • The clamp body is main's with word indexing. There's no Load/Store and no [RootSignature(RS)] left, because the root signature is made beside the shader as in this PR.
  • The readback test needed gpu_writes's new marked argument. I passed false, as main's own callers do for writes that don't mark pages.

Tested on Arch Linux, RX 9070 XT (RADV), system Wine 11.22, with vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi from GE-Proton11-14. cargo xwin test --locked --no-fail-fast -p victory-gpu, runner wine:

victory-gpu passed failed indirect::tests
main 940d32f, Wine's d3dcompiler_47 130 13 5 of 5 fail (no clamp)
rebased, Wine's d3dcompiler_47 136 8 6 of 6 pass
rebased, Microsoft's d3dcompiler_47 (indirect:: only) 6 0 6 of 6 pass

No other test changes against main. cargo xwin clippy -p victory-gpu --all-targets --locked -- -D warnings, default and --all-features, is clean. Not run: Windows itself.

If you'd rather rebase it yourself, ignore this. To take it: git fetch https://github.com/ntgata1-dotcom/VIctory rebase-1279 && git reset --hard FETCH_HEAD && git push --force-with-lease.

AI-assisted (Claude Code); numbers from my own runs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164109449 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7164109449). Originally posted by [ntgata1-dotcom](https://github.com/ntgata1-dotcom) on 2026-11-25T13:39:56Z. --- **Rebased onto `main` (`940d32f`); the clamp now passes all its tests under Wine's own compiler** The branch needed a rebase across `4ab20fc` ("GPU: the indirect budget is charged in record order and no longer wraps"), which rewrote the clamp's budget on `main`. In case it saves you time, I did it and kept both commits with their authors (yours and swarm's): https://github.com/ntgata1-dotcom/VIctory/tree/rebase-1279 (`9113f41`, `93dfd4e`). The conflict resolution: - It keeps `main`'s algorithm: one group walks the records in tiles of 64 and charges them in order, with `Dispatch(records.min(1), 1, 1)` as on `main`. It's written with this PR's `RWStructuredBuffer<uint>` in words: `budget[0]`, `args[at] = 0`, `at = record * (stride / 4)`. - The clamp body is `main`'s with word indexing. There's no `Load`/`Store` and no `[RootSignature(RS)]` left, because the root signature is made beside the shader as in this PR. - The readback test needed `gpu_writes`'s new `marked` argument. I passed `false`, as `main`'s own callers do for writes that don't mark pages. Tested on Arch Linux, RX 9070 XT (RADV), system Wine 11.22, with vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi` from GE-Proton11-14. `cargo xwin test --locked --no-fail-fast -p victory-gpu`, runner `wine`: | `victory-gpu` | passed | failed | `indirect::tests` | |---|---|---|---| | `main` `940d32f`, Wine's `d3dcompiler_47` | 130 | 13 | 5 of 5 fail (no clamp) | | rebased, Wine's `d3dcompiler_47` | 136 | 8 | 6 of 6 pass | | rebased, Microsoft's `d3dcompiler_47` (`indirect::` only) | 6 | 0 | 6 of 6 pass | No other test changes against `main`. `cargo xwin clippy -p victory-gpu --all-targets --locked -- -D warnings`, default and `--all-features`, is clean. Not run: Windows itself. If you'd rather rebase it yourself, ignore this. To take it: `git fetch https://github.com/ntgata1-dotcom/VIctory rebase-1279 && git reset --hard FETCH_HEAD && git push --force-with-lease`. AI-assisted (Claude Code); numbers from my own runs.
ntgata1-dotcom commented 2026-11-25 17:05:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ntgata1-dotcom on 2026-11-25T16:44:37Z.


The rebased branch makes the world draw under stock Wine (RX 9070 XT, RADV)

A world run of the rebased branch (940d32f + 9113f41 + 93dfd4e, nothing else), against main 940d32f on the same machine. Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1, system Wine 11.22 with its built-in d3dcompiler_47, and vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi from GE-Proton11-14. Release builds, the first mission's opening cutscene. The numbers are over the frames after the mission's data loaded, leaving out the loading screen.

main this branch
On screen black, apart from the credits text the scene: buildings, streets, lights, characters and a car. Unlit, with the broken character geometry the README describes on Windows
Draws per frame 541 on average, up to 1,755 2,954 on average, up to 8,548
Indirect executions dropped per frame 3,400 on average, up to 9,556 (no argument clamp) 9 on average, up to 26
argument clamp warning yes (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer') none
Time per frame 2.6 s on average 3.1 s on average (it draws far more)

At least 5 minutes in the world with no crash, no exception and no amdgpu message in the kernel log.

The run then stopped about 7½ minutes into the world, on the title's own 0x80000003, 7 times at once, at the same place as a build with five more PRs on top. That's the stop #698 reports on Windows, where the clamp already builds, so it doesn't look like it comes from this PR.

So under Wine's own compiler, this PR is what turns the black world into a drawn one here.

AI-assisted (Claude Code); numbers from my own runs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7168463210 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7168463210). Originally posted by [ntgata1-dotcom](https://github.com/ntgata1-dotcom) on 2026-11-25T16:44:37Z. --- **The rebased branch makes the world draw under stock Wine (RX 9070 XT, RADV)** A world run of the rebased branch (`940d32f` + `9113f41` + `93dfd4e`, nothing else), against `main` `940d32f` on the same machine. Setup: Arch Linux, RX 9070 XT (RDNA4), RADV / Mesa 26.3.1, system Wine 11.22 with its built-in `d3dcompiler_47`, and vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi` from GE-Proton11-14. Release builds, the first mission's opening cutscene. The numbers are over the frames after the mission's data loaded, leaving out the loading screen. | | `main` | this branch | |---|---|---| | On screen | black, apart from the credits text | the scene: buildings, streets, lights, characters and a car. Unlit, with the broken character geometry the README describes on Windows | | Draws per frame | 541 on average, up to 1,755 | 2,954 on average, up to 8,548 | | Indirect executions dropped per frame | 3,400 on average, up to 9,556 (`no argument clamp`) | 9 on average, up to 26 | | `argument clamp` warning | yes (`E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'`) | none | | Time per frame | 2.6 s on average | 3.1 s on average (it draws far more) | At least 5 minutes in the world with no crash, no exception and no amdgpu message in the kernel log. The run then stopped about 7½ minutes into the world, on the title's own `0x80000003`, 7 times at once, at the same place as a build with five more PRs on top. That's the stop #698 reports on Windows, where the clamp already builds, so it doesn't look like it comes from this PR. So under Wine's own compiler, this PR is what turns the black world into a drawn one here. AI-assisted (Claude Code); numbers from my own runs.
arogan178 commented 2026-11-26 00:03:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arogan178 on 2026-11-25T23:52:04Z.


Note

🤖 Claude Opus 5.5 responding on behalf of @arogan178

Carried onto current main in #2913, as the triage on #2744 invited. main now charges records in tile order and clamps into a separate destination buffer, so the shader was ported, not cherry-picked. Your root-signature code is kept, and you're credited as co-author. With Wine's built-in compiler under Proton, the clamp tests go from 0 of 6 to 7 of 7.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7178149115 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7178149115). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-25T23:52:04Z. --- > [!NOTE] > 🤖 **Claude Opus 5.5 responding on behalf of @arogan178** Carried onto current `main` in #2913, as the triage on #2744 invited. `main` now charges records in tile order and clamps into a separate destination buffer, so the shader was ported, not cherry-picked. Your root-signature code is kept, and you're credited as co-author. With Wine's built-in compiler under Proton, the clamp tests go from 0 of 6 to 7 of 7.
neonbyte1 commented 2026-11-26 02:07:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T01:48:56Z.


main rewrote the argument clamp since this PR, so I ported your approach onto it in #2969: structured buffers indexed in words, and the root signature built in Rust beside the shader. I extended it to the depth twin's 16-bit conversion, which fails under Wine the same way. Your PR is credited there. Tested in game on an RTX 5090 under Wine: the not bounded indirect drops (about 5,300 a frame) are gone. If you'd rather update this PR instead, I'm happy to close mine.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7180161895 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1279#issuecomment-7180161895). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-26T01:48:56Z. --- `main` rewrote the argument clamp since this PR, so I ported your approach onto it in #2969: structured buffers indexed in words, and the root signature built in Rust beside the shader. I extended it to the depth twin's 16-bit conversion, which fails under Wine the same way. Your PR is credited there. Tested in game on an RTX 5090 under Wine: the `not bounded` indirect drops (about 5,300 a frame) are gone. If you'd rather update this PR instead, I'm happy to close mine. _AI-assisted (Claude)._
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1279:upstream-pr/1279'
git switch 'upstream-pr/1279'

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 'upstream-pr/1279'
git switch 'upstream-pr/1279'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1279'
git switch 'upstream-pr/1279'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1279'
git switch 'main'
git merge --squash 'upstream-pr/1279'
git switch 'main'
git merge --ff-only 'upstream-pr/1279'
git switch 'main'
git merge 'upstream-pr/1279'
git push origin 'main'
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!1279
No description provided.