1
0
Fork 0

pvr, pco: Set has_f2i32_rtne to true

Set the has_f2i32_rtne shader compiler option to indicate hardware
support for it. This enables NIR's late algebraic optimization pass to
generate more efficient code for float-to-int conversions.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37680>
This commit is contained in:
Christian Gmeiner 2025-10-03 10:55:53 +02:00
parent 37507f26df
commit 553e4252ba

View file

@ -36,6 +36,7 @@ static const nir_shader_compiler_options nir_options = {
.discard_is_demote = true,
.fuse_ffma32 = true,
.has_f2i32_rtne = true,
.has_fused_comp_and_csel = true,
.instance_id_includes_base_index = true,