zink: simplify a bitmask init

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12532>
This commit is contained in:
Mike Blumenkrantz
2021-06-10 06:20:35 -04:00
parent 5f3cb4c490
commit 191ae5193c
+1 -1
View File
@@ -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;