Mesa (main): zink: simplify a bitmask init

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 25 22:38:31 UTC 2021


Module: Mesa
Branch: main
Commit: 191ae5193c8f77bcd4e3c34749046f38d480a00c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=191ae5193c8f77bcd4e3c34749046f38d480a00c

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Jun 10 06:20:35 2021 -0400

zink: simplify a bitmask init

Reviewed-by: Hoe Hao Cheng <haochengho12907 at gmail.com>
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;
 



More information about the mesa-commit mailing list