mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir/lower_tex: Set the dest_type for txs instructions
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
1417f6a216
commit
042fa75e48
1 changed files with 1 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ get_texture_size(nir_builder *b, nir_tex_instr *tex)
|
|||
txs->op = nir_texop_txs;
|
||||
txs->sampler_dim = GLSL_SAMPLER_DIM_RECT;
|
||||
txs->sampler_index = tex->sampler_index;
|
||||
txs->dest_type = nir_type_int;
|
||||
|
||||
/* only single src, the lod: */
|
||||
txs->src[0].src = nir_src_for_ssa(nir_imm_int(b, 0));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue