mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
vc4: Enable lower_umax and lower_umin
VC4 doesn't have support for UMAX and UMIN integer operations. So we should avoid algebraic optimizations that generate umax/umin ops. Fixes:8e1b75b330("nir/algebraic: optimize iand/ior of (n)eq zero") Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7083> (cherry picked from commitd5e5f72e06)
This commit is contained in:
parent
a66268d3f4
commit
732b28c8b1
2 changed files with 3 additions and 1 deletions
|
|
@ -5908,7 +5908,7 @@
|
|||
"description": "vc4: Enable lower_umax and lower_umin",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "8e1b75b330954a2e40e8ed0c04871e43120d4f4a"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2190,6 +2190,8 @@ static const nir_shader_compiler_options nir_options = {
|
|||
.lower_negate = true,
|
||||
.lower_rotate = true,
|
||||
.lower_to_scalar = true,
|
||||
.lower_umax = true,
|
||||
.lower_umin = true,
|
||||
.max_unroll_iterations = 32,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue