etnaviv: nir: lower extract byte/word

Fixes e.g. 'Unhandled ALU op: extract_u16' seen with deqp on gc7000.

Cc: 22.3 mesa-stable
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19776>
(cherry picked from commit e244b0f8b2)
This commit is contained in:
Christian Gmeiner 2022-11-15 13:14:15 +01:00 committed by Eric Engestrom
parent 8090e45618
commit 1e46b971c9
2 changed files with 3 additions and 1 deletions

View file

@ -418,7 +418,7 @@
"description": "etnaviv: nir: lower extract byte/word",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -53,6 +53,8 @@ etna_compiler_create(const char *renderer, const struct etna_specs *specs)
.lower_insert_byte = true,
.lower_insert_word = true,
.lower_fdiv = true, /* !specs->has_new_transcendentals */
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_fsign = !specs->has_sign_floor_ceil,
.lower_ffloor = !specs->has_sign_floor_ceil,
.lower_fceil = !specs->has_sign_floor_ceil,