[Mesa-dev] [PATCH 09/11] nir/lower_tex: Set the dest_type for txs instructions

Iago Toral itoral at igalia.com
Fri Nov 13 05:28:12 PST 2015


Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Wed, 2015-11-11 at 17:26 -0800, Jason Ekstrand wrote:
> ---
>  src/glsl/nir/nir_lower_tex.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/glsl/nir/nir_lower_tex.c b/src/glsl/nir/nir_lower_tex.c
> index 21ed103..6dea837 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));




More information about the mesa-dev mailing list