shader: unpack compressed f16 pixel exports #395

Open
Loggerten wants to merge 7 commits from upstream-pr/395 into main
Loggerten commented 2026-11-24 02:54:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-24T02:54:37Z.


What

EXP with compr packs two f16 channels per source dword (low half first), so four channels come from two VGPRs. export() refused every compressed export outright; the pixel color and depth targets now unpack each dword's low and high half instead, reusing the existing half-flag store path (legacyF16ToF32). Primitive, primitive-param, param and position targets stay refused, so the translate tally still counts the real remainder.

Why

victory translate tallies compressed exports as a per-program failure reason (translate.rs compressed), so every pixel program that finishes with a compressed MRT export is dropped. Unpacking them removes that entire reason for the common render-target case.

Verified

  • New test emit::lower::tests::a_compressed_export_unpacks_two_f16_channels_per_dword (a PS program: two v_mov_b32 into v0/v1, then exp mrt0, v0, v0, v1, v1 done compr): panics on main with a compressed export, passes with this change.
  • cargo test -p victory-shader: 57 passed, 0 failed (56 baseline + 1).
  • cargo fmt --check -p victory-shader and cargo clippy -p victory-shader --all-targets: clean (one pre-existing dead-code warning on main, untouched).
  • cargo xtask policy: 151 files ok.

AI-assisted (Hermes Agent); I reviewed the diff and ran the tests and gates myself.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5465197059 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-24T02:54:37Z. --- ## What EXP with `compr` packs two f16 channels per source dword (low half first), so four channels come from two VGPRs. `export()` refused every compressed export outright; the pixel color and depth targets now unpack each dword's low and high half instead, reusing the existing half-flag store path (`legacyF16ToF32`). Primitive, primitive-param, param and position targets stay refused, so the `translate` tally still counts the real remainder. ## Why `victory translate` tallies compressed exports as a per-program failure reason (translate.rs `compressed`), so every pixel program that finishes with a compressed MRT export is dropped. Unpacking them removes that entire reason for the common render-target case. ## Verified - New test `emit::lower::tests::a_compressed_export_unpacks_two_f16_channels_per_dword` (a PS program: two `v_mov_b32` into v0/v1, then `exp mrt0, v0, v0, v1, v1 done compr`): panics on main with `a compressed export`, passes with this change. - `cargo test -p victory-shader`: 57 passed, 0 failed (56 baseline + 1). - `cargo fmt --check -p victory-shader` and `cargo clippy -p victory-shader --all-targets`: clean (one pre-existing dead-code warning on main, untouched). - `cargo xtask policy`: 151 files ok. AI-assisted (Hermes Agent); I reviewed the diff and ran the tests and gates myself.
CesarLopesO commented 2026-11-24 06:55:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by CesarLopesO on 2026-11-24T03:00:39Z.


Independent validation — Debian 13 (Trixie)

I tested the current PR head 9c760ab locally on Debian 13.

Results

  • Focused regression test — 1 passed, 0 failed.
  • cargo test --locked -p victory-shader — 57 passed, 0 failed.
  • cargo clippy --locked -p victory-shader --all-targets — completed successfully.
  • rustfmt --edition 2024 --check crates/victory-shader/src/emit/lower.rs — passed.
  • cargo xtask policy — passed (151 files).
  • git diff --check — passed; working tree clean.

The compiler reports an unrelated dead_code warning for constant_color in crates/victory-shader/src/emit/mod.rs:450. No warnings were reported in the changed file.

The compressed f16 pixel export regression test passes on Linux, and the full shader test suite passes.

No game files or game data were used.

Thanks for the fix!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7120685991 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7120685991). Originally posted by [CesarLopesO](https://github.com/CesarLopesO) on 2026-11-24T03:00:39Z. --- ## Independent validation — Debian 13 (Trixie) I tested the current PR head `9c760ab` locally on Debian 13. **Results** - Focused regression test — 1 passed, 0 failed. - `cargo test --locked -p victory-shader` — 57 passed, 0 failed. - `cargo clippy --locked -p victory-shader --all-targets` — completed successfully. - `rustfmt --edition 2024 --check crates/victory-shader/src/emit/lower.rs` — passed. - `cargo xtask policy` — passed (151 files). - `git diff --check` — passed; working tree clean. The compiler reports an unrelated `dead_code` warning for `constant_color` in `crates/victory-shader/src/emit/mod.rs:450`. No warnings were reported in the changed file. The compressed f16 pixel export regression test passes on Linux, and the full shader test suite passes. No game files or game data were used. Thanks for the fix!
catminou4 commented 2026-11-24 13:20:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T13:20:35Z.

Review: APPROVED


Restricts compressed (compr) pixel exports to color/depth targets and unpacks two f16 channels per source dword (odd channel = high half), keeping everything else refused. The Target::Color(_) | Target::Depth guard is the right shape, and ch % 2 == 1 matches the "low half first" packing the ISA documents.

The new lowering test a_compressed_export_unpacks_two_f16_channels_per_dword runs on macOS (it's in lower.rs's unit tests, not the Windows-gated valu_tests) and builds a real PS with an exp ... compr — good.

Verified locally: test-merge with current main (ffe310e) clean; cargo test -p victory-shader --locked (macOS arm64, rustc 1.98.1) green — the new valu_tests execution cases are #[cfg(windows)]-gated like the rest of that suite, so they will run on the Windows CI lane, not here.: 97 passed / 0 failed / 1 ignored (one more than main's 96 — the new test).

<!-- greyfinch-sync:Marvisak/VIctory:review:6039912830 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#pullrequestreview-6039912830). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T13:20:35Z. **Review:** APPROVED --- Restricts compressed (`compr`) pixel exports to color/depth targets and unpacks two f16 channels per source dword (odd channel = high half), keeping everything else refused. The `Target::Color(_) | Target::Depth` guard is the right shape, and `ch % 2 == 1` matches the "low half first" packing the ISA documents. The new lowering test `a_compressed_export_unpacks_two_f16_channels_per_dword` runs on macOS (it's in `lower.rs`'s unit tests, not the Windows-gated `valu_tests`) and builds a real PS with an `exp ... compr` — good. Verified locally: test-merge with current main (`ffe310e`) clean; `cargo test -p victory-shader --locked` (macOS arm64, rustc 1.98.1) green — the new `valu_tests` execution cases are `#[cfg(windows)]`-gated like the rest of that suite, so they will run on the Windows CI lane, not here.: **97 passed / 0 failed / 1 ignored** (one more than main's 96 — the new test).
CaravelaLabs commented 2026-11-24 15:03:53 +00:00 (Migrated from github.com)

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


@Loggerten the float color unpack matches. On c0d3769, a compressed export of f16 2, 1, 1, 3 stores f32 2, 1, 1, 3. Low half first, high half shifted by 16, then legacyF16ToF32.

Integer outputs are not. The convert runs before the component-type check, so a non-float target stores those f32 bits as storeOutput.i32. A uint SV_Target (component type 5, which the signature parser uses for uint16 and uint32) of a compressed export whose dword is 0x00020001 lowers successfully and stores 0x33800000 and 0x34000000 — f16(1) and f16(2) widened — not the integers 1 and 2. See github.com/Marvisak/VIctory@c0d3769751/crates/victory-shader/src/emit/lower.rs (L6649-L6673)

The depth path this change newly allows does the same. Channel 1 of a compressed mrtz, already SV_StencilRef here, is stored as 0x34a00000 when the high half is 5, not the integer 5.

The new test only checks that a float target returns Ok, so it does not catch this. A uint or stencil output should stay refused, or be stored as an integer, not passed through legacyF16ToF32.

AI-assisted; Linux shader-lib probe, run on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7133968554 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7133968554). Originally posted by [CaravelaLabs](https://github.com/CaravelaLabs) on 2026-11-24T14:11:00Z. --- @Loggerten the float color unpack matches. On `c0d3769`, a compressed export of f16 2, 1, 1, 3 stores f32 2, 1, 1, 3. Low half first, high half shifted by 16, then `legacyF16ToF32`. Integer outputs are not. The convert runs before the component-type check, so a non-float target stores those f32 bits as `storeOutput.i32`. A uint `SV_Target` (component type 5, which the signature parser uses for uint16 and uint32) of a compressed export whose dword is `0x00020001` lowers successfully and stores `0x33800000` and `0x34000000` — f16(1) and f16(2) widened — not the integers 1 and 2. See https://github.com/Marvisak/VIctory/blob/c0d37697514e46c72a2693e216c1804a4b1a6be9/crates/victory-shader/src/emit/lower.rs#L6649-L6673 The depth path this change newly allows does the same. Channel 1 of a compressed `mrtz`, already `SV_StencilRef` here, is stored as `0x34a00000` when the high half is 5, not the integer 5. The new test only checks that a float target returns Ok, so it does not catch this. A uint or stencil output should stay refused, or be stored as an integer, not passed through `legacyF16ToF32`. AI-assisted; Linux shader-lib probe, run on this machine.
Loggerten commented 2026-11-24 15:04:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-24T14:38:12Z.


@CaravelaLabs You're right, and the probe's hex matches the code: the unpack ran legacyF16ToF32 before the component-type check, so storeOutput.i32 stored the f32 bit patterns (0x33800000/0x34000000, and the stencil's 0x34a00000) instead of the channel values.

Fixed in 8c3e0d4. On the console compr is f16 by definition, so there is no integer to store honestly: the raw halves as integers are the f16 bits, and converting through f32 truncates to zero. Only an output element the host declares a 32-bit float unpacks now; a uint SV_Target and the stencil half of a compressed mrtz keep the a compressed export refusal, so the translate tally still counts those programs.

New tests a_compressed_export_to_a_uint_target_stays_refused and a_compressed_depth_export_with_stencil_stays_refused (through a new lowers_ps_with helper that takes the output elements) assert the refusals; both lower successfully on the previous head, so they catch exactly this.

Verified on the new head, test-merged with current main (ffe310e): cargo test -p victory-shader --locked 99 passed / 0 failed (97 + the two new), cargo clippy -p victory-shader --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings clean, cargo xtask policy 154 files ok.

AI-assisted (Hermes Agent).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134699679 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7134699679). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-24T14:38:12Z. --- @CaravelaLabs You're right, and the probe's hex matches the code: the unpack ran `legacyF16ToF32` before the component-type check, so `storeOutput.i32` stored the f32 bit patterns (`0x33800000`/`0x34000000`, and the stencil's `0x34a00000`) instead of the channel values. Fixed in 8c3e0d4. On the console `compr` is f16 by definition, so there is no integer to store honestly: the raw halves as integers are the f16 bits, and converting through f32 truncates to zero. Only an output element the host declares a 32-bit float unpacks now; a uint `SV_Target` and the stencil half of a compressed `mrtz` keep the `a compressed export` refusal, so the `translate` tally still counts those programs. New tests `a_compressed_export_to_a_uint_target_stays_refused` and `a_compressed_depth_export_with_stencil_stays_refused` (through a new `lowers_ps_with` helper that takes the output elements) assert the refusals; both lower successfully on the previous head, so they catch exactly this. Verified on the new head, test-merged with current `main` (`ffe310e`): `cargo test -p victory-shader --locked` 99 passed / 0 failed (97 + the two new), `cargo clippy -p victory-shader --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings` clean, `cargo xtask policy` 154 files ok. AI-assisted (Hermes Agent).
CaravelaLabs commented 2026-11-24 16:05:01 +00:00 (Migrated from github.com)

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


Thanks @Loggerten — refusing the non-float case is the right call, and it holds on 8c3e0d4.

A compressed export now stays refused unless that output element is a 32-bit float. The convert runs only after that check, so a uint SV_Target and the stencil half of a compressed mrtz never reach legacyF16ToF32.

a_compressed_export_to_a_uint_target_stays_refused and a_compressed_depth_export_with_stencil_stays_refused passed. The float unpack still lowers. I did not re-measure the stored bits; that path is unchanged. Linux, rustc 1.98.1.

AI-assisted; tests run on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135471880 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7135471880). Originally posted by [CaravelaLabs](https://github.com/CaravelaLabs) on 2026-11-24T15:06:32Z. --- Thanks @Loggerten — refusing the non-float case is the right call, and it holds on `8c3e0d4`. A compressed export now stays refused unless that output element is a 32-bit float. The convert runs only after that check, so a uint `SV_Target` and the stencil half of a compressed `mrtz` never reach `legacyF16ToF32`. `a_compressed_export_to_a_uint_target_stays_refused` and `a_compressed_depth_export_with_stencil_stays_refused` passed. The float unpack still lowers. I did not re-measure the stored bits; that path is unchanged. Linux, rustc 1.98.1. AI-assisted; tests run on this machine.
Marvisak commented 2026-11-25 01:07:58 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers.

Needs work.

Re-reviewed at 1c4c480. Since the last pass:

  • CI: fixed. lowers_ps_with now sets view_marks: false, and check passes.
  • exp mrtz ... compr: refused, as before. The comment now cites Mesa's si_export_mrt_z, which is public.
  • Which 16-bit format the color halves are in: still open, and the code does not match your reply. Your reply says the branch "keeps the conservative refusal" until the v_cvt_pkrtz_f16_f32 gate is ready. In this head, though, Lower::export refuses a compressed export only when the target is not Target::Color. Every compressed color export to a 32-bit float SV_Target is still unpacked through legacyF16ToF32, with no check on how its source was produced. That is the unconditional FP16 assumption from the last pass, and it would read UNORM16/SNORM16 halves as f16.

Please do one of two things. Push the v_cvt_pkrtz_f16_f32 producer gate, with a test showing that a compressed export from another source stays refused. Or say plainly that this PR waits until then. The tests still check only whether lowering succeeds or is refused, not the stored values.

CI: passing (check).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148595826 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7148595826). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:31:28Z. --- <!-- victory-triage v1 head=1c4c480cec8f208c64a1d7e6c87126bda0016255 verdict=needs-work at=2026-11-25T09:19:07Z --> Automated triage for the maintainers. **Needs work.** Re-reviewed at `1c4c480`. Since the last pass: - **CI: fixed.** `lowers_ps_with` now sets `view_marks: false`, and `check` passes. - **`exp mrtz ... compr`: refused**, as before. The comment now cites Mesa's `si_export_mrt_z`, which is public. - **Which 16-bit format the color halves are in: still open, and the code does not match your reply.** Your reply says the branch "keeps the conservative refusal" until the `v_cvt_pkrtz_f16_f32` gate is ready. In this head, though, `Lower::export` refuses a compressed export only when the target is not `Target::Color`. Every compressed color export to a 32-bit float `SV_Target` is still unpacked through `legacyF16ToF32`, with no check on how its source was produced. That is the unconditional FP16 assumption from the last pass, and it would read UNORM16/SNORM16 halves as f16. Please do one of two things. Push the `v_cvt_pkrtz_f16_f32` producer gate, with a test showing that a compressed export from another source stays refused. Or say plainly that this PR waits until then. The tests still check only whether lowering succeeds or is refused, not the stored values. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Loggerten commented 2026-11-25 09:06:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-25T08:20:46Z.


Dropped mrtz compr from the unpack. Mesa reads that form as UINT16_ABGR (stencil and sample mask), not depth, so the code now cites si_export_mrt_z and stays refused there.

On the FP16 proof: the exp encoding carries no format field, so a shader cannot show that a render target is FP16 by itself. The only in-shader proof is a v_cvt_pkrtz_f16_f32 producer.

The unpack must therefore gate on that producer. I built the gate, but its positive test needs a pixel harness fix before it ships. Until then the branch keeps the conservative refusal. Rebased onto main and CI is green.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156911289 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7156911289). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-25T08:20:46Z. --- Dropped `mrtz compr` from the unpack. Mesa reads that form as UINT16_ABGR (stencil and sample mask), not depth, so the code now cites `si_export_mrt_z` and stays refused there. On the FP16 proof: the `exp` encoding carries no format field, so a shader cannot show that a render target is FP16 by itself. The only in-shader proof is a `v_cvt_pkrtz_f16_f32` producer. The unpack must therefore gate on that producer. I built the gate, but its positive test needs a pixel harness fix before it ships. Until then the branch keeps the conservative refusal. Rebased onto main and CI is green.
Loggerten commented 2026-11-26 20:08:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-26T20:08:37Z.


Gate pushed in 37ff52e: a compressed export lowers only when every source dword comes from v_cvt_pkrtz_f16_f32 (followed through plain v_mov_b32 copies); any other producer stays refused, so UNORM16/SNORM16 halves are never widened as f16. mrtz and non-float targets stay refused as before.

The pixel-harness fix turned out to be in the exp word itself: under compr, the second word names two packed source dwords at bits 0 and 8, so the old 0x0000_0100 encoding fed v0/v1 no matter which registers the test named. A helper (exp_compr) now builds the word, correct by construction. (view_marks has no effect on these pixel tests.)

Tests: a pkrtz-fed compr export lowers; a mov-fed one stays refused; the uint-target test feeds pkrtz so only the target type refuses it. Windows run: 251 shader tests pass; workspace clippy clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7202347518 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7202347518). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-26T20:08:37Z. --- Gate pushed in 37ff52e: a compressed export lowers only when every source dword comes from `v_cvt_pkrtz_f16_f32` (followed through plain `v_mov_b32` copies); any other producer stays refused, so UNORM16/SNORM16 halves are never widened as f16. `mrtz` and non-float targets stay refused as before. The pixel-harness fix turned out to be in the `exp` word itself: under `compr`, the second word names two packed source dwords at bits 0 and 8, so the old `0x0000_0100` encoding fed v0/v1 no matter which registers the test named. A helper (`exp_compr`) now builds the word, correct by construction. (`view_marks` has no effect on these pixel tests.) Tests: a pkrtz-fed compr export lowers; a mov-fed one stays refused; the uint-target test feeds pkrtz so only the target type refuses it. Windows run: 251 shader tests pass; workspace clippy clean.
Loggerten commented 2026-11-26 20:15:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-26T20:15:03Z.


