Module: Mesa Branch: master Commit: 0ce7c4a7c98122996af849b0f1199da13cd7efa2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ce7c4a7c98122996af849b0f1199da13cd7efa2
Author: Eric Anholt <[email protected]> Date: Wed Dec 16 10:47:06 2020 -0800 gallivm: Use the proper enum for the texture target bitfield. 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8118> --- 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
