From 0ce7c4a7c98122996af849b0f1199da13cd7efa2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 16 Dec 2020 10:47:06 -0800 Subject: [PATCH] gallivm: Use the proper enum for the texture target bitfield. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This gets you nice output in gdb when trying to figure out why your 2D sample shader is hitting the cube paths. Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_sample.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.h b/src/gallium/auxiliary/gallivm/lp_bld_sample.h index a91e9c2ddbc..ed85f86258e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.h @@ -169,7 +169,7 @@ struct lp_static_texture_state unsigned swizzle_a:3; /* pipe_texture's state */ - unsigned target:4; /**< PIPE_TEXTURE_* */ + enum pipe_texture_target target:4; /**< PIPE_TEXTURE_* */ unsigned pot_width:1; /**< is the width a power of two? */ unsigned pot_height:1; unsigned pot_depth:1;