From 23beffadea137f4d7ee4928f2b9d7cf98c4e811e Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 8 Dec 2020 12:41:22 +0100 Subject: [PATCH] freedreno/ir3: Handle sized tex destination types Reviewed-by: Jason Ekstrand Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 713fb20..0470cfb 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -2522,7 +2522,7 @@ emit_tex(struct ir3_context *ctx, nir_tex_instr *tex) if (opc == OPC_GETLOD) { struct ir3_instruction *factor = create_immed(b, fui(1.0 / 256)); - compile_assert(ctx, tex->dest_type == nir_type_float); + compile_assert(ctx, nir_alu_type_get_base_type(tex->dest_type) == nir_type_float); for (i = 0; i < 2; i++) { dst[i] = ir3_MUL_F(b, ir3_COV(b, dst[i], TYPE_S32, TYPE_F32), 0, factor, 0); -- 2.7.4