From 60bb3fec54f1eccbe0f43ba61d02a78fb883347b Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Mon, 11 Jan 2021 15:31:17 +0100 Subject: [PATCH] st/atifs: Use sized types for nir_tex_instr::dest_type Reviewed-by: Jason Ekstrand Part-of: --- src/mesa/state_tracker/st_atifs_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atifs_to_nir.c b/src/mesa/state_tracker/st_atifs_to_nir.c index 34431e6a58b..225fb54425d 100644 --- a/src/mesa/state_tracker/st_atifs_to_nir.c +++ b/src/mesa/state_tracker/st_atifs_to_nir.c @@ -361,7 +361,7 @@ compile_setupinst(struct st_translate *t, nir_tex_instr *tex = nir_tex_instr_create(t->b->shader, 3); tex->op = nir_texop_tex; tex->sampler_dim = glsl_get_sampler_dim(tex_var->type); - tex->dest_type = nir_type_float; + tex->dest_type = nir_type_float32; tex->coord_components = glsl_get_sampler_dim_coordinate_components(tex->sampler_dim);