nir/tex: Use the correct return size for query_levels and lod

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Jason Ekstrand 2015-04-09 21:04:21 -07:00
parent 94669cb534
commit 02f03fc0f1

View file

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