ntt: Handle sized tex destination types

I believe this code doesn't handle 16-bit destination types so we only
need to handle float32, etc.

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 12:42:05 +01:00
parent 23beffadea
commit 3d6fe93382

View file

@ -2041,12 +2041,15 @@ 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;