GPU: mesh shaders emulated as compute + unpack vertex on SM 6.6 cards without a mesh tier #1647

Open
yoraudev wants to merge 5 commits from upstream-pr/1648 into main
yoraudev commented 2026-11-24 20:27:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by yoraudev on 2026-11-24T20:27:19Z.


Summary

Cards that support Shader Model 6.6 but report D3D12_MESH_SHADER_TIER_NOT_SUPPORTED (Polaris/Vega/RDNA1, Pascal, Xe-LP, WARP, …) can now run mesh stages. Nothing is vendor-specific: the path is picked from D3D12_FEATURE_SHADER_MODEL and D3D12_OPTIONS7::MeshShaderTier, and can be forced with VICTORY_MESH_EMULATION=1 (or disabled with =0).

A mesh stage is lowered to a cs_6_6 that writes packed vertices and primitives into a shared UAV, followed by a generated vs_6_6 that reads them back by SV_VertexID and drawn as a plain triangle list.

victory-shader

  • MeshMode::Emulate: HwStage::Ms lowers to [numthreads(n,1,1)] cs_6_6 with LDS instead of ms_6_6. Emulation resources live in space 2 (MESH_EMU_SPACE): u0 intermediate RWByteAddressBuffer, b0 base_group / INDIRECT_SLOT_MAP_FLAG, t0 slot map / unpack input.
  • Primitive index words start bit-31 flagged (culled); emit_indices_emu writes packed indices and the cull flag; vertex (OSG1) and per-primitive (PSG1) outputs are stored as contiguous 4-dword groups.
  • Input::MeshGroup reads base_group + local_group, or slot_map[local_group] for indirect dispatches.
  • unpack_vertex_shader builds the vs_6_6 container: culled primitives get a quiet-NaN SV_Position, and the PS input signature / PSV0 linkage (incl. nointerpolation per-primitive data and depth-only passes) is preserved.

victory-gpu

  • MeshSupport::{Native, Emulate, Unsupported} detection in host.rs.
  • New mesh_emu.rs: shared VRAM intermediate buffer (VICTORY_MESH_BUFFER_MB, default 128 MiB with a 16 MiB fallback), slot map, indirect args, and a cs_5_1 prep pass that sums/clamps group counts across ExecuteIndirect(MESH) records and builds the slot map.
  • EmulatedMeshPipeline: cached CS + cached VS/PS graphics PSO pair.
  • draw.rs: dispatch_mesh_emulated chunks direct DispatchMesh by group_cap (CS → UAV→SRV barrier → DrawInstanced → SRV→UAV); execute_indirect_mesh_emulated does clamp → prep → indirect dispatch → indirect draw. Topology and root/pipeline cache state are restored afterwards.
  • Shader cache format bumped to VSH2 with a separate shader.dxil.mesh-emu converter key.

CLI / docs

  • apps/victory translate picks MeshMode::Emulate when forced or when the device lacks mesh shaders, validates both the CS and the unpack VS, and test-builds the pipelines.
  • README and docs/architecture.md document the path and env vars.

Testing

  • cargo clippy --workspace --all-targets --locked -- -D warnings ✅
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings ✅
  • cargo test --workspace --locked ✅
  • cargo test -p victory-shader mesh_emu: 5 passed — triangle draws on a hardware GPU and WARP, bit-31 and unexported-primitive culling, base_group / slot-map indexing, PSG1 per-primitive nointerpolation, LDS + s_barrier + ds_swizzle_b32.
  • cargo test -p victory-gpu mesh_emu: indirect prep shader builds and runs on GPU.
  • cargo xtask policy ✅

Note: dxil.dll wasn't available locally, so static validation was skipped; PSO creation and execution were verified on real hardware and WARP. The full in-game draw.rs flow wasn't exercised since game files aren't in the repo.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5479778281 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648). Originally posted by [yoraudev](https://github.com/yoraudev) on 2026-11-24T20:27:19Z. --- ## Summary Cards that support Shader Model 6.6 but report `D3D12_MESH_SHADER_TIER_NOT_SUPPORTED` (Polaris/Vega/RDNA1, Pascal, Xe-LP, WARP, …) can now run mesh stages. Nothing is vendor-specific: the path is picked from `D3D12_FEATURE_SHADER_MODEL` and `D3D12_OPTIONS7::MeshShaderTier`, and can be forced with `VICTORY_MESH_EMULATION=1` (or disabled with `=0`). A mesh stage is lowered to a `cs_6_6` that writes packed vertices and primitives into a shared UAV, followed by a generated `vs_6_6` that reads them back by `SV_VertexID` and drawn as a plain triangle list. ## victory-shader - `MeshMode::Emulate`: `HwStage::Ms` lowers to `[numthreads(n,1,1)]` `cs_6_6` with LDS instead of `ms_6_6`. Emulation resources live in `space 2` (`MESH_EMU_SPACE`): `u0` intermediate `RWByteAddressBuffer`, `b0` `base_group` / `INDIRECT_SLOT_MAP_FLAG`, `t0` slot map / unpack input. - Primitive index words start bit-31 flagged (culled); `emit_indices_emu` writes packed indices and the cull flag; vertex (`OSG1`) and per-primitive (`PSG1`) outputs are stored as contiguous 4-dword groups. - `Input::MeshGroup` reads `base_group + local_group`, or `slot_map[local_group]` for indirect dispatches. - `unpack_vertex_shader` builds the `vs_6_6` container: culled primitives get a quiet-NaN `SV_Position`, and the PS input signature / `PSV0` linkage (incl. `nointerpolation` per-primitive data and depth-only passes) is preserved. ## victory-gpu - `MeshSupport::{Native, Emulate, Unsupported}` detection in `host.rs`. - New `mesh_emu.rs`: shared VRAM intermediate buffer (`VICTORY_MESH_BUFFER_MB`, default 128 MiB with a 16 MiB fallback), slot map, indirect args, and a `cs_5_1` prep pass that sums/clamps group counts across `ExecuteIndirect(MESH)` records and builds the slot map. - `EmulatedMeshPipeline`: cached CS + cached VS/PS graphics PSO pair. - `draw.rs`: `dispatch_mesh_emulated` chunks direct `DispatchMesh` by `group_cap` (CS → UAV→SRV barrier → `DrawInstanced` → SRV→UAV); `execute_indirect_mesh_emulated` does clamp → prep → indirect dispatch → indirect draw. Topology and root/pipeline cache state are restored afterwards. - Shader cache format bumped to `VSH2` with a separate `shader.dxil.mesh-emu` converter key. ## CLI / docs - `apps/victory translate` picks `MeshMode::Emulate` when forced or when the device lacks mesh shaders, validates both the CS and the unpack VS, and test-builds the pipelines. - README and `docs/architecture.md` document the path and env vars. ## Testing - `cargo clippy --workspace --all-targets --locked -- -D warnings` ✅ - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` ✅ - `cargo test --workspace --locked` ✅ - `cargo test -p victory-shader mesh_emu`: 5 passed — triangle draws on a hardware GPU and WARP, bit-31 and unexported-primitive culling, `base_group` / slot-map indexing, `PSG1` per-primitive `nointerpolation`, LDS + `s_barrier` + `ds_swizzle_b32`. - `cargo test -p victory-gpu mesh_emu`: indirect prep shader builds and runs on GPU. - `cargo xtask policy` ✅ Note: `dxil.dll` wasn't available locally, so static validation was skipped; PSO creation and execution were verified on real hardware and WARP. The full in-game `draw.rs` flow wasn't exercised since game files aren't in the repo.
EduBertozzi commented 2026-11-24 21:03:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EduBertozzi on 2026-11-24T20:43:31Z.


Ran this on the hardware it targets: GTX 1060 6 GB (Pascal, SM 6.6 through the Agility runtime, no mesh shader tier), Windows 10 19045. I merged 9bfe067 onto main ffe310e (with #486 so the tests get SM 6.6 on Windows 10).

  • victory-shader: 125 passed / 0 failed (main 120).
  • victory-gpu: 51 passed / 0 failed.
  • The mesh_emu tests pass on hardware with no mesh shaders, including emulated_mesh_draws_triangle_and_culls_bit31_and_unexported, …supports_lds_barrier_and_quad_swizzle and prep_shader_builds_and_runs_indirect.

For reviewers: #961 (towards #3) covers the same ground, a mesh program lowered to cs_6_6 plus a generated VS. It has been run against the title on GPUs without mesh shaders, and that turned up problems any such path meets. Here's how they line up with this PR as I read it:

found in-game on #961 here
Records above the last lane uninitialized when max_primitives > threads (stale triangles from reused scratch) handled: index words start bit-31 culled
A mesh stage visible to ALL overlapping the pixel stage's b0/s<n>/root views, so D3D12 refuses the root signature (165 refusals on an RX 470) avoided: separate compute root signature
Scratch sized for the worst case per draw ran an 8 GB card out of memory one shared buffer, 128 MiB default (VICTORY_MESH_BUFFER_MB)
With #189: cache key and lane numbering must follow the Wave64 mode (@L1DRE, @fuzeofficlal on #961) worth checking once #189 lands

Both approaches work. Since they would conflict, it may help to settle on one and fold the other's useful parts into it. I'm glad to help whichever way the maintainers prefer. Disclosure: I wrote #961.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7143972159 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648#issuecomment-7143972159). Originally posted by [EduBertozzi](https://github.com/EduBertozzi) on 2026-11-24T20:43:31Z. --- Ran this on the hardware it targets: **GTX 1060 6 GB** (Pascal, SM 6.6 through the Agility runtime, no mesh shader tier), Windows 10 19045. I merged `9bfe067` onto `main` `ffe310e` (with #486 so the tests get SM 6.6 on Windows 10). - `victory-shader`: **125 passed / 0 failed** (`main` 120). - `victory-gpu`: **51 passed / 0 failed**. - The `mesh_emu` tests pass on hardware with no mesh shaders, including `emulated_mesh_draws_triangle_and_culls_bit31_and_unexported`, `…supports_lds_barrier_and_quad_swizzle` and `prep_shader_builds_and_runs_indirect`. For reviewers: #961 (towards #3) covers the same ground, a mesh program lowered to `cs_6_6` plus a generated VS. It has been run against the title on GPUs without mesh shaders, and that turned up problems any such path meets. Here's how they line up with this PR as I read it: | found in-game on #961 | here | |---|---| | Records above the last lane uninitialized when `max_primitives` > threads (stale triangles from reused scratch) | handled: index words start bit-31 culled | | A mesh stage visible to ALL overlapping the pixel stage's `b0`/`s<n>`/root views, so D3D12 refuses the root signature (165 refusals on an RX 470) | avoided: separate compute root signature | | Scratch sized for the worst case per draw ran an 8 GB card out of memory | one shared buffer, 128 MiB default (`VICTORY_MESH_BUFFER_MB`) | | With #189: cache key and lane numbering must follow the Wave64 mode (@L1DRE, @fuzeofficlal on #961) | worth checking once #189 lands | Both approaches work. Since they would conflict, it may help to settle on one and fold the other's useful parts into it. I'm glad to help whichever way the maintainers prefer. Disclosure: I wrote #961. AI-assisted (Claude Code).
yoraudev commented 2026-11-24 21:03:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by yoraudev on 2026-11-24T20:51:55Z.


Thanks for running this on the Pascal card — that's exactly the class of machine it targets, and good to see the suite green there.

Confirming the table from this side:

  • Uninitialized records past the last lane: the emulated CS prologue writes bit 31 (culled) into every primitive index word of the group slice before any lane exports, so a group that lands on scratch an earlier chunk of the shared buffer used cannot leak its triangles — also when max_primitives > threads. Vertex slots past the export are zeroed rather than left stale.
  • Root-signature overlap: the emulated CS is a separate compute root signature (the mesh stage's bindings plus the emulation's u0/b0/t0 in a dedicated register space), and the graphics half carries the pixel stage plus a vertex-visible t0 for the unpack VS. The title's mesh bindings never share a signature with the pixel stage.
  • Scratch memory: one committed buffer with 128/64/32/16 MiB fallbacks (VICTORY_MESH_BUFFER_MB), sliced per group by the program's declared max_vertices/max_primitives, and dispatches are chunked by group_cap (min(fits, 65535) groups) so one draw never depends on a worst-case-size allocation.

On the #189 row — I checked, and there are two concrete interaction points, both real:

  1. Cache key. The mesh-emu translation is a separate converter (shader.dxil.mesh-emu vs shader.dxil) keyed by build + container; that is what keeps an emulated run from serving native entries today. #189 adds the wave64 mode as a runtime choice, and the build fingerprint only covers rebuilds — so once it lands, the mode has to go into the converter id/input the same way, or switching VICTORY_WAVE64_EMULATE at run time will serve a translation emitted for the other mode.
  2. Lane numbering. lower.rs still sets WaveSize(64) from the console program's wave64 flag when lane numbering or single-wave LDS is involved (console_lanes || one_wave && lds). On a 32-lane host that compute PSO is refused at CreateComputePipelineState, so the emulated mesh pipeline drops with a warning instead of running — the same rejection #189 removes for plain compute. When the two are combined, emit_with should take both modes and the mesh-emu path should lower through #189's wave64 handling. That is the "lane numbering follows the mode" case in the table, and it is where the two PRs genuinely need each other on 32-lane cards.

On settling on one approach — that's the maintainers' call, and happy to help either way. From this PR, the parts that would survive a fold-in regardless of direction: the GPU side (group-cap chunking, the ExecuteIndirect prep pass and slot map, the shared output buffer and its UAV/SRV state machine), and the VSH2 cache split. If #189 lands first I'm glad to rebase on it and wire the two modes together.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144159535 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648#issuecomment-7144159535). Originally posted by [yoraudev](https://github.com/yoraudev) on 2026-11-24T20:51:55Z. --- Thanks for running this on the Pascal card — that's exactly the class of machine it targets, and good to see the suite green there. Confirming the table from this side: - **Uninitialized records past the last lane:** the emulated CS prologue writes `bit 31` (culled) into *every* primitive index word of the group slice before any lane exports, so a group that lands on scratch an earlier chunk of the shared buffer used cannot leak its triangles — also when `max_primitives > threads`. Vertex slots past the export are zeroed rather than left stale. - **Root-signature overlap:** the emulated CS is a separate compute root signature (the mesh stage's bindings plus the emulation's `u0`/`b0`/`t0` in a dedicated register space), and the graphics half carries the pixel stage plus a vertex-visible `t0` for the unpack VS. The title's mesh bindings never share a signature with the pixel stage. - **Scratch memory:** one committed buffer with 128/64/32/16 MiB fallbacks (`VICTORY_MESH_BUFFER_MB`), sliced per group by the program's declared `max_vertices`/`max_primitives`, and dispatches are chunked by `group_cap` (min(fits, 65535) groups) so one draw never depends on a worst-case-size allocation. On the #189 row — I checked, and there are two concrete interaction points, both real: 1. **Cache key.** The mesh-emu translation is a separate converter (`shader.dxil.mesh-emu` vs `shader.dxil`) keyed by build + container; that is what keeps an emulated run from serving native entries today. #189 adds the wave64 mode as a *runtime* choice, and the build fingerprint only covers rebuilds — so once it lands, the mode has to go into the converter id/input the same way, or switching `VICTORY_WAVE64_EMULATE` at run time will serve a translation emitted for the other mode. 2. **Lane numbering.** `lower.rs` still sets `WaveSize(64)` from the console program's wave64 flag when lane numbering or single-wave LDS is involved (`console_lanes || one_wave && lds`). On a 32-lane host that compute PSO is refused at `CreateComputePipelineState`, so the emulated mesh pipeline drops with a warning instead of running — the same rejection #189 removes for plain compute. When the two are combined, `emit_with` should take both modes and the mesh-emu path should lower through #189's wave64 handling. That is the "lane numbering follows the mode" case in the table, and it is where the two PRs genuinely need each other on 32-lane cards. On settling on one approach — that's the maintainers' call, and happy to help either way. From this PR, the parts that would survive a fold-in regardless of direction: the GPU side (group-cap chunking, the ExecuteIndirect prep pass and slot map, the shared output buffer and its UAV/SRV state machine), and the VSH2 cache split. If #189 lands first I'm glad to rebase on it and wire the two modes together.
yoraudev commented 2026-11-24 22:02:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by yoraudev on 2026-11-24T21:39:20Z.


Root cause found for the world-entry crash on a mesh-less card ("a host command list did not close (Unspecified error (0x80004005)): a command recorded into it was invalid", frame 29347 on an RX 580, this branch's first emulated mesh frame), and fixed in c6ec4ad.

Diagnosis. That message was read as "an invalid command was recorded", but D3D12's Close returns E_FAIL for an already-closed list as well (the docs list both causes; our failure text only named one). The failing frame closes a sealed command list a second time — the title's re-close after its frame accounting sees the first-use dispatch drop, as far as I can tell — and the second Close ended the run.

How it was pinned down. The exact shader pair from the log (mesh d4111a6e6ea49d91 + pixel c0a7fe77b1862e10, MSNC_VS_BakeDecorations / PS_BakeDecorations) was pulled out of the title's shaders.rpf (new extract_containers test, local-only), the cached translation decoded to check its real bindings (new dump_cached_mesh_entries test), and the full emulated pipeline + dispatch replayed on the same GPU (new emulated_mesh_dispatch_closes test): the direct and indirect emulated dispatches record and close cleanly, retail and with the debug layer — closing the list a second time reproduces the run's error verbatim.

Fix. HostList now tracks closed-ness: a second close warns once (a host command list closed twice; the second close does nothing, counted for the frame line) and is a no-op, and reset reopens. The console API tolerates re-closing a sealed list; the host now does too. Genuinely invalid recorded commands still fail as before.

The three new tests are #[ignore]d and need local title files, so CI stays hermetic and the asset policy is untouched (cargo xtask policy: 156 files ok). cargo test -p victory-gpu -p victory and clippy pass. A re-run of the world entry on the RX 580 should now get past this point; the new warn line will tell us if the title re-closes per frame.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7145215863 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648#issuecomment-7145215863). Originally posted by [yoraudev](https://github.com/yoraudev) on 2026-11-24T21:39:20Z. --- **Root cause found for the world-entry crash on a mesh-less card** ("a host command list did not close (Unspecified error (0x80004005)): a command recorded into it was invalid", frame 29347 on an RX 580, this branch's first emulated mesh frame), and fixed in c6ec4ad. **Diagnosis.** That message was read as "an invalid command was recorded", but D3D12's `Close` returns E_FAIL for **an already-closed list** as well (the docs list both causes; our failure text only named one). The failing frame closes a sealed command list a second time — the title's re-close after its frame accounting sees the first-use dispatch drop, as far as I can tell — and the second `Close` ended the run. **How it was pinned down.** The exact shader pair from the log (`mesh d4111a6e6ea49d91` + `pixel c0a7fe77b1862e10`, `MSNC_VS_BakeDecorations` / `PS_BakeDecorations`) was pulled out of the title's `shaders.rpf` (new `extract_containers` test, local-only), the cached translation decoded to check its real bindings (new `dump_cached_mesh_entries` test), and the full emulated pipeline + dispatch replayed on the same GPU (new `emulated_mesh_dispatch_closes` test): the direct and indirect emulated dispatches record and close cleanly, retail and with the debug layer — closing the list a second time reproduces the run's error verbatim. **Fix.** `HostList` now tracks closed-ness: a second `close` warns once (`a host command list closed twice; the second close does nothing`, counted for the frame line) and is a no-op, and `reset` reopens. The console API tolerates re-closing a sealed list; the host now does too. Genuinely invalid recorded commands still fail as before. The three new tests are `#[ignore]`d and need local title files, so CI stays hermetic and the asset policy is untouched (`cargo xtask policy`: 156 files ok). `cargo test -p victory-gpu -p victory` and clippy pass. A re-run of the world entry on the RX 580 should now get past this point; the new warn line will tell us if the title re-closes per frame.
Marvisak commented 2026-11-25 04:06:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:32:31Z.


Automated triage for the maintainers.

This pull request no longer merges cleanly into main (conflicts in crates/victory-gpu/src/draw.rs, crates/victory-gpu/src/host.rs, crates/victory-gpu/src/indirect.rs, crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/mod.rs, crates/victory-shader/src/emit/shader.rs). It will be reviewed once it is rebased onto the current main. The earlier verdict (needs work) was for an older state of main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152010603 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648#issuecomment-7152010603). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:32:31Z. --- <!-- victory-triage v1 head=d62ba28ccdee44d9f7bd9a0c7afc1246c023b55c verdict=needs-rebase at=2026-11-25T15:55:30Z --> Automated triage for the maintainers. This pull request no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/draw.rs`, `crates/victory-gpu/src/host.rs`, `crates/victory-gpu/src/indirect.rs`, `crates/victory-shader/src/emit/lower.rs`, `crates/victory-shader/src/emit/mod.rs`, `crates/victory-shader/src/emit/shader.rs`). It will be reviewed once it is rebased onto the current `main`. The earlier verdict (needs work) was for an older state of `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
abdellahgh01 commented 2026-11-27 10:01:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by abdellahgh01 on 2026-11-27T10:01:07Z.


RX 580 (Polaris: no mesh shaders, 64-lane waves only): the world renders.

With #1648's mesh emulation merged onto current main, plus a few fixes for 64-lane-only cards, the world draws correctly (lit, textured, characters) on an RX 580 8 GB with a Ryzen 7 2700X and 20 GB RAM, in Series S mode, at about 1 fps (0.8–1.5 s per frame).

What it needed on top of #1648:

  • each 32-lane console wave in a larger group gets its own 64-lane host wave (those compute pipelines were refused, or the world came out washed out)
  • R9G9B9E5 render targets get an R11G11B10_FLOAT stand-in
  • dword 4 of root constants is a constant, not a root view offset (11 post-processing programs were dropped every frame)
  • two memory leaks fixed: view table entries for constant-buffer and placed-buffer views were never freed, and host command lists grew without bound
  • TdrDelay raised to 10 s: some world submissions take 3+ s on this card

Code, measurements and open problems: https://github.com/abdellahgh01/VIctory-RX580 (README-RX580.md). Help is welcome, especially on the GPU cost of wave32 padding and mesh emulation on GCN, and on cutting the ~5 GB of host copies on 8 GB cards.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7215375447 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1648#issuecomment-7215375447). Originally posted by [abdellahgh01](https://github.com/abdellahgh01) on 2026-11-27T10:01:07Z. --- **RX 580 (Polaris: no mesh shaders, 64-lane waves only): the world renders.** With #1648's mesh emulation merged onto current main, plus a few fixes for 64-lane-only cards, the world draws correctly (lit, textured, characters) on an RX 580 8 GB with a Ryzen 7 2700X and 20 GB RAM, in Series S mode, at about 1 fps (0.8–1.5 s per frame). What it needed on top of #1648: - each 32-lane console wave in a larger group gets its own 64-lane host wave (those compute pipelines were refused, or the world came out washed out) - R9G9B9E5 render targets get an R11G11B10_FLOAT stand-in - dword 4 of root constants is a constant, not a root view offset (11 post-processing programs were dropped every frame) - two memory leaks fixed: view table entries for constant-buffer and placed-buffer views were never freed, and host command lists grew without bound - `TdrDelay` raised to 10 s: some world submissions take 3+ s on this card Code, measurements and open problems: https://github.com/abdellahgh01/VIctory-RX580 (README-RX580.md). Help is welcome, especially on the GPU cost of wave32 padding and mesh emulation on GCN, and on cutting the ~5 GB of host copies on 8 GB cards.
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/1648:upstream-pr/1648'
git switch 'upstream-pr/1648'

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