From 7bd41840a45a6a7ec883703e42c2d3db05b8b372 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 19 May 2023 10:21:38 +1000 Subject: [PATCH] lvp: use stage mask Reviewed-by: Brian Paul Part-of: --- src/gallium/frontends/lavapipe/lvp_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h index d59c077d33d..3d9a4512ba5 100644 --- a/src/gallium/frontends/lavapipe/lvp_private.h +++ b/src/gallium/frontends/lavapipe/lvp_private.h @@ -114,7 +114,7 @@ void __lvp_finishme(const char *file, int line, const char *format, ...) } while (0) #define LVP_SHADER_STAGES MESA_SHADER_STAGES -#define LVP_STAGE_MASK ((1 << LVP_SHADER_STAGES) - 1) +#define LVP_STAGE_MASK BITFIELD_MASK(LVP_SHADER_STAGES) #define lvp_foreach_stage(stage, stage_bits) \ for (gl_shader_stage stage, \