mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 01:10:16 +01:00
nir/tex: Use the correct return size for query_levels and lod
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
94669cb534
commit
02f03fc0f1
1 changed files with 4 additions and 1 deletions
|
|
@ -986,9 +986,12 @@ nir_tex_instr_dest_size(nir_tex_instr *instr)
|
|||
return ret;
|
||||
}
|
||||
|
||||
case nir_texop_query_levels:
|
||||
case nir_texop_lod:
|
||||
return 2;
|
||||
|
||||
case nir_texop_query_levels:
|
||||
return 1;
|
||||
|
||||
default:
|
||||
if (instr->is_shadow && instr->is_new_style_shadow)
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue