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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8118>
This commit is contained in:
Eric Anholt 2020-12-16 10:47:06 -08:00 committed by Marge Bot
parent 0a179bb6e2
commit 0ce7c4a7c9

View file

@ -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;