From e92638b6bf35a15e0837df322879b64ba21dc2a0 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 29 Jul 2025 14:36:23 +0200 Subject: [PATCH] nir/opt_varyings: fix build with PRINT_RELOCATE_SLOT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: e3d122ed7b0 ("nir/opt_varyings: completely exclude mediump from type changes") Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_opt_varyings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_opt_varyings.c b/src/compiler/nir/nir_opt_varyings.c index a4a4255737c..af24e9c0a47 100644 --- a/src/compiler/nir/nir_opt_varyings.c +++ b/src/compiler/nir/nir_opt_varyings.c @@ -4246,6 +4246,8 @@ relocate_slot(struct linkage_info *linkage, struct scalar_slot *slot, } #if PRINT_RELOCATE_SLOT + unsigned bit_size = nir_intrinsic_infos[intr->intrinsic].has_dest ? intr->def.bit_size : intr->src[0].ssa->bit_size; + assert(bit_size == 16 || bit_size == 32); fprintf(stderr, "--- relocating: %s.%c%s%s -> %s.%c%s%s FS_VEC4_TYPE_%s\n",