From cf5df156224e3fb78fa8e80065dabce22900d1d8 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 8 Dec 2020 17:11:24 +0100 Subject: [PATCH] ntt: Assume that nir_tex_instr::dest_type is sized Reviewed-by: Jason Ekstrand Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index 8a48435f715..a6147252c04 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -2042,15 +2042,12 @@ ntt_emit_texture(struct ntt_compile *c, nir_tex_instr *instr) enum tgsi_return_type tex_type; switch (instr->dest_type) { case nir_type_float32: - case nir_type_float: tex_type = TGSI_RETURN_TYPE_FLOAT; break; case nir_type_int32: - case nir_type_int: tex_type = TGSI_RETURN_TYPE_SINT; break; case nir_type_uint32: - case nir_type_uint: tex_type = TGSI_RETURN_TYPE_UINT; break; default: