Skip to content

test(hw-oracle): pin the v_cvt_u32_f32 rows - #331

Merged
simnJS merged 1 commit into
simnJS:AnyKytyfrom
Nawid3333:test/hw-oracle-cvt-u32-rows
Nov 26, 2026
Merged

simnJS merged 1 commit into
simnJS:AnyKytyfrom
Nawid3333:test/hw-oracle-cvt-u32-rows

Conversation

@Nawid3333

@Nawid3333 Nawid3333 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Pins seven v_cvt_u32_f32 limits in kyty_shim_hw_oracle_rows, beside the v_cvt_i32_f32 rows that came in with the Kyty runner (#244). One test file changes, KytyShim/tests/HwOracle.cpp: the check takes a probe's body and rows as parameters, so both conversions go through the same check.

Input Result
NaN 0
-inf 0
-1 0
-0.5 0
+inf 0xffffffff
2^32 0xffffffff
1.5 1

The values are what the Ryzen 7600X iGPU (gfx1036) gives through HIP, in the same modes as the i32 rows (FLOAT_MODE 0xc0, IEEE 0, DX10 clamp 1). They are RDNA2 desktop measurements, not PS5 ones. This is the second acceptance point of #217, as agreed in #217 (comment); GitHub cannot compare my old fork with this repository any more, so the PR comes from a fork of this repository.

Tested

  • CI on this PR's head f3ff2cb: Shim GPU tests on lavapipe, Linux kyty, Linux asan, Linux tsan, Windows kyty and library-portability pass. On lavapipe the probes run at wave64 only, because its subgroups hold 8 lanes and the recompiler refuses a wave32 program there.
  • Windows 11 with the same change before the rebase (commit ee1f406175, based on 7de61e3): kyty_shim_hw_oracle_rows passes on the RX 9070 XT, on the Ryzen 7600X iGPU and on lavapipe (Mesa 26.2.6, LLVM 23.1.4), with the validation layer on and no VUID messages. With the expected value of 1.5 changed to 2 it fails on lavapipe, so the new rows are checked. The AMD driver build was not recorded.
  • The commit is cherry-picked unchanged onto the current head 688dbf1.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT and AMD Radeon(TM) Graphics (Ryzen 7600X iGPU, gfx1036) on Windows 11, and lavapipe in CI; this is a test-only change
  • AI-assisted: yes

🤖 Generated with Claude Code

Pin the v_cvt_u32_f32 limits beside the v_cvt_i32_f32 ones: NaN, both
infinities, -1, -0.5, 2^32 and 1.5, with the values the 7600X iGPU
(gfx1036) gives through HIP. Both probes run through one check with the
PS5 float mode at every wave size the device can run, so the f32 to
32-bit integer conversions are covered in both signednesses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nawid3333 Nawid3333 closed this Nov 26, 2026
@Nawid3333 Nawid3333 reopened this Nov 26, 2026
simnJS
simnJS previously requested changes Nov 26, 2026

@simnJS simnJS left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The completed template and replacement CI pass for this head. The desktop RDNA2 measurement and changed-expected-value check are documented in Tested.

@simnJS
simnJS dismissed their stale review November 26, 2026 16:24

CI and review checks are complete.

@simnJS simnJS left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The completed template and replacement CI pass for this head. The desktop RDNA2 measurement and changed-expected-value check are documented in Tested.

@simnJS
simnJS merged commit 90a4845 into simnJS:AnyKyty Nov 26, 2026
23 of 26 checks passed
@Nawid3333
Nawid3333 deleted the test/hw-oracle-cvt-u32-rows branch November 26, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants