nir: Increase tex opcode bits from 5 to 6 in nir_instr_set

We are already at our limit of 31 texture opcodes, and cannot add any
more without expanding the opcode hashing in nir_instr_set.  Thankfully,
it's at 29 bits, so adding one here is possible still.

Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40833>
This commit is contained in:
Kenneth Graunke 2026-03-25 02:04:06 -07:00 committed by Marge Bot
parent 73701c305e
commit 0c0fea1cdb

View file

@ -264,7 +264,7 @@ pack_tex(const nir_tex_instr *instr)
bit += bits; \
} while (0)
PACK(instr->op, 5);
PACK(instr->op, 6);
PACK(instr->num_srcs, 5);
PACK(instr->sampler_dim, 4);
PACK(instr->coord_components, 3);