summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-11 12:01:20 -0800
committerJason Ekstrand <[email protected]>2015-11-23 11:02:15 -0800
commit042fa75e48118e4d7643e1f42b5a983df1274acb (patch)
treecd2daa069228940f5698c2da8727f6c637911906 /src
parent1417f6a216b46dbbaa1bfe0cef97e2b4a48224c0 (diff)
nir/lower_tex: Set the dest_type for txs instructions
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/nir_lower_tex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_tex.c b/src/glsl/nir/nir_lower_tex.c
index 21ed1032a0b..6dea8377c28 100644
--- a/src/glsl/nir/nir_lower_tex.c
+++ b/src/glsl/nir/nir_lower_tex.c
@@ -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));