Module: Mesa Branch: main Commit: 191ae5193c8f77bcd4e3c34749046f38d480a00c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=191ae5193c8f77bcd4e3c34749046f38d480a00c
Author: Mike Blumenkrantz <[email protected]> Date: Thu Jun 10 06:20:35 2021 -0400 zink: simplify a bitmask init Reviewed-by: Hoe Hao Cheng <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12532> --- 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;