Merged current main (63bcca4) into the branch, now head 3bda665 (merge keeps main's new def_site/def_inst and the f16_packed gate). Merged-tree run on Windows: cargo test -p victory-shader 306 passed / 3 ignored; cargo clippy --workspace --all-targets --locked -- -D warnings clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7202458957 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7202458957). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-26T20:15:03Z. --- Merged current main (63bcca4) into the branch, now head 3bda665 (merge keeps main's new `def_site`/`def_inst` and the `f16_packed` gate). Merged-tree run on Windows: `cargo test -p victory-shader` 306 passed / 3 ignored; `cargo clippy --workspace --all-targets --locked -- -D warnings` clean.
Loggerten commented 2026-11-26 20:21:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Loggerten on 2026-11-26T20:21:09Z.


CI caught the asset-policy size cap: the merged lower.rs was 529654 bytes, over the 512 KiB limit. 356f328 moves the test module to emit/lower_tests.rs unchanged; lower.rs is now 472754 bytes and cargo xtask policy reports 192 files ok. Merged-tree Windows run after the move: 306 passed / 3 ignored.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7202571879 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7202571879). Originally posted by [Loggerten](https://github.com/Loggerten) on 2026-11-26T20:21:09Z. --- CI caught the asset-policy size cap: the merged `lower.rs` was 529654 bytes, over the 512 KiB limit. 356f328 moves the test module to `emit/lower_tests.rs` unchanged; `lower.rs` is now 472754 bytes and `cargo xtask policy` reports 192 files ok. Merged-tree Windows run after the move: 306 passed / 3 ignored.
andrewpozdnakov7-jpg commented 2026-11-26 20:56:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T20:56:00Z.


I combined 356f328 with #470 at ed2d2c8 in ec7c106. Both branches moved the lowering tests into the same new file. The merge keeps the compressed-export tests and the wave-prefix scan test, with both production changes intact.

The new Windows readback test packs four distinct values with two v_cvt_pkrtz_f16_f32 instructions and copies the dwords through plain v_mov_b32 before the compressed export. On app-local Agility 1.620.2 / WARP 1.0.22, all 16 pixels read back [0.5, 1.0, 2.0, 4.0] in three runs. The refusal cases for non-FP16 input, a UINT target and compressed depth/stencil passed, and the min-prefix DXIL validated. The full WARP sweep had 305 passed, 4 failed and 3 ignored, with the same gather, two lane-permute and edge-flagged mesh failures observed on main. Strict Clippy in both feature configurations and the asset policy check passed.

@Loggerten, this is a tested resolution if either PR lands first. Please keep the Git author or use Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if you fold the resolution or readback test into another commit.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203218470 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/395#issuecomment-7203218470). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T20:56:00Z. --- I combined `356f328` with #470 at `ed2d2c8` in [`ec7c106`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/ec7c106a55309f0793931bb9ed73f11aff3a9403). Both branches moved the lowering tests into the same new file. The merge keeps the compressed-export tests and the wave-prefix scan test, with both production changes intact. The new Windows readback test packs four distinct values with two `v_cvt_pkrtz_f16_f32` instructions and copies the dwords through plain `v_mov_b32` before the compressed export. On app-local Agility 1.620.2 / WARP 1.0.22, all 16 pixels read back `[0.5, 1.0, 2.0, 4.0]` in three runs. The refusal cases for non-FP16 input, a UINT target and compressed depth/stencil passed, and the min-prefix DXIL validated. The full WARP sweep had 305 passed, 4 failed and 3 ignored, with the same gather, two lane-permute and edge-flagged mesh failures observed on main. Strict Clippy in both feature configurations and the asset policy check passed. @Loggerten, this is a tested resolution if either PR lands first. Please keep the Git author or use `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if you fold the resolution or readback test into another commit.
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/395:upstream-pr/395'
git switch 'upstream-pr/395'

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/395'
git switch 'upstream-pr/395'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/395'
git switch 'upstream-pr/395'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/395'
git switch 'main'
git merge --squash 'upstream-pr/395'
git switch 'main'
git merge --ff-only 'upstream-pr/395'
git switch 'main'
git merge 'upstream-pr/395'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!395
No description provided.