mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
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:
parent
ae7a9d0585
commit
cf5df15622
1 changed files with 0 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue