Shaders: 16-bit integer sources take abs and neg on bit 15 #3355

Open
Lyrnc wants to merge 3 commits from upstream-pr/3355 into main
Lyrnc commented 2026-11-26 20:18:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Lyrnc on 2026-11-26T20:18:33Z.


What was wrong

VOP3 abs and neg on a 16-bit integer source act on its bit 15, the place of a sign bit: abs clears it, neg flips it, both set it. There is no integer negate or absolute value. main handled this three ways, all different from the hardware:

  1. v_cvt_f16_u16 and v_cvt_f16_i16 ignored the modifiers: the unmodified integer was converted, with no message.
  2. The u16/i16 compares (v_cmp_*_u16, v_cmp_*_i16) ignored them too.
  3. The 16-bit integer operations (v_add_nc_u16, v_sub_nc_u16, v_mul_lo_u16, the 16-bit shifts, min and max) refused them ("modifiers on a 16-bit integer operation").

Examples, v0 = 0x0BAD_F00D before (the high half is kept):

Instruction, inputs gfx1036 main
v_cvt_f16_u16_e64 v0, -v1, v1 = 0x0000_0000 0x0BAD_7800 (0x8000 = 32768.0) 0x0BAD_0000
v_cvt_f16_i16_e64 v0, |v1|, v1 = 0x007F_FFFF 0x0BAD_7800 (0x7fff) 0x0BAD_BC00 (-1.0)
v_cvt_f16_i16_e64 v0, -v1, v1 = 0x0000_0001 0x0BAD_F800 (0x8001 = -32767, rounded) 0x0BAD_3C00 (1.0)
v_add_nc_u16_e64 v0, -v1, v2, v1 = 0x0000_0000, v2 = 0xB8D1_B717 0x0BAD_3717 (0x8000 + 0xb717) refused
v_max_i16_e64 v0, -v1, v2, v1 = 0x0000_0001, v2 = 0x477F_EFFF 0x0BAD_EFFF (max(-32767, -4097)) refused
v_cmp_lt_u16_e64 s20, -v1, v2, v1 = 0x0000_0000, v2 = 0x0000_000A false (0x8000 < 10) true (0 < 10)
v_cmp_lt_i16_e64 s20, |v1|, v2, v1 = 0x0000_8000, v2 = 0x0000_0000 false (0 < 0) true (-32768 < 0)

This settles the open question of #2374 (closed, "evidence needed"), which lowered neg on these operations as a two's-complement negation: on RDNA2 it is the bit-15 flip that a comment there predicted from the other measured integer forms (-v1 + v2 of 0 and 10 is 0x800a, of 0x8000 and 0 it is 0).

