From 0c0fea1cdb2d77078b16183db1b8192608c90bef Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 25 Mar 2026 02:04:06 -0700 Subject: [PATCH] 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 Reviewed-by: Lionel Landwerlin Part-of: --- src/compiler/nir/nir_instr_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_instr_set.c b/src/compiler/nir/nir_instr_set.c index 60be9d92410..71b21a09bc3 100644 --- a/src/compiler/nir/nir_instr_set.c +++ b/src/compiler/nir/nir_instr_set.c @@ -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);