aco/insert_fp_mode: don't skip setting round for fract

fract(-FLT_MIN) is < 1.0 with rtz but 1.0 with rtne.

Fixes: 7212a75c5e ("aco/insert_fp_mode: exclude some instructions that will never round")

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
(cherry picked from commit 8f4de30d05)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Georg Lehmann 2026-02-24 20:15:44 +01:00 committed by Eric Engestrom
parent f1a64582dd
commit 6c7f739b9d
2 changed files with 1 additions and 4 deletions

View file

@ -5824,7 +5824,7 @@
"description": "aco/insert_fp_mode: don't skip setting round for fract",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "7212a75c5ef38268b3b9ee332fce80043a4e4809",
"notes": null

View file

@ -233,9 +233,6 @@ instr_ignores_round_mode(const Instruction* instr)
case aco_opcode::v_rndne_f64:
case aco_opcode::v_rndne_f32:
case aco_opcode::v_rndne_f16:
case aco_opcode::v_fract_f64:
case aco_opcode::v_fract_f32:
case aco_opcode::v_fract_f16:
case aco_opcode::s_min_f32:
case aco_opcode::s_min_f16:
case aco_opcode::s_max_f32: