mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
23beffadea
commit
3d6fe93382
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue