[Mesa-dev] [PATCH 08/29] nir/lower_tex: fix get_texture_size() to use sized types
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Mon Mar 21 12:05:47 UTC 2016
From: Iago Toral Quiroga <itoral at igalia.com>
---
src/compiler/nir/nir_lower_tex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c
index a58385a..8c45faa 100644
--- a/src/compiler/nir/nir_lower_tex.c
+++ b/src/compiler/nir/nir_lower_tex.c
@@ -134,7 +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->texture_index = tex->texture_index;
- txs->dest_type = nir_type_int;
+ txs->dest_type = nir_type_int32;
/* only single src, the lod: */
txs->src[0].src = nir_src_for_ssa(nir_imm_int(b, 0));
--
2.5.0
More information about the mesa-dev
mailing list