projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1417f6a
)
nir/lower_tex: Set the dest_type for txs instructions
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 11 Nov 2015 20:01:20 +0000
(12:01 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 23 Nov 2015 19:02:15 +0000
(11:02 -0800)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/nir/nir_lower_tex.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_lower_tex.c
b/src/glsl/nir/nir_lower_tex.c
index 21ed1032a0b1890eb960dee91ad5bd30481aa2ba..6dea8377c28d7e9efa1de125859c58db30cdb406 100644
(file)
--- 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));