Shaders, second round: geometry programs as geometry shaders, loops as the console runs them, lighter wave64 forms (stacked on #854) #991

Open
PiloteCode wants to merge 22 commits from upstream-pr/993 into main
PiloteCode commented 2026-11-25 15:20:09 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by PiloteCode on 2026-11-25T15:20:09Z.


Stacked on #854 (pilote:pr/shaders, 7c9a2f98), on main 9a9091d1. The 17 commits after #854's are this PR's. Once #854 is in, only they remain.

Rebuilt on today's main

main has taken several of this PR's pieces meanwhile, in its own way. They are left out here:

  • Dispatches past 65,535 groups in x. main spreads them across z (USER_DISPATCH_SPREAD, 06702fe8). This PR's split dispatches, its group base and the four diagnostics and test commits that went with them are left out.
  • A helper lane of a pixel program reads its own value in a first-lane read. main has this (helper_reads_own, after upstream 0601955), the same way this PR did. The test stays as a test of main's fix (commit "Tests: a helper lane ..."): on the software adapter the helper lane's count is 1. VICTORY_HELPER_OWN is left out.
  • A loop that each lane leaves on its own is not code that every lane runs. main took it with VICTORY_WAVE_WIDE=1 (loop_exits_on, b1d777a8, "adapted from fork PR #993"). This PR's version, which applied it to every form, is not carried. The lane regions stay in lower.rs as main has them.
  • The paired form is main's now (#1397, see #854). The raw reads of guarded writes (below) are re-applied onto main's paired code.

The census of the shader pack for this rebuild follows.

What changes

Geometry programs translate as geometry shaders (geometry.rs, emit/rings.rs, native.rs, pipeline/host.rs)

The title's 195 geometry programs (all GS_VoxelizeGeneric variants) stopped at resource tracking: their first load reads the console driver's table that user data 0 and 1 point at.

How the console runs such a program: in one hardware stage, after the ES half of its vertex program. It reads its triangle's vertices from LDS at the offsets in v0 and v1 (16 bits each), writes the vertices it emits to its lane's slot of the GS-VS ring (also in LDS), and sends a GS message for each emit and cut. The stage data gives the ring's layout (StageIo::Gs).

How the host runs it now:

  • The ES half runs as the vertex program it is: the container's VS program, the other compilation of the same HLSL.
  • The program runs as a geometry shader with one invocation per primitive (crate::geometry, emit/rings.rs). The address of each LDS access is followed to the input vertex and dword it reads, or to the emitted vertex and dword it writes:
    • a ring read is that input's loadInput;
    • a ring write is kept as that vertex's output;
    • the n-th emit stores vertex n's outputs and emits it.
  • The load from the driver's table only places the ring, so its value is never needed (resource::DRIVER).
  • The prologue that narrows EXEC to the wave's GS threads keeps every lane (NativeProgram::patched_code).
  • The primitive id (v2) is the host's.
  • Refused: an invocation id (v3, instancing), vertices 4 and 5 (adjacency), another stream, and emits in branches.

A title pipeline with a geometry stage was refused before ("only vertex, mesh, pixel and compute stages are translated"). It now gets a host pipeline: the vertex program, the geometry program and the pixel program, each stage's user data and views bound as the others are. The geometry stage comes last, so the pixel stage keeps its place.

Offline, all 195 translate and validate, and the DXIL of every other program is unchanged by this commit. Their pipelines, between a stub vertex and pixel shader, build on WARP. No run so far drew with a geometry stage.

#854 links each of the 71 oversized mesh programs with the pixel program of its pipeline. A pipeline without a pixel program, as the title makes for depth, still got the invalid translation: the runs so far bound 143 mesh programs alone 14,576 times.

link_mesh_alone translates such a program again without its outputs of arbitrary semantics, which only a pixel program reads. Position, clip and cull distances stay, and it fits. The runtime makes those pipelines with it. The census checks that form of the 71, since its stub pixel program reads nothing: all 71 validate and get a pipeline (RTX 5090). VICTORY_MESH_LINK=0 turns this form off too.

Loops (emit/loops.rs, emit/trip.rs, lower.rs)

  • A loop whose code fixes its count runs to its end, whatever the limit. The limit is for loops whose end the data decides. A loop has a fixed count when its exit is a scalar counter that:

    • starts at a constant;
    • moves by a constant step each pass;
    • is compared with a constant, at its bottom, or at its top with a jump back.

    Such a loop now runs as often as the console's, up to 65,536 passes. The environment BRDF integration tables (PS_IntegrateEnvBRDF and its Beckmann and thin-film variants) integrate 1,024 samples a texel in six loops of 256 or 512 passes. At the pixel limit of 128, every one of the 65,536 texels of each table stopped at a half or a quarter of its samples (loop notes, opening cutscene). Every specular reflection reads those tables.

  • A loop closed by a jump leaves at its exit at the limit. Such a loop has its exit test elsewhere in its body. At the limit, its jump back could only end the lane: a pixel discarded, a mesh or compute lane stopped before its writes. Its exit tests now take the limit too, so a lane at the limit leaves there and goes on with the program. A lane whose way round passes no exit test still ends.

  • A vertex or mesh program with a root UAV declares UAVs at every stage (ShaderFlags bit 16). With loop notes on, the validator refused 62 of 801 such programs of a run.

  • Diagnostics.

    • Loop limits per stage: pixel 128, vertex and mesh 256, compute 4,096, ray tracing 1,024, as before. VICTORY_SHADER_LOOP_LIMIT takes one number, or stage:n pairs.
    • VICTORY_LOOP_NOTES=1: each lane that reaches a loop's limit adds one to that loop's record in a root UAV of ours, and the log names the loops whose counts grew, every five seconds (crate::loop_notes).
  • The limits themselves stay. With them raised to 1,024 / 4,096 / 65,536, the notes named loops that never end, for example a cascade search that reads its count as 0, and a decal resolve's walk.

Wave64 programs on 32-lane GPUs (emit/split.rs, emit/guarded.rs, emit/forms.rs)

  • Allocation-only programs run as two host waves of their own (VICTORY_WAVE_SPLIT=0 turns it off). Some console wave64 programs use their wave-wide values only as the allocation idiom uses them: each wave's first lane reserves its count on a shared counter, and every lane takes the base plus its rank. Such a program is exact with each host wave on its own: the same records, reserved by each half in another order. Before, a program that the exchange form also translated took that form: two host waves meeting at two group barriers for each first-lane read, mask and sum.
    • CS_Primary_RegisterAllocationRequests (33 group barriers in 681 host instructions) took 3.7 ms of card time per dispatch in the opening cutscene, 2.8 ms a frame: the most of any wave64 program.
    • The idiom check now also follows a guarded write that reuses a register: a reader that cannot see the lanes outside the guard keeps the write's kind (split::read_inside_only).
    • Offline when it went in (CPU census, the same build with the switch off): 40 of the 160 exchange-form programs take the local form, and 5 of the 70 paired programs. No other program changes. The 5 paired ones go from 48,501 to 19,039 host instructions.
  • The paired form reads a guarded write without its select where only lanes inside the guard read it (VICTORY_WAVE_RAW=0 turns it off). In the paired form every per-lane branch is the wave's, so a guarded write is select(guard, new, old). That was about a sixth of the paired programs' host code, each select keeping the register's old value alive. A lane that reads the register under a guard that implies the writer's guard reads the computed value. This holds only for its own registers: a DPP source, lane read or write, swizzle or permute reads other lanes. Offline when it went in, on this PR's own paired form, only the 69 paired programs changed: host instructions 2,303,768 -> 1,617,871 (-30 %), guard selects 360,668 -> 124,509.
  • The census names the form each console wave64 compute program takes on a 32-lane host (form= with VICTORY_SHADER_CENSUS).

Switches

Switch Default Effect
VICTORY_WAVE_SPLIT on =0: allocation-only wave64 programs take the forms they took before
VICTORY_WAVE_RAW on =0: the paired form selects every guarded write, as before
VICTORY_MESH_LINK on =0 now also turns off the system-values-only form of oversized mesh programs drawn alone
VICTORY_SHADER_LOOP_LIMIT stage limits one number for every stage, or pixel:<n>,vertex:<n>,compute:<n>,trace:<n>
VICTORY_LOOP_NOTES=1 off count the lanes that reach a loop's limit (a root UAV of ours in every program with a counted loop)

Every VICTORY_* switch the translator reads is part of the shader cache key.

Tested

The branch was checked as it is (on #854 on 9a9091d1), on the software adapter (no card):

  • cargo test -p victory-shader -- --test-threads=1 with VICTORY_WARP=1: 293 passed, 6 failed, 18 ignored. These are the same six as on #854 (main's five, and #854's LDS subtraction test, whose pipeline WARP refuses).
  • cargo test -p victory-gpu --features diagnostics -- --test-threads=1 --skip stacks_that_mean_nothing_are_walked_without_a_fault with VICTORY_D3D12_WARP=1: 261 passed, none failed.
  • cargo clippy -p victory-shader -p victory-gpu -p victory --locked -- -D warnings: clean. With --all-targets, victory-shader fails only on main's own 7 lints in its tests, as on main.
  • cargo build --profile diag -p victory --features diagnostics passes.

Tests of the card (the paired form's raw reads and the local form against the console's 64 lanes) return early on WARP, whose waves hold 4 lanes. They passed on the RTX 5090 when they went in, on this PR's own paired form.

Earlier, all of these changes ran in our tree on the RTX 5090 with our layer work: its general test (an opening cutscene run and gameplay runs from a save) had no device loss, no refused pipeline and no exception.

Overlaps with open pull requests

  • #683 gives compute programs a loop limit of their own. Here every stage has its own limit, and fixed-count loops ignore the limits.
  • #871 prunes the unread varyings of oversized mesh pairs; #854 links them.
  • #779 changes which form wave64 programs take on 32-lane hosts in another way (main took #592's by hand).

Not tested

  • A run of this exact branch in the title: the card was reserved. Earlier runs of our tree had these changes.
  • A draw with a geometry stage: no run has made one. The pipelines build on WARP.
  • GPUs with 64-lane waves (AMD), where the wave64 forms here are not taken; Intel; Linux/Proton.

Where this also lives

These changes are also in PiloteBox (https://github.com/PiloteCode/PiloteBox), a tree kept up to date for NVIDIA cards. Its 0.13.1 runs the Series X profile at about 21 frames a second on an RTX 5090 (46.6 and 48.8 ms a frame in one scene; its changelog says how that was measured).

<!-- greyfinch-sync:fxceless/victory-fork:issue:5494151989 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/993). Originally posted by [PiloteCode](https://github.com/PiloteCode) on 2026-11-25T15:20:09Z. --- **Stacked on #854** (`pilote:pr/shaders`, 7c9a2f98), on `main` `9a9091d1`. The 17 commits after #854's are this PR's. Once #854 is in, only they remain. ## Rebuilt on today's `main` `main` has taken several of this PR's pieces meanwhile, in its own way. They are left out here: - **Dispatches past 65,535 groups in x.** `main` spreads them across z (`USER_DISPATCH_SPREAD`, 06702fe8). This PR's split dispatches, its group base and the four diagnostics and test commits that went with them are left out. - **A helper lane of a pixel program reads its own value in a first-lane read.** `main` has this (`helper_reads_own`, after upstream 0601955), the same way this PR did. The test stays as a test of `main`'s fix (commit "Tests: a helper lane ..."): on the software adapter the helper lane's count is 1. `VICTORY_HELPER_OWN` is left out. - **A loop that each lane leaves on its own is not code that every lane runs.** `main` took it with `VICTORY_WAVE_WIDE=1` (`loop_exits_on`, b1d777a8, "adapted from fork PR #993"). This PR's version, which applied it to every form, is not carried. The lane regions stay in `lower.rs` as `main` has them. - The paired form is `main`'s now (#1397, see #854). The raw reads of guarded writes (below) are re-applied onto `main`'s paired code. The census of the shader pack for this rebuild follows. ## What changes ### Geometry programs translate as geometry shaders (`geometry.rs`, `emit/rings.rs`, `native.rs`, `pipeline/host.rs`) The title's 195 geometry programs (all `GS_VoxelizeGeneric` variants) stopped at resource tracking: their first load reads the console driver's table that user data 0 and 1 point at. How the console runs such a program: in one hardware stage, after the ES half of its vertex program. It reads its triangle's vertices from LDS at the offsets in v0 and v1 (16 bits each), writes the vertices it emits to its lane's slot of the GS-VS ring (also in LDS), and sends a GS message for each emit and cut. The stage data gives the ring's layout (`StageIo::Gs`). How the host runs it now: - The ES half runs as the vertex program it is: the container's VS program, the other compilation of the same HLSL. - The program runs as a geometry shader with one invocation per primitive (`crate::geometry`, `emit/rings.rs`). The address of each LDS access is followed to the input vertex and dword it reads, or to the emitted vertex and dword it writes: - a ring read is that input's `loadInput`; - a ring write is kept as that vertex's output; - the n-th emit stores vertex n's outputs and emits it. - The load from the driver's table only places the ring, so its value is never needed (`resource::DRIVER`). - The prologue that narrows EXEC to the wave's GS threads keeps every lane (`NativeProgram::patched_code`). - The primitive id (v2) is the host's. - Refused: an invocation id (v3, instancing), vertices 4 and 5 (adjacency), another stream, and emits in branches. A title pipeline with a geometry stage was refused before ("only vertex, mesh, pixel and compute stages are translated"). It now gets a host pipeline: the vertex program, the geometry program and the pixel program, each stage's user data and views bound as the others are. The geometry stage comes last, so the pixel stage keeps its place. Offline, all 195 translate and validate, and the DXIL of every other program is unchanged by this commit. Their pipelines, between a stub vertex and pixel shader, build on WARP. No run so far drew with a geometry stage. ### A mesh program over 32 KiB drawn without a pixel program keeps only its system values (`emit/link.rs`, `pipeline/host.rs`) #854 links each of the 71 oversized mesh programs with the pixel program of its pipeline. A pipeline without a pixel program, as the title makes for depth, still got the invalid translation: the runs so far bound 143 mesh programs alone 14,576 times. `link_mesh_alone` translates such a program again without its outputs of arbitrary semantics, which only a pixel program reads. Position, clip and cull distances stay, and it fits. The runtime makes those pipelines with it. The census checks that form of the 71, since its stub pixel program reads nothing: all 71 validate and get a pipeline (RTX 5090). `VICTORY_MESH_LINK=0` turns this form off too. ### Loops (`emit/loops.rs`, `emit/trip.rs`, `lower.rs`) - **A loop whose code fixes its count runs to its end, whatever the limit.** The limit is for loops whose end the data decides. A loop has a fixed count when its exit is a scalar counter that: - starts at a constant; - moves by a constant step each pass; - is compared with a constant, at its bottom, or at its top with a jump back. Such a loop now runs as often as the console's, up to 65,536 passes. The environment BRDF integration tables (`PS_IntegrateEnvBRDF` and its Beckmann and thin-film variants) integrate 1,024 samples a texel in six loops of 256 or 512 passes. At the pixel limit of 128, every one of the 65,536 texels of each table stopped at a half or a quarter of its samples (loop notes, opening cutscene). Every specular reflection reads those tables. - **A loop closed by a jump leaves at its exit at the limit.** Such a loop has its exit test elsewhere in its body. At the limit, its jump back could only end the lane: a pixel discarded, a mesh or compute lane stopped before its writes. Its exit tests now take the limit too, so a lane at the limit leaves there and goes on with the program. A lane whose way round passes no exit test still ends. - **A vertex or mesh program with a root UAV declares UAVs at every stage** (ShaderFlags bit 16). With loop notes on, the validator refused 62 of 801 such programs of a run. - **Diagnostics.** - Loop limits per stage: pixel 128, vertex and mesh 256, compute 4,096, ray tracing 1,024, as before. `VICTORY_SHADER_LOOP_LIMIT` takes one number, or `stage:n` pairs. - `VICTORY_LOOP_NOTES=1`: each lane that reaches a loop's limit adds one to that loop's record in a root UAV of ours, and the log names the loops whose counts grew, every five seconds (`crate::loop_notes`). - The limits themselves stay. With them raised to 1,024 / 4,096 / 65,536, the notes named loops that never end, for example a cascade search that reads its count as 0, and a decal resolve's walk. ### Wave64 programs on 32-lane GPUs (`emit/split.rs`, `emit/guarded.rs`, `emit/forms.rs`) - **Allocation-only programs run as two host waves of their own** (`VICTORY_WAVE_SPLIT=0` turns it off). Some console wave64 programs use their wave-wide values only as the allocation idiom uses them: each wave's first lane reserves its count on a shared counter, and every lane takes the base plus its rank. Such a program is exact with each host wave on its own: the same records, reserved by each half in another order. Before, a program that the exchange form also translated took that form: two host waves meeting at two group barriers for each first-lane read, mask and sum. - `CS_Primary_RegisterAllocationRequests` (33 group barriers in 681 host instructions) took 3.7 ms of card time per dispatch in the opening cutscene, 2.8 ms a frame: the most of any wave64 program. - The idiom check now also follows a guarded write that reuses a register: a reader that cannot see the lanes outside the guard keeps the write's kind (`split::read_inside_only`). - Offline when it went in (CPU census, the same build with the switch off): 40 of the 160 exchange-form programs take the local form, and 5 of the 70 paired programs. No other program changes. The 5 paired ones go from 48,501 to 19,039 host instructions. - **The paired form reads a guarded write without its select where only lanes inside the guard read it** (`VICTORY_WAVE_RAW=0` turns it off). In the paired form every per-lane branch is the wave's, so a guarded write is `select(guard, new, old)`. That was about a sixth of the paired programs' host code, each select keeping the register's old value alive. A lane that reads the register under a guard that implies the writer's guard reads the computed value. This holds only for its own registers: a DPP source, lane read or write, swizzle or permute reads other lanes. Offline when it went in, on this PR's own paired form, only the 69 paired programs changed: host instructions 2,303,768 -> 1,617,871 (-30 %), guard selects 360,668 -> 124,509. - **The census names the form** each console wave64 compute program takes on a 32-lane host (`form=` with `VICTORY_SHADER_CENSUS`). ## Switches | Switch | Default | Effect | |---|---|---| | `VICTORY_WAVE_SPLIT` | on | `=0`: allocation-only wave64 programs take the forms they took before | | `VICTORY_WAVE_RAW` | on | `=0`: the paired form selects every guarded write, as before | | `VICTORY_MESH_LINK` | on | `=0` now also turns off the system-values-only form of oversized mesh programs drawn alone | | `VICTORY_SHADER_LOOP_LIMIT` | stage limits | one number for every stage, or `pixel:<n>,vertex:<n>,compute:<n>,trace:<n>` | | `VICTORY_LOOP_NOTES=1` | off | count the lanes that reach a loop's limit (a root UAV of ours in every program with a counted loop) | Every `VICTORY_*` switch the translator reads is part of the shader cache key. ## Tested The branch was checked as it is (on #854 on `9a9091d1`), on the software adapter (no card): - `cargo test -p victory-shader -- --test-threads=1` with `VICTORY_WARP=1`: 293 passed, 6 failed, 18 ignored. These are the same six as on #854 (`main`'s five, and #854's LDS subtraction test, whose pipeline WARP refuses). - `cargo test -p victory-gpu --features diagnostics -- --test-threads=1 --skip stacks_that_mean_nothing_are_walked_without_a_fault` with `VICTORY_D3D12_WARP=1`: 261 passed, none failed. - `cargo clippy -p victory-shader -p victory-gpu -p victory --locked -- -D warnings`: clean. With `--all-targets`, `victory-shader` fails only on `main`'s own 7 lints in its tests, as on `main`. - `cargo build --profile diag -p victory --features diagnostics` passes. Tests of the card (the paired form's raw reads and the local form against the console's 64 lanes) return early on WARP, whose waves hold 4 lanes. They passed on the RTX 5090 when they went in, on this PR's own paired form. Earlier, all of these changes ran in our tree on the RTX 5090 with our layer work: its general test (an opening cutscene run and gameplay runs from a save) had no device loss, no refused pipeline and no exception. ## Overlaps with open pull requests - **#683** gives compute programs a loop limit of their own. Here every stage has its own limit, and fixed-count loops ignore the limits. - **#871** prunes the unread varyings of oversized mesh pairs; #854 links them. - **#779** changes which form wave64 programs take on 32-lane hosts in another way (`main` took #592's by hand). ## Not tested - A run of this exact branch in the title: the card was reserved. Earlier runs of our tree had these changes. - A draw with a geometry stage: no run has made one. The pipelines build on WARP. - GPUs with 64-lane waves (AMD), where the wave64 forms here are not taken; Intel; Linux/Proton. ## Where this also lives These changes are also in PiloteBox (https://github.com/PiloteCode/PiloteBox), a tree kept up to date for NVIDIA cards. Its 0.13.1 runs the Series X profile at about 21 frames a second on an RTX 5090 (46.6 and 48.8 ms a frame in one scene; its changelog says how that was measured).
PiloteCode commented 2026-11-25 23:09:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by PiloteCode on 2026-11-25T22:11:40Z.


Merged main (c36971b) into the branch: a merge commit on top of the commits already here (f2d66cb), then one lint commit. No conflict. The branch still holds #854's head as it was.

Merged without a conflict, and read through where both sides changed the same code:

  • indirect.rs: the clamp's shader now has main's gathered records (a record's place read from a table) and this branch's split dispatch (kind 3). Only a windowed draw's record is gathered, never a dispatch's, so the two do not meet. The tests of both pass.
  • draw.rs: execute_indirect ends the list's gathering for a dispatch before the split clamp, and a direct dispatch split past 65,535 groups ends it on entry.
  • The translator: main's loads of four dwords a call (VICTORY_SHADER_OPT bit 64, not in the default) sit beside this branch's forms. main's new paths are taken only with the bit on, and its test of them passes here. emit/lower.rs is 511,375 bytes of the policy's 524,288.

Added after the merge: one lint commit for main's newer code, the same as on our other open branches: map_entry in fpsbox.rs, collapsible_if in pipeline/library.rs, manual_is_multiple_of in queue.rs, shadow.rs, draw.rs and watch.rs. Without it cargo clippy --workspace --all-targets --locked -- -D warnings fails on c36971b, with or without --all-features.

Checked, the branch as it is (5a6f243), every test on the software adapter:

  • cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with --all-features: clean.
  • cargo xtask policy, cargo build --release -p victory and cargo build --profile diag -p victory --features diagnostics: pass.
  • cargo test -p victory-shader -- --test-threads=1 with VICTORY_WARP=1: 260 passed, 5 failed, 2 ignored. The five are the ones the description names; four of them fail on main alone on the software adapter (212 passed, 4 failed, 3 ignored), and the fifth is #854's LDS subtraction test. The one test more than before is main's new one.
  • cargo test -p victory-gpu --features diagnostics -- --test-threads=1 with VICTORY_D3D12_WARP=1: 201 passed, 1 failed, 6 ignored. The failure is depth_bounds_pipeline_loads_and_filters_draws, as on main (200 passed, 1 failed, 6 ignored).
  • cargo test -p victory-hle -- --test-threads=1: 100 + 1 passed, as on main.
  • cargo test -p victory -p victory-loader: passed.
  • The offline census of the description, on the merged release build (victory translate --validate --list, VICTORY_HOST_MAX_WAVE=32, CPU only, no pipelines): 25,948 of 25,953 programs translate and validate. Its list is the same, program for program, as the one taken before the merge: the one line that differs is the example it quotes for the five that fail.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7176055375 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/993#issuecomment-7176055375). Originally posted by [PiloteCode](https://github.com/PiloteCode) on 2026-11-25T22:11:40Z. --- Merged `main` (`c36971b`) into the branch: a merge commit on top of the commits already here (`f2d66cb`), then one lint commit. No conflict. The branch still holds #854's head as it was. **Merged without a conflict, and read through** where both sides changed the same code: - `indirect.rs`: the clamp's shader now has `main`'s gathered records (a record's place read from a table) and this branch's split dispatch (kind 3). Only a windowed draw's record is gathered, never a dispatch's, so the two do not meet. The tests of both pass. - `draw.rs`: `execute_indirect` ends the list's gathering for a dispatch before the split clamp, and a direct dispatch split past 65,535 groups ends it on entry. - The translator: `main`'s loads of four dwords a call (`VICTORY_SHADER_OPT` bit 64, not in the default) sit beside this branch's forms. `main`'s new paths are taken only with the bit on, and its test of them passes here. `emit/lower.rs` is 511,375 bytes of the policy's 524,288. **Added after the merge:** one lint commit for `main`'s newer code, the same as on our other open branches: `map_entry` in `fpsbox.rs`, `collapsible_if` in `pipeline/library.rs`, `manual_is_multiple_of` in `queue.rs`, `shadow.rs`, `draw.rs` and `watch.rs`. Without it `cargo clippy --workspace --all-targets --locked -- -D warnings` fails on `c36971b`, with or without `--all-features`. **Checked**, the branch as it is (`5a6f243`), every test on the software adapter: - `cargo clippy --workspace --all-targets --locked -- -D warnings`, and the same with `--all-features`: clean. - `cargo xtask policy`, `cargo build --release -p victory` and `cargo build --profile diag -p victory --features diagnostics`: pass. - `cargo test -p victory-shader -- --test-threads=1` with `VICTORY_WARP=1`: 260 passed, 5 failed, 2 ignored. The five are the ones the description names; four of them fail on `main` alone on the software adapter (212 passed, 4 failed, 3 ignored), and the fifth is #854's LDS subtraction test. The one test more than before is `main`'s new one. - `cargo test -p victory-gpu --features diagnostics -- --test-threads=1` with `VICTORY_D3D12_WARP=1`: 201 passed, 1 failed, 6 ignored. The failure is `depth_bounds_pipeline_loads_and_filters_draws`, as on `main` (200 passed, 1 failed, 6 ignored). - `cargo test -p victory-hle -- --test-threads=1`: 100 + 1 passed, as on `main`. - `cargo test -p victory -p victory-loader`: passed. - The offline census of the description, on the merged release build (`victory translate --validate --list`, `VICTORY_HOST_MAX_WAVE=32`, CPU only, no pipelines): 25,948 of 25,953 programs translate and validate. Its list is the same, program for program, as the one taken before the merge: the one line that differs is the example it quotes for the five that fail.
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/993:upstream-pr/993'
git switch 'upstream-pr/993'

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/993'
git switch 'upstream-pr/993'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/993'
git switch 'upstream-pr/993'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/993'
git switch 'main'
git merge --squash 'upstream-pr/993'
git switch 'main'
git merge --ff-only 'upstream-pr/993'
git switch 'main'
git merge 'upstream-pr/993'
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
fxceless/victory-fork!991
No description provided.