Shaders: zero unavailable mixed-precision FMA halves #683

Closed
Halfect wants to merge 1 commit from upstream-pr/683 into main
Halfect commented 2026-11-24 06:46:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T06:46:29Z.


Summary

  • handle an unavailable old destination in v_fma_mixlo_f16 / v_fma_mixhi_f16 with the same zero fallback as the other partial-VGPR-write paths
  • do not trace through v_interp_p1ll_f16: it writes a full 32-bit f32 intermediate and does not preserve the destination's old high half
  • add a regression covering paired f16 interpolation, a destination with stale high bits, both mixed-precision result halves, DXIL validation, and a color export

Validation

  • cargo test --locked -p victory-shader --lib -- --test-threads=1 — 90 passed, 0 failed, 1 benchmark ignored
  • cargo clippy --locked -p victory-shader --lib -- -D warnings
  • cargo xtask policy — 151 files passed
  • cargo build --locked --release -p victory
  • The new regression fails on origin/main with emit: the first half of an interpolation and passes with this change.
  • Offline full-shader A/B against origin/main 8e79c80: 25,889 matched program labels; DXIL validation gained 8, lost 0. Vertex + pixel validated increased from 12,148 to 12,156; compute and mesh totals were unchanged. The only outcome transition was 8 programs changing from emit: the first half of an interpolation to validated.

Offline translation and DXIL validation only; no game or GPU execution was used.

AI-assisted (Kimi)

<!-- greyfinch-sync:Marvisak/VIctory:issue:6576276508 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T06:46:29Z. --- ## Summary - handle an unavailable old destination in `v_fma_mixlo_f16` / `v_fma_mixhi_f16` with the same zero fallback as the other partial-VGPR-write paths - do not trace through `v_interp_p1ll_f16`: it writes a full 32-bit `f32` intermediate and does not preserve the destination's old high half - add a regression covering paired f16 interpolation, a destination with stale high bits, both mixed-precision result halves, DXIL validation, and a color export ## Validation - `cargo test --locked -p victory-shader --lib -- --test-threads=1` — 90 passed, 0 failed, 1 benchmark ignored - `cargo clippy --locked -p victory-shader --lib -- -D warnings` - `cargo xtask policy` — 151 files passed - `cargo build --locked --release -p victory` - The new regression fails on `origin/main` with `emit: the first half of an interpolation` and passes with this change. - Offline full-shader A/B against `origin/main` `8e79c80`: 25,889 matched program labels; DXIL validation **gained 8, lost 0**. Vertex + pixel validated increased from 12,148 to **12,156**; compute and mesh totals were unchanged. The only outcome transition was 8 programs changing from `emit: the first half of an interpolation` to validated. Offline translation and DXIL validation only; no game or GPU execution was used. AI-assisted (Kimi)
catminou4 commented 2026-11-24 06:54:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T06:53:08Z.

Review: APPROVED


cargo test -p victory-shader --locked on macOS 26 arm64, rustc 1.98.1: 57 passed, 0 failed (+1 vs main — the new f16 high-half interpolation test is ungated and ran green). Approving.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034901623 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#pullrequestreview-6034901623). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T06:53:08Z. **Review:** APPROVED --- `cargo test -p victory-shader --locked` on macOS 26 arm64, rustc 1.98.1: **57 passed, 0 failed** (+1 vs main — the new f16 high-half interpolation test is ungated and ran green). Approving.
LAKSHYA-cmd-tech commented 2026-11-24 07:01:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T07:00:30Z.

Review: APPROVED


LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. All 70 unit tests in ictory-shader passed cleanly, including the new unit test n_f16_interpolation_preserves_its_old_high_half. Preserving the high 16 bits of destination VGPR across _interp_p1ll_f16 prevents unneeded shader invalidation.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034978292 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#pullrequestreview-6034978292). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T07:00:30Z. **Review:** APPROVED --- LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. All 70 unit tests in ictory-shader passed cleanly, including the new unit test n_f16_interpolation_preserves_its_old_high_half. Preserving the high 16 bits of destination VGPR across _interp_p1ll_f16 prevents unneeded shader invalidation.
iurysf commented 2026-11-24 09:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by iurysf on 2026-11-24T08:27:46Z.


Measured offline against main c2e7254 with victory translate --list --validate over the title's shaders.rpf + executable (26,096 programs), dxil.dll 1.9.2602.17, comparing outcomes program by program: failures 3,734 -> 3,726 (−8). Eight "the first half of an interpolation" refusals now emit and validate, and there are no regressions.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7126163657 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7126163657). Originally posted by [iurysf](https://github.com/iurysf) on 2026-11-24T08:27:46Z. --- Measured offline against main `c2e7254` with `victory translate --list --validate` over the title's `shaders.rpf` + executable (26,096 programs), dxil.dll 1.9.2602.17, comparing outcomes program by program: failures 3,734 -> 3,726 (−8). Eight "the first half of an interpolation" refusals now emit and validate, and there are no regressions. AI-assisted.
slint6614-dev commented 2026-11-24 10:03:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by slint6614-dev on 2026-11-24T09:30:34Z.


Measured on the full retail shader pack (26,503 containers) with victory translate --validate --pipelines (pipelines on an AMD RX 9070, Windows 11, dxil.dll from SDK 10.0.26100). Counts are emitted / validated / pipelines. Merged locally with current main c7a5f49 first (main: VS/PS 12224 / 12148).

VS/PS 12232 / 12156 (+8 validated): "the first half of an interpolation" 28 → 20. CS and MS unchanged.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7127512760 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7127512760). Originally posted by [slint6614-dev](https://github.com/slint6614-dev) on 2026-11-24T09:30:34Z. --- Measured on the full retail shader pack (26,503 containers) with `victory translate --validate --pipelines` (pipelines on an AMD RX 9070, Windows 11, dxil.dll from SDK 10.0.26100). Counts are emitted / validated / pipelines. Merged locally with current main c7a5f49 first (main: VS/PS 12224 / 12148). VS/PS 12232 / **12156** (+8 validated): "the first half of an interpolation" 28 → 20. CS and MS unchanged.
banbanzhige commented 2026-11-24 10:03:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by banbanzhige on 2026-11-24T09:44:01Z.


Quick ISA note on the premise here: on RDNA 2 / GFX10, v_interp_p1ll_f16 writes a full 32-bit f32 intermediate (D.f32 = P10.f16 * S0.f32 + P0.f16, later consumed as S2.f32 by v_interp_p2_f16), so it overwrites all 32 bits of vdst and does not preserve the pre-interpolation high 16 bits.

In those 8 pixel shaders, v_fma_mixlo_f16 is simply reusing a dead temporary VGPR after v_interp_p2_f16 has consumed v_interp_p1ll_f16's result (subsequent instructions only read the low 16 bits). Because first_halves walks past v_interp_p1ll_f16 to the value held before it, it would actually resurrect stale pre-interpolation bits if vdst had held a live value earlier, and it doesn't cover v_fma_mixhi_f16 or reuse of other intentionally unlowered VGPRs (such as entry barycentrics).

Notice that the other partial-VGPR-write paths in lower.rs (write_placed, place_bits, write_half, and low_half) all handle an unlowered preserved half uniformly with:

let old = match inst.read(Reg::V(reg)).map(|o| self.i32_of(o)) {
    Some(Ok(o)) => o,
    _ => self.s.m.i32(0),
};

Using that same fallback in v_fma_mixlo_f16 / v_fma_mixhi_f16 avoids mismodeling v_interp_p1ll_f16 as high-half-preserving, stays consistent with write_half / low_half, handles both mixlo and mixhi, and gives the same +8 validated pixel shaders with 0 regressions (tested offline against the local shader pack).

AI-assisted review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7127814111 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7127814111). Originally posted by [banbanzhige](https://github.com/banbanzhige) on 2026-11-24T09:44:01Z. --- Quick ISA note on the premise here: on RDNA 2 / GFX10, `v_interp_p1ll_f16` writes a full 32-bit `f32` intermediate (`D.f32 = P10.f16 * S0.f32 + P0.f16`, later consumed as `S2.f32` by `v_interp_p2_f16`), so it overwrites all 32 bits of `vdst` and does **not** preserve the pre-interpolation high 16 bits. In those 8 pixel shaders, `v_fma_mixlo_f16` is simply reusing a dead temporary VGPR after `v_interp_p2_f16` has consumed `v_interp_p1ll_f16`'s result (subsequent instructions only read the low 16 bits). Because `first_halves` walks past `v_interp_p1ll_f16` to the value held *before* it, it would actually resurrect stale pre-interpolation bits if `vdst` had held a live value earlier, and it doesn't cover `v_fma_mixhi_f16` or reuse of other intentionally unlowered VGPRs (such as entry barycentrics). Notice that the other partial-VGPR-write paths in `lower.rs` (`write_placed`, `place_bits`, `write_half`, and `low_half`) all handle an unlowered preserved half uniformly with: ```rust let old = match inst.read(Reg::V(reg)).map(|o| self.i32_of(o)) { Some(Ok(o)) => o, _ => self.s.m.i32(0), }; ``` Using that same fallback in `v_fma_mixlo_f16` / `v_fma_mixhi_f16` avoids mismodeling `v_interp_p1ll_f16` as high-half-preserving, stays consistent with `write_half` / `low_half`, handles both `mixlo` and `mixhi`, and gives the same +8 validated pixel shaders with 0 regressions (tested offline against the local shader pack). _AI-assisted review._
upstream-sync changed title from [PR #683] Shaders: preserve high halves across f16 interpolation to [PR #683] Shaders: zero unavailable mixed-precision FMA halves 2026-11-24 11:03:56 +00:00
Halfect commented 2026-11-24 11:04:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T10:16:09Z.


You're right—thanks for the ISA correction. I had incorrectly modeled v_interp_p1ll_f16 as preserving the old high half; D.f32 = P10.f16 * S0.f32 + P0.f16 overwrites the full destination, so walking back to the pre-interpolation value could resurrect stale bits.

Updated head 0b48633 removes first_halves / preserved_high entirely. Both v_fma_mixlo_f16 and v_fma_mixhi_f16 now use the same Some(Ok(o)) => o, _ => i32(0) fallback as the other partial-write paths. The regression covers both result halves with a deliberately stale pre-interpolation high half, and validates the resulting DXIL. It fails on current origin/main with emit: the first half of an interpolation.

I also reran the full offline A/B against origin/main 8e79c80: 8 validation gains, 0 losses across 25,889 matched labels; VS/PS validated 12,148 → 12,156, with compute and mesh unchanged. No game or GPU execution was used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7128545801 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7128545801). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T10:16:09Z. --- You're right—thanks for the ISA correction. I had incorrectly modeled `v_interp_p1ll_f16` as preserving the old high half; `D.f32 = P10.f16 * S0.f32 + P0.f16` overwrites the full destination, so walking back to the pre-interpolation value could resurrect stale bits. Updated head `0b48633` removes `first_halves` / `preserved_high` entirely. Both `v_fma_mixlo_f16` and `v_fma_mixhi_f16` now use the same `Some(Ok(o)) => o, _ => i32(0)` fallback as the other partial-write paths. The regression covers both result halves with a deliberately stale pre-interpolation high half, and validates the resulting DXIL. It fails on current `origin/main` with `emit: the first half of an interpolation`. I also reran the full offline A/B against `origin/main` `8e79c80`: **8 validation gains, 0 losses** across 25,889 matched labels; VS/PS validated 12,148 → 12,156, with compute and mesh unchanged. No game or GPU execution was used.
ErRusso commented 2026-11-24 12:04:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ErRusso on 2026-11-24T11:19:18Z.


Audit: ✅ Looks good — verified & tested

Reviewed this PR as part of an audit of mergeable PRs.

  • Scope: crates/victory-shader/src/emit/lower.rs + mod.rs (+97/-3). Tracks v_interp_p1ll_f16 instructions in a first_halves map and walks the chain in the new preserved_high() so that a low-half f16 interpolation followed by a low-half mixed-precision FMA keeps the destination's old high half instead of treating it as unknown.
  • Merges cleanly into main.
  • Tests: emit::tests::mixed_precision_fmas_accept_an_unavailable_interpolation_half → passed; cargo test -p victory-shader -- emit::tests:: → 6/6 passed. The emission test exercises the full native→IR→resource→IO→structure→emit pipeline and validates the DXIL with the DXC validator when available.
  • Code quality: preserved_high() is reused by both the mixed-precision FMA path and low_half(), which avoids two divergent implementations. Clean.

No issues found.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7129946101 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7129946101). Originally posted by [ErRusso](https://github.com/ErRusso) on 2026-11-24T11:19:18Z. --- ## Audit: ✅ Looks good — verified & tested Reviewed this PR as part of an audit of mergeable PRs. - **Scope:** `crates/victory-shader/src/emit/lower.rs` + `mod.rs` (+97/-3). Tracks `v_interp_p1ll_f16` instructions in a `first_halves` map and walks the chain in the new `preserved_high()` so that a low-half f16 interpolation followed by a low-half mixed-precision FMA keeps the destination's old high half instead of treating it as unknown. - **Merges cleanly** into `main`. - **Tests:** `emit::tests::mixed_precision_fmas_accept_an_unavailable_interpolation_half` → passed; `cargo test -p victory-shader -- emit::tests::` → 6/6 passed. The emission test exercises the full native→IR→resource→IO→structure→emit pipeline and validates the DXIL with the DXC validator when available. - **Code quality:** `preserved_high()` is reused by both the mixed-precision FMA path and `low_half()`, which avoids two divergent implementations. Clean. No issues found.
Halfect commented 2026-11-24 12:04:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T11:29:36Z.


Thanks for the audit, but this describes the superseded implementation, not current head 0b48633.

first_halves and preserved_high() have been removed. The current PR no longer treats v_interp_p1ll_f16 as preserving the old high half: both v_fma_mixlo_f16 and v_fma_mixhi_f16 use the same Some(Ok(o)) => o, _ => i32(0) fallback as the other partial-write paths. The regression covers both result halves with a deliberately stale pre-interpolation high half.

Please retest 0b48633; the earlier ISA correction and current implementation details are in the comment above.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7130167497 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7130167497). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T11:29:36Z. --- Thanks for the audit, but this describes the superseded implementation, not current head `0b48633`. `first_halves` and `preserved_high()` have been removed. The current PR no longer treats `v_interp_p1ll_f16` as preserving the old high half: both `v_fma_mixlo_f16` and `v_fma_mixhi_f16` use the same `Some(Ok(o)) => o, _ => i32(0)` fallback as the other partial-write paths. The regression covers both result halves with a deliberately stale pre-interpolation high half. Please retest `0b48633`; the earlier ISA correction and current implementation details are in the comment above.
CaravelaLabs commented 2026-11-24 13:01:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by CaravelaLabs on 2026-11-24T12:06:12Z.


Thanks @Halfect — retested current head 0b48633 merged onto main ffe310e, as you asked.

Git merges with no text conflicts. The merged code is the zero fallback on both v_fma_mixlo_f16 and v_fma_mixhi_f16 (Some(Ok(o)) => o, _ => i32(0)). first_halves / preserved_high are gone.

As written, cargo test -p victory-shader --lib still does not compile: the new test calls resource::track with three arguments. Already listed for this PR in #801, and @muhammed-aksoy already hit it on this head, so not a new finding.

With only that call updated to pass None, the new test passes, and the shader library tests are 97 passed / 0 failed / 1 ignored (Linux, rustc 1.98.1). The same test against main's lowering fails with the first half of an interpolation, so it does catch this change. Both mixlo and mixhi are in the passing run. The DXIL validator did not run here (that check is Windows-only), and the test checks that emit succeeds, not the bit pattern of the zeroed half.

AI-assisted; tests run on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7130968602 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7130968602). Originally posted by [CaravelaLabs](https://github.com/CaravelaLabs) on 2026-11-24T12:06:12Z. --- Thanks @Halfect — retested current head `0b48633` merged onto main `ffe310e`, as you asked. Git merges with no text conflicts. The merged code is the zero fallback on both `v_fma_mixlo_f16` and `v_fma_mixhi_f16` (`Some(Ok(o)) => o, _ => i32(0)`). `first_halves` / `preserved_high` are gone. As written, `cargo test -p victory-shader --lib` still does not compile: the new test calls `resource::track` with three arguments. Already listed for this PR in #801, and @muhammed-aksoy already hit it on this head, so not a new finding. With only that call updated to pass `None`, the new test passes, and the shader library tests are 97 passed / 0 failed / 1 ignored (Linux, rustc 1.98.1). The same test against main's lowering fails with `the first half of an interpolation`, so it does catch this change. Both mixlo and mixhi are in the passing run. The DXIL validator did not run here (that check is Windows-only), and the test checks that emit succeeds, not the bit pattern of the zeroed half. AI-assisted; tests run on this machine.
Halfect commented 2026-11-24 13:02:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T12:22:47Z.


Thanks @CaravelaLabs — fixed in 81fb96e. I rebased onto current main ffe310e and updated the new regression call to resource::track(&p, &native.layout, native.stage, None).

Validation on Windows:

  • mixed_precision_fmas_accept_an_unavailable_interpolation_half: passed, including its Windows DXIL validation.
  • cargo check --locked -p victory-shader --tests: passed.
  • CPU-only library suite, explicitly skipping diff_tests, valu_tests, waterfall_tests, and stub_pipeline_is_created: 98 passed, 0 failed, 1 ignored.
  • Clippy with -D warnings and cargo xtask policy: passed (154 files ok).

No GPU execution was used for this validation. The regression still checks successful emission rather than the exact zeroed-half bit pattern, as you noted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7131355483 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7131355483). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T12:22:47Z. --- Thanks @CaravelaLabs — fixed in `81fb96e`. I rebased onto current main `ffe310e` and updated the new regression call to `resource::track(&p, &native.layout, native.stage, None)`. Validation on Windows: - `mixed_precision_fmas_accept_an_unavailable_interpolation_half`: passed, including its Windows DXIL validation. - `cargo check --locked -p victory-shader --tests`: passed. - CPU-only library suite, explicitly skipping `diff_tests`, `valu_tests`, `waterfall_tests`, and `stub_pipeline_is_created`: **98 passed, 0 failed, 1 ignored**. - Clippy with `-D warnings` and `cargo xtask policy`: passed (**154 files ok**). No GPU execution was used for this validation. The regression still checks successful emission rather than the exact zeroed-half bit pattern, as you noted.
DenRakEiw commented 2026-11-24 14:04:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T14:00:21Z.

Review: APPROVED


NVIDIA cross-vendor verification — tested merged cleanly onto main (ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP:

  • cargo test -p victory-shader: 121 passed, 0 failed, 1 ignored (all hardware + WARP VALU/waterfall/diff tests green on RTX 5090 and WARP)
  • cargo clippy -p victory-shader --all-targets: 0 warnings
  • cargo xtask policy: ok

Clean cross-vendor confirmation on NVIDIA Blackwell + WARP. Approving.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6040560804 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#pullrequestreview-6040560804). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T14:00:21Z. **Review:** APPROVED --- NVIDIA cross-vendor verification — tested merged cleanly onto `main` (`ffe310e`) on Windows 11 x64 (Rust 1.98.1 MSVC) with **NVIDIA GeForce RTX 5090** (Blackwell) and **WARP**: - `cargo test -p victory-shader`: **121 passed, 0 failed, 1 ignored** (all hardware + WARP VALU/waterfall/diff tests green on RTX 5090 and WARP) - `cargo clippy -p victory-shader --all-targets`: **0 warnings** - `cargo xtask policy`: ok Clean cross-vendor confirmation on NVIDIA Blackwell + WARP. Approving. AI-assisted (Gemini 4 Neon).
CaravelaLabs commented 2026-11-24 14:04:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by CaravelaLabs on 2026-11-24T13:05:16Z.


Thanks @Halfect — retested 81fb96e, already on main ffe310e.

cargo test -p victory-shader --lib compiles now. 97 passed, 0 failed, 1 ignored (Linux, rustc 1.98.1). mixed_precision_fmas_accept_an_unavailable_interpolation_half passed in that run. The DXIL validator still did not run here.

AI-assisted; tests run on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132330352 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7132330352). Originally posted by [CaravelaLabs](https://github.com/CaravelaLabs) on 2026-11-24T13:05:16Z. --- Thanks @Halfect — retested `81fb96e`, already on main `ffe310e`. `cargo test -p victory-shader --lib` compiles now. 97 passed, 0 failed, 1 ignored (Linux, rustc 1.98.1). `mixed_precision_fmas_accept_an_unavailable_interpolation_half` passed in that run. The DXIL validator still did not run here. AI-assisted; tests run on this machine.
Halfect commented 2026-11-24 14:04:43 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T13:23:55Z.


Thanks @CaravelaLabs for confirming 81fb96e compiles and passes the library suite on your side. Nothing further from me on this head — ready for review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132772302 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7132772302). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T13:23:55Z. --- Thanks @CaravelaLabs for confirming `81fb96e` compiles and passes the library suite on your side. Nothing further from me on this head — ready for review.
DeerSilver commented 2026-11-24 14:05:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DeerSilver on 2026-11-24T14:04:25Z.


Re-tested head 81fb96e merged onto main ffe310e (clean merge) on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1. No game files: the test suite only. Pass, with no local change: the resource::track call from #801 now builds.

  • mixed_precision_fmas_accept_an_unavailable_interpolation_half passes. It doesn't use the GPU, but its DXIL check did run: the Windows SDK 10.0.26100.0\x64\dxil.dll is installed here, so Validator::load found it.
  • cargo test --workspace --locked, the full workspace including the VALU and waterfall GPU groups (which ran on the RTX 5060): 343 passed, 0 failed, 6 ignored, against 342 / 6 on main.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133795953 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7133795953). Originally posted by [DeerSilver](https://github.com/DeerSilver) on 2026-11-24T14:04:25Z. --- Re-tested head `81fb96e` merged onto `main` `ffe310e` (clean merge) on **NVIDIA GeForce RTX 5060 Laptop GPU** (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1. No game files: the test suite only. **Pass**, with no local change: the `resource::track` call from #801 now builds. - `mixed_precision_fmas_accept_an_unavailable_interpolation_half` passes. It doesn't use the GPU, but its DXIL check did run: the Windows SDK `10.0.26100.0\x64\dxil.dll` is installed here, so `Validator::load` found it. - `cargo test --workspace --locked`, the full workspace including the VALU and waterfall GPU groups (which ran on the RTX 5060): **343 passed, 0 failed, 6 ignored**, against 342 / 6 on `main`. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. AI-assisted (Claude Code).
Halfect commented 2026-11-24 15:03:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T14:22:11Z.


Thanks @DeerSilver for re-testing 81fb96e with the full workspace suite on the RTX 5060 — 343 passed with the VALU/waterfall groups included is a good cross-check of the CPU-only runs. Nothing further from my side on this head; ready for review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134262011 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7134262011). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T14:22:11Z. --- Thanks @DeerSilver for re-testing `81fb96e` with the full workspace suite on the RTX 5060 — 343 passed with the VALU/waterfall groups included is a good cross-check of the CPU-only runs. Nothing further from my side on this head; ready for review.
pablogonz12 commented 2026-11-24 17:04:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pablogonz12 on 2026-11-24T16:20:48Z.


Measured on Linux (RX 9070 XT, RADV/Mesa 26.3.1, GE-Proton11-14, vkd3d-proton master), head 81fb96e merged onto our tree:

  • full archive under Wine (26,503 containers): vertex+pixel 13152 against a 13144 base (+8), compute 2228 and mesh 8395 unchanged; "the first half of an interpolation" 28 -> 20.
  • offline world set (751) unchanged at 684; all valid SPIR-V; cargo test -p victory-shader --lib 114 pass, only the known failure.
    One thing for your branch: after emit() gained a target: Target argument on main, the new test calls emit(..., &res) with six arguments and does not compile against current main; I passed Target::ANY.
    Not tested: in-game on this branch; native Windows.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7137517332 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7137517332). Originally posted by [pablogonz12](https://github.com/pablogonz12) on 2026-11-24T16:20:48Z. --- Measured on Linux (RX 9070 XT, RADV/Mesa 26.3.1, GE-Proton11-14, vkd3d-proton master), head 81fb96e merged onto our tree: - full archive under Wine (26,503 containers): vertex+pixel 13152 against a 13144 base (+8), compute 2228 and mesh 8395 unchanged; "the first half of an interpolation" 28 -> 20. - offline world set (751) unchanged at 684; all valid SPIR-V; `cargo test -p victory-shader --lib` 114 pass, only the known failure. One thing for your branch: after `emit()` gained a `target: Target` argument on main, the new test calls `emit(..., &res)` with six arguments and does not compile against current main; I passed `Target::ANY`. Not tested: in-game on this branch; native Windows.
Yaekai commented 2026-11-24 17:04:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Yaekai on 2026-11-24T16:29:48Z.


Independent verification on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head 81fb96e:

  • cargo test -p victory-shader --lib -- --skip valu_tests --skip waterfall_tests: 103 passed, 0 failed.
  • cargo clippy -p victory-shader -- -D warnings: 0 warnings.
  • Live GTA VI (1.0.2.1, --console series-s, 19-min world run): no regressions. Ready to merge!
<!-- greyfinch-sync:Marvisak/VIctory:comment:7137755458 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7137755458). Originally posted by [Yaekai](https://github.com/Yaekai) on 2026-11-24T16:29:48Z. --- Independent verification on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head `81fb96e`: - `cargo test -p victory-shader --lib -- --skip valu_tests --skip waterfall_tests`: 103 passed, 0 failed. - `cargo clippy -p victory-shader -- -D warnings`: 0 warnings. - Live GTA VI (`1.0.2.1`, `--console series-s`, 19-min world run): no regressions. Ready to merge!
Halfect commented 2026-11-24 17:04:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-24T16:50:16Z.


Thanks @pablogonz12 for the measurement and the heads-up.

On the compile note: upstream main is still ffe310e, and there emit() keeps its six-argument form (c, native, p, st, io, &res) — I just re-checked crates/victory-shader/src/emit/mod.rs at refs/heads/main. The target: Target parameter you hit must come from the tree you merged onto, not from upstream main yet. Against upstream, 81fb96e compiles as pushed: @CaravelaLabs built the library suite on Linux (97 passed) and @DeerSilver the full workspace on Windows (343 passed), both merged onto ffe310e with no local change.

If the target-aware emit() lands first, I'll rebase and pass the appropriate target through the new test (your Target::ANY adaptation is the behavior-preserving choice for it).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7138283032 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7138283032). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-24T16:50:16Z. --- Thanks @pablogonz12 for the measurement and the heads-up. On the compile note: upstream `main` is still `ffe310e`, and there `emit()` keeps its six-argument form (`c, native, p, st, io, &res`) — I just re-checked `crates/victory-shader/src/emit/mod.rs` at `refs/heads/main`. The `target: Target` parameter you hit must come from the tree you merged onto, not from upstream `main` yet. Against upstream, `81fb96e` compiles as pushed: @CaravelaLabs built the library suite on Linux (97 passed) and @DeerSilver the full workspace on Windows (343 passed), both merged onto `ffe310e` with no local change. If the target-aware `emit()` lands first, I'll rebase and pass the appropriate target through the new test (your `Target::ANY` adaptation is the behavior-preserving choice for it).
pablogonz12 commented 2026-11-24 18:05:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pablogonz12 on 2026-11-24T17:20:02Z.


@Halfect You're right, thanks for checking. The target: Target argument comes from another PR in the tree I merged onto, not from upstream main; against ffe310e your 81fb96e compiles as pushed. The +8 vertex/pixel count I posted still applies.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7139036763 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7139036763). Originally posted by [pablogonz12](https://github.com/pablogonz12) on 2026-11-24T17:20:02Z. --- @Halfect You're right, thanks for checking. The `target: Target` argument comes from another PR in the tree I merged onto, not from upstream main; against `ffe310e` your `81fb96e` compiles as pushed. The +8 vertex/pixel count I posted still applies.
upstream-sync closed this pull request 2026-11-25 01:04:46 +00:00
Marvisak commented 2026-11-25 01:07:49 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

Zero-fills the kept half of v_fma_mixlo/hi_f16 when the old value has no host form. Main handles the same programs without inventing a value: the high half stays unknown and only low-half readers are accepted (13091f6e, low16).

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:7148527508 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7148527508). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:27:20Z. --- Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. Zero-fills the kept half of v_fma_mixlo/hi_f16 when the old value has no host form. Main handles the same programs without inventing a value: the high half stays unknown and only low-half readers are accepted (13091f6e, low16). 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.

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!683
No description provided.