What changed

  • Lower::int16_mods(inst, k, x) applies abs / neg of source k to bit 15 of a 16-bit integer source.
  • v_cvt_f16_u16 / v_cvt_f16_i16, the generic 16-bit integer operations and the u16/i16 compares use it, before any sign extension.
  • The refusal stays for clamp and omod on the 16-bit integer operations, and for abs / neg on the f16 source of v_cvt_u16_f16 / v_cvt_i16_f16 (#2963 lowers those).

How it was found and measured

A differential sweep of the translator against RDNA2 hardware, VOP3 conversions and 16-bit operations with every source modifier among the cases:

  • Hardware: the Radeon iGPU of a Ryzen 7 9800X3D, gfx1036 (RDNA2), AMD driver 32.0.21042.62, Windows 11. The raw VOP3 words run in a HIP kernel (assembled by the driver's amd_comgr), one input row per lane, in the translator's float model (IEEE off, f32 denormals flushed, f16 kept).
  • Inputs: 640 rows of f32/f16/integer edge values and random words.
  • Results, all bit for bit against the bit-15 model:
    • v_cvt_f16_u16, v_cvt_f16_i16 with abs, neg, both, and neg + clamp: 640 of 640 rows each (512 of 512 in a first run).
    • v_add_nc_u16, v_sub_nc_u16, v_mul_lo_u16, v_max_u16, v_min_u16, v_max_i16, v_lshlrev_b16 with neg on either source, abs on either source, and both on src1: 640 of 640 rows each, where a two's-complement model fails.
    • v_cmp_lt_u16, v_cmp_ge_u16, v_cmp_eq_u16, v_cmp_lt_i16, v_cmp_gt_i16, v_cmp_ne_i16 with neg, abs and both on either source (36 forms): 640 of 640 rows each.
    • A second set of 8 rows chosen for the tests (0, 1, 0x7fff, 0x8000, 0xffff, 0x8001 against 10, 0, 5, 0x7fff...): 136 of 136 results. As predicted on #2374, -v1 + v2 of 0 and 10 is 0x800a, and of 0x8000 and 0 it is 0.
  • Translator: the same words through semantics_tests::program and lower::lower, on the same Radeon and on an RTX 5080 (driver 610.88). On main, the 14 conversion forms and 36 of the 42 compare forms (all but the six without modifiers) differ from the hardware, and the 35 forms of the integer operations are refused. With this change all 85 match on both hosts, and none of the other ~3,600 cases of the sweep (VOP3 with modifiers, VOP3P, LDS, DPP16 and SDWA forms) changes on either host.

This is PC RDNA2 silicon, not the console's GPU. No game data was used.

Tests

Three GPU tests in valu_tests.rs, each on measured rows with the gfx1036 results as the expected values:

  • v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15: both conversions with no modifier, neg, abs and both, on 8 rows (low halves 0, 1, 0xffff, 0x8000, 0x8001, 0xfc00, 0x7fff, 0xff, junk in the high halves); the destination's high half is checked too.
  • sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15: 12 operation/modifier forms of 7 operations on 7 rows.
  • sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15: v_cmp_lt_u16, v_cmp_lt_i16 and v_cmp_eq_u16 with 6 modifier forms on 8 rows, through v_cndmask_b32.

Results:

  • On main's lowering the three tests fail, on the Radeon iGPU and on the RTX 5080: hardware: v_cvt_f16_u16 (abs 0, neg 1) of 0x0000 = 0x0bad0000, want 0x0bad7800; build: Unsupported { offset: 40, what: "modifiers on a 16-bit integer operation" }; hardware: v_cmp_lt_u16 (abs 0b00, neg 0b01) of 0x0000, 0x000a = 1, want 0.
  • With this change they pass on the RTX 5080 (driver 610.88) and on the Radeon iGPU (gfx1036, driver 32.0.21042.62; picked with a local adapter-name filter in hardware_adapter, not part of this PR), and on WARP, which run_cases runs too.
  • cargo test -p victory-shader --lib -- --test-threads=1 (Windows 11, default adapter): 299 passed, 5 failed, 3 ignored. main 63bcca4 on this machine: 296 passed and the same 5 failed (rect::tests::rectangles_get_their_fourth_corner, two stride_tests, synthetic_tests::gathers_at_a_level_match_the_hardware, tests::elements_sharing_a_row_keep_their_order). Both runs skip memory_tests::heap_direct_texture_reads_mark_their_heap_index, which ends the test process with an access violation on main here as well.
  • cargo clippy -p victory-shader --lib --tests -- -D warnings: clean. cargo xtask policy: 191 files ok. The new code adds no rustfmt differences (the two files have the same rustfmt --check output as on main).
  • #2963 (abs/neg on the f16 source of v_cvt_u16_f16 / v_cvt_i16_f16) changes the same refusal line the other way round: it lets the float-source conversions through and keeps refusing the integer ones. With both, only clamp and omod stay refused (if v.clamp || v.omod != 0); whichever lands second resolves that one line.
  • The op_sel fix for VOP1/VOP2 opcodes in VOP3 form (fix/vop3-promoted-16bit-opsel) edits half_src and write_half, not the lines here; lower.rs merges cleanly. Both add tests at the end of valu_tests.rs; keep both.

Not tested

  • The console's GPU.
  • Whether the title's programs use these modifiers on integer sources. LLVM does not emit them there, so probably not; the value of the change is that such an encoding now means what the hardware does, or is still refused.
  • The SDWA forms. They reach the same paths with the same neg/abs bits; the comment on #2374 cites a gfx1036 measurement of the bit-15 rule for SDWA v_cvt_f16_u16/i16 and SDWA u16/i16 compares (boykopovar/AnyPS5#19592), which I did not repeat.

AI use: Claude Code (Claude Opus 5.5) wrote the hardware sweep, found this with it, wrote the change and the tests, and ran everything above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:5516614110 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3355). Originally posted by [Lyrnc](https://github.com/Lyrnc) on 2026-11-26T20:18:33Z. --- ## What was wrong VOP3 `abs` and `neg` on a 16-bit **integer** source act on its bit 15, the place of a sign bit: `abs` clears it, `neg` flips it, both set it. There is no integer negate or absolute value. `main` handled this three ways, all different from the hardware: 1. `v_cvt_f16_u16` and `v_cvt_f16_i16` ignored the modifiers: the unmodified integer was converted, with no message. 2. The u16/i16 compares (`v_cmp_*_u16`, `v_cmp_*_i16`) ignored them too. 3. The 16-bit integer operations (`v_add_nc_u16`, `v_sub_nc_u16`, `v_mul_lo_u16`, the 16-bit shifts, min and max) refused them ("modifiers on a 16-bit integer operation"). Examples, v0 = `0x0BAD_F00D` before (the high half is kept): | Instruction, inputs | gfx1036 | `main` | |---|---|---| | `v_cvt_f16_u16_e64 v0, -v1`, v1 = `0x0000_0000` | `0x0BAD_7800` (0x8000 = 32768.0) | `0x0BAD_0000` | | `v_cvt_f16_i16_e64 v0, \|v1\|`, v1 = `0x007F_FFFF` | `0x0BAD_7800` (0x7fff) | `0x0BAD_BC00` (-1.0) | | `v_cvt_f16_i16_e64 v0, -v1`, v1 = `0x0000_0001` | `0x0BAD_F800` (0x8001 = -32767, rounded) | `0x0BAD_3C00` (1.0) | | `v_add_nc_u16_e64 v0, -v1, v2`, v1 = `0x0000_0000`, v2 = `0xB8D1_B717` | `0x0BAD_3717` (0x8000 + 0xb717) | refused | | `v_max_i16_e64 v0, -v1, v2`, v1 = `0x0000_0001`, v2 = `0x477F_EFFF` | `0x0BAD_EFFF` (max(-32767, -4097)) | refused | | `v_cmp_lt_u16_e64 s20, -v1, v2`, v1 = `0x0000_0000`, v2 = `0x0000_000A` | false (0x8000 < 10) | true (0 < 10) | | `v_cmp_lt_i16_e64 s20, \|v1\|, v2`, v1 = `0x0000_8000`, v2 = `0x0000_0000` | false (0 < 0) | true (-32768 < 0) | This settles the open question of #2374 (closed, "evidence needed"), which lowered `neg` on these operations as a two's-complement negation: on RDNA2 it is the bit-15 flip that a comment there predicted from the other measured integer forms (`-v1 + v2` of 0 and 10 is `0x800a`, of 0x8000 and 0 it is 0). ## What changed - `Lower::int16_mods(inst, k, x)` applies `abs` / `neg` of source `k` to bit 15 of a 16-bit integer source. - `v_cvt_f16_u16` / `v_cvt_f16_i16`, the generic 16-bit integer operations and the u16/i16 compares use it, before any sign extension. - The refusal stays for `clamp` and `omod` on the 16-bit integer operations, and for `abs` / `neg` on the f16 source of `v_cvt_u16_f16` / `v_cvt_i16_f16` (#2963 lowers those). ## How it was found and measured A differential sweep of the translator against RDNA2 hardware, VOP3 conversions and 16-bit operations with every source modifier among the cases: - **Hardware:** the Radeon iGPU of a Ryzen 7 9800X3D, **gfx1036 (RDNA2)**, AMD driver 32.0.21042.62, Windows 11. The raw VOP3 words run in a HIP kernel (assembled by the driver's amd_comgr), one input row per lane, in the translator's float model (IEEE off, f32 denormals flushed, f16 kept). - **Inputs:** 640 rows of f32/f16/integer edge values and random words. - **Results**, all bit for bit against the bit-15 model: - `v_cvt_f16_u16`, `v_cvt_f16_i16` with `abs`, `neg`, both, and `neg` + `clamp`: 640 of 640 rows each (512 of 512 in a first run). - `v_add_nc_u16`, `v_sub_nc_u16`, `v_mul_lo_u16`, `v_max_u16`, `v_min_u16`, `v_max_i16`, `v_lshlrev_b16` with `neg` on either source, `abs` on either source, and both on src1: 640 of 640 rows each, where a two's-complement model fails. - `v_cmp_lt_u16`, `v_cmp_ge_u16`, `v_cmp_eq_u16`, `v_cmp_lt_i16`, `v_cmp_gt_i16`, `v_cmp_ne_i16` with `neg`, `abs` and both on either source (36 forms): 640 of 640 rows each. - A second set of 8 rows chosen for the tests (0, 1, 0x7fff, 0x8000, 0xffff, 0x8001 against 10, 0, 5, 0x7fff...): 136 of 136 results. As predicted on #2374, `-v1 + v2` of 0 and 10 is `0x800a`, and of 0x8000 and 0 it is 0. - **Translator:** the same words through `semantics_tests::program` and `lower::lower`, on the same Radeon and on an RTX 5080 (driver 610.88). On `main`, the 14 conversion forms and 36 of the 42 compare forms (all but the six without modifiers) differ from the hardware, and the 35 forms of the integer operations are refused. With this change all 85 match on both hosts, and none of the other ~3,600 cases of the sweep (VOP3 with modifiers, VOP3P, LDS, DPP16 and SDWA forms) changes on either host. This is PC RDNA2 silicon, not the console's GPU. No game data was used. ## Tests Three GPU tests in `valu_tests.rs`, each on measured rows with the gfx1036 results as the expected values: - `v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15`: both conversions with no modifier, `neg`, `abs` and both, on 8 rows (low halves 0, 1, 0xffff, 0x8000, 0x8001, 0xfc00, 0x7fff, 0xff, junk in the high halves); the destination's high half is checked too. - `sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15`: 12 operation/modifier forms of 7 operations on 7 rows. - `sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15`: `v_cmp_lt_u16`, `v_cmp_lt_i16` and `v_cmp_eq_u16` with 6 modifier forms on 8 rows, through `v_cndmask_b32`. Results: - On `main`'s lowering the three tests fail, on the Radeon iGPU and on the RTX 5080: `hardware: v_cvt_f16_u16 (abs 0, neg 1) of 0x0000 = 0x0bad0000, want 0x0bad7800`; `build: Unsupported { offset: 40, what: "modifiers on a 16-bit integer operation" }`; `hardware: v_cmp_lt_u16 (abs 0b00, neg 0b01) of 0x0000, 0x000a = 1, want 0`. - With this change they pass on the RTX 5080 (driver 610.88) and on the Radeon iGPU (gfx1036, driver 32.0.21042.62; picked with a local adapter-name filter in `hardware_adapter`, not part of this PR), and on WARP, which `run_cases` runs too. - `cargo test -p victory-shader --lib -- --test-threads=1` (Windows 11, default adapter): 299 passed, 5 failed, 3 ignored. `main` `63bcca4` on this machine: 296 passed and the same 5 failed (`rect::tests::rectangles_get_their_fourth_corner`, two `stride_tests`, `synthetic_tests::gathers_at_a_level_match_the_hardware`, `tests::elements_sharing_a_row_keep_their_order`). Both runs skip `memory_tests::heap_direct_texture_reads_mark_their_heap_index`, which ends the test process with an access violation on `main` here as well. - `cargo clippy -p victory-shader --lib --tests -- -D warnings`: clean. `cargo xtask policy`: 191 files ok. The new code adds no `rustfmt` differences (the two files have the same `rustfmt --check` output as on `main`). ## Related - #2963 (abs/neg on the f16 source of `v_cvt_u16_f16` / `v_cvt_i16_f16`) changes the same refusal line the other way round: it lets the float-source conversions through and keeps refusing the integer ones. With both, only `clamp` and `omod` stay refused (`if v.clamp || v.omod != 0`); whichever lands second resolves that one line. - The op_sel fix for VOP1/VOP2 opcodes in VOP3 form (`fix/vop3-promoted-16bit-opsel`) edits `half_src` and `write_half`, not the lines here; `lower.rs` merges cleanly. Both add tests at the end of `valu_tests.rs`; keep both. ## Not tested - The console's GPU. - Whether the title's programs use these modifiers on integer sources. LLVM does not emit them there, so probably not; the value of the change is that such an encoding now means what the hardware does, or is still refused. - The SDWA forms. They reach the same paths with the same `neg`/`abs` bits; the comment on #2374 cites a gfx1036 measurement of the bit-15 rule for SDWA `v_cvt_f16_u16`/`i16` and SDWA u16/i16 compares (boykopovar/AnyPS5#19592), which I did not repeat. AI use: Claude Code (Claude Opus 5.5) wrote the hardware sweep, found this with it, wrote the change and the tests, and ran everything above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dukestar69 commented 2026-11-26 20:30:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T20:30:45Z.

Review: APPROVED


LGTM — verified on RTX 5090 and VICTORY_WARP=1 (Windows / D3D12) against origin/main (63bcca4).

  • Applying abs (clear bit 15) and neg (toggle bit 15) on 16-bit integer sources across v_cvt_f16_{u16,i16}, 16-bit integer ALU ops, and 16-bit integer compares matches RDNA2 hardware behavior cleanly on both RTX 5090 and WARP.
  • cargo test -p victory-shader --lib take_abs_and_neg_on_bit_15 -- --test-threads=1: 3 passed, 0 failed on RTX 5090 and 3 passed, 0 failed on VICTORY_WARP=1.
  • cargo clippy -p victory-shader --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6080184907 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3355#pullrequestreview-6080184907). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T20:30:45Z. **Review:** APPROVED --- LGTM — verified on RTX 5090 and `VICTORY_WARP=1` (Windows / D3D12) against `origin/main` (`63bcca4`). - Applying `abs` (clear bit 15) and `neg` (toggle bit 15) on 16-bit integer sources across `v_cvt_f16_{u16,i16}`, 16-bit integer ALU ops, and 16-bit integer compares matches RDNA2 hardware behavior cleanly on both RTX 5090 and WARP. - `cargo test -p victory-shader --lib take_abs_and_neg_on_bit_15 -- --test-threads=1`: 3 passed, 0 failed on RTX 5090 and 3 passed, 0 failed on `VICTORY_WARP=1`. - `cargo clippy -p victory-shader --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
fuzeofficlal commented 2026-11-26 20:40:03 +00:00 (Migrated from github.com)

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

Review: APPROVED


LGTM — int16_mods cleanly applies abs (clear bit 15) before neg (flip bit 15) after half_src's 0xFFFF mask, without affecting float sources or leaking high-half bits.

Verified

  • crates/victory-shader/src/emit/lower.rs (6837-6856, 7077, 7127-7155, 8028): all 16-bit integer conversions (v_cvt_f16_{u16,i16}), 16-bit integer ops, and u16/i16 compares mask to the selected 16 bits via half_src first, apply int16_mods, and then sign- or zero-extend, while keeping clamp/omod and v_cvt_{u16,i16}_f16 float-source modifiers refused.
  • crates/victory-shader/src/emit/lower.rs size: 521,856 bytes (under the 524,288-byte limit).
  • cargo clippy --locked -p victory-shader --all-targets -- -D warnings (default & --all-features): clean.
  • rustfmt --edition 2024: clean on all PR-touched hunks in both lower.rs and valu_tests.rs.
  • emit::valu_tests (RTX 5090 + WARP via run_cases): 38 passed, 0 failed, including all three new tests (v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15, sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15, sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15).

Minor non-blocking note

  • Test coverage focuses on standard low-half VOP3 encodings (op_sel = 0), leaving op_sel = 1, v_cmpx_*_{u16,i16}, SDWA, and right shifts untested directly (and abs on the v_lshlrev_b16 shift count only reads bits 3:0 so a dropped modifier there wouldn't show up in that one row).
<!-- greyfinch-sync:Marvisak/VIctory:review:6080279296 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3355#pullrequestreview-6080279296). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T20:40:03Z. **Review:** APPROVED --- LGTM — `int16_mods` cleanly applies `abs` (clear bit 15) before `neg` (flip bit 15) after `half_src`'s `0xFFFF` mask, without affecting float sources or leaking high-half bits. ### Verified - `crates/victory-shader/src/emit/lower.rs` (`6837-6856`, `7077`, `7127-7155`, `8028`): all 16-bit integer conversions (`v_cvt_f16_{u16,i16}`), 16-bit integer ops, and `u16`/`i16` compares mask to the selected 16 bits via `half_src` first, apply `int16_mods`, and then sign- or zero-extend, while keeping `clamp`/`omod` and `v_cvt_{u16,i16}_f16` float-source modifiers refused. - `crates/victory-shader/src/emit/lower.rs` size: **521,856 bytes** (under the 524,288-byte limit). - `cargo clippy --locked -p victory-shader --all-targets -- -D warnings` (default & `--all-features`): clean. - `rustfmt --edition 2024`: clean on all PR-touched hunks in both `lower.rs` and `valu_tests.rs`. - `emit::valu_tests` (RTX 5090 + WARP via `run_cases`): **38 passed, 0 failed**, including all three new tests (`v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15`, `sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15`, `sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15`). ### Minor non-blocking note - Test coverage focuses on standard low-half VOP3 encodings (`op_sel = 0`), leaving `op_sel = 1`, `v_cmpx_*_{u16,i16}`, SDWA, and right shifts untested directly (and `abs` on the `v_lshlrev_b16` shift count only reads bits `3:0` so a dropped modifier there wouldn't show up in that one row).
Jackster commented 2026-11-26 22:36:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Jackster on 2026-11-26T22:36:57Z.


Windows 11, 63bcca4 + this PR, Radeon RX 7900 XTX (hardware backend):

  • cargo test -p victory-shader --lib --features host sixteen_bit_: 3 passed (4.08 s) — v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15, sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15, sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15.
  • cargo clippy -p victory-shader --all-targets -- -D warnings: clean.

These go through run_cases, so the results agree on both the hardware backend and WARP. Synthetic only. AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7204835859 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3355#issuecomment-7204835859). Originally posted by [Jackster](https://github.com/Jackster) on 2026-11-26T22:36:57Z. --- Windows 11, `63bcca4` + this PR, Radeon RX 7900 XTX (hardware backend): - `cargo test -p victory-shader --lib --features host sixteen_bit_`: 3 passed (4.08 s) — `v_cvt_f16_u16_and_i16_take_abs_and_neg_on_bit_15`, `sixteen_bit_integer_operations_take_abs_and_neg_on_bit_15`, `sixteen_bit_integer_compares_take_abs_and_neg_on_bit_15`. - `cargo clippy -p victory-shader --all-targets -- -D warnings`: clean. These go through `run_cases`, so the results agree on both the hardware backend and WARP. Synthetic only. AI-assisted.
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/3355:upstream-pr/3355'
git switch 'upstream-pr/3355'

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