ntt: Assume that nir_tex_instr::dest_type is sized

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7989>
This commit is contained in:
Connor Abbott 2020-12-08 17:11:24 +01:00
parent ae7a9d0585
commit cf5df15622

View file

@ -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: