From 191ae5193c8f77bcd4e3c34749046f38d480a00c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 10 Jun 2021 06:20:35 -0400 Subject: [PATCH] zink: simplify a bitmask init Reviewed-by: Hoe Hao Cheng Part-of: --- src/gallium/drivers/zink/zink_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp index 0cf9167ab7a..a76b44d7442 100644 --- a/src/gallium/drivers/zink/zink_draw.cpp +++ b/src/gallium/drivers/zink/zink_draw.cpp @@ -186,7 +186,7 @@ update_gfx_program(struct zink_context *ctx) ctx->dirty_shader_stages |= BITFIELD_BIT(PIPE_SHADER_VERTEX); ctx->last_vertex_stage_dirty = false; } - unsigned bits = u_bit_consecutive(PIPE_SHADER_VERTEX, 5); + unsigned bits = BITFIELD_MASK(PIPE_SHADER_COMPUTE); if (ctx->dirty_shader_stages & bits) { struct zink_gfx_program *prog = NULL;