mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
elk: don't support frontfacing ternary optimization on != 32bit
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
(cherry picked from commit 4dfedcca45)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40979>
This commit is contained in:
parent
eb2cffbde4
commit
0e1922550d
2 changed files with 4 additions and 1 deletions
|
|
@ -614,7 +614,7 @@
|
|||
"description": "elk: don't support frontfacing ternary optimization on != 32bit",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -545,6 +545,9 @@ optimize_frontfacing_ternary(nir_to_elk_state &ntb,
|
|||
const intel_device_info *devinfo = ntb.devinfo;
|
||||
elk_fs_visitor &s = ntb.s;
|
||||
|
||||
if (instr->def.bit_size != 32)
|
||||
return false;
|
||||
|
||||
nir_intrinsic_instr *src0 = nir_src_as_intrinsic(instr->src[0].src);
|
||||
if (src0 == NULL || src0->intrinsic != nir_intrinsic_load_front_face)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue