anv,hasvk,iris: sampler_prog_key::swizzles is only used on crocus

The field is no longer consumed by brw_complie_* and is instead handled
directly by the crocus driver.  Therefore, it's safe to leave it zero
and not even bother setting it.  This removes our reliance on the
SWIZZLE_* macros in prog_instructions.h.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24288>
This commit is contained in:
Faith Ekstrand
2023-07-21 14:52:41 -05:00
committed by Marge Bot
parent 1e29b3cee8
commit 079e8a9674
4 changed files with 5 additions and 25 deletions
+1 -2
View File
@@ -53,8 +53,7 @@
.prefix.limit_trig_input_range = screen->driconf.limit_trig_input_range
#define BRW_KEY_INIT(gen, prog_id, limit_trig_input) \
.base.program_string_id = prog_id, \
.base.limit_trig_input_range = limit_trig_input, \
.base.tex.swizzles[0 ... BRW_MAX_SAMPLERS - 1] = 0x688
.base.limit_trig_input_range = limit_trig_input
struct iris_threaded_compile_job {
struct iris_screen *screen;