Shaders: zero unavailable mixed-precision FMA halves #683

Closed
github-bot wants to merge 1 commit from gh-pr/683/head into gh-pr/683/base
Owner

@⁠Halfect on GitHub · 2026-11-24 06:46 UTC · original
Halfect:fix/f16-interp-high-half → main · +97 −3 · 2 files · 1 commits · closed without merging

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)

**@⁠Halfect** on GitHub · 2026-11-24 06:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/683) `Halfect:fix/f16-interp-high-half` → `main` · +97 −3 · 2 files · 1 commits · closed without merging ## 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:55 +00:00
github-bot closed this pull request 2026-11-26 04:12:55 +00:00
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 08:27 UTC · original

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.

**@⁠iurysf** on GitHub · 2026-11-24 08:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7126163657) 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.
Author
Owner

@⁠slint6614-dev on GitHub · 2026-11-24 09:30 UTC · original

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.

**@⁠slint6614-dev** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7127512760) 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.
Author
Owner

@⁠banbanzhige on GitHub · 2026-11-24 09:44 UTC · original

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.

**@⁠banbanzhige** on GitHub · 2026-11-24 09:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7127814111) 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._
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 10:16 UTC · original

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.

**@⁠Halfect** on GitHub · 2026-11-24 10:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7128545801) 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.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 11:19 UTC · original

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.

**@⁠ErRusso** on GitHub · 2026-11-24 11:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7129946101) ## 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.
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 11:29 UTC · original

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.

**@⁠Halfect** on GitHub · 2026-11-24 11:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7130167497) 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.
Author
Owner

@⁠CaravelaLabs on GitHub · 2026-11-24 12:06 UTC · original

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.

**@⁠CaravelaLabs** on GitHub · 2026-11-24 12:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7130968602) 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.
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 12:22 UTC · original

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.

**@⁠Halfect** on GitHub · 2026-11-24 12:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7131355483) 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.
Author
Owner

@⁠CaravelaLabs on GitHub · 2026-11-24 13:05 UTC · original

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.

**@⁠CaravelaLabs** on GitHub · 2026-11-24 13:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7132330352) 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.
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 13:23 UTC · original

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

**@⁠Halfect** on GitHub · 2026-11-24 13:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7132772302) Thanks @⁠CaravelaLabs for confirming `81fb96e` compiles and passes the library suite on your side. Nothing further from me on this head — ready for review.
Author
Owner

@⁠DeerSilver on GitHub · 2026-11-24 14:04 UTC · original

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).

**@⁠DeerSilver** on GitHub · 2026-11-24 14:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7133795953) 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).
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 14:22 UTC · original

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.

**@⁠Halfect** on GitHub · 2026-11-24 14:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7134262011) 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.
Author
Owner

@⁠pablogonz12 on GitHub · 2026-11-24 16:20 UTC · original

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.
**@⁠pablogonz12** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7137517332) 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.
Author
Owner

@⁠Yaekai on GitHub · 2026-11-24 16:29 UTC · original

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!
**@⁠Yaekai** on GitHub · 2026-11-24 16:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7137755458) 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!
Author
Owner

@⁠Halfect on GitHub · 2026-11-24 16:50 UTC · original

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).

**@⁠Halfect** on GitHub · 2026-11-24 16:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7138283032) 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).
Author
Owner

@⁠pablogonz12 on GitHub · 2026-11-24 17:20 UTC · original

@⁠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.

**@⁠pablogonz12** on GitHub · 2026-11-24 17:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7139036763) @⁠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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:27 UTC · original

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.

**@⁠Marvisak** on GitHub · 2026-11-25 00:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/683#issuecomment-7148527508) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!683
No description provided.