Mesa (main): zink: fix program init flag

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 25 03:24:30 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Aug 24 17:59:44 2021 -0400

zink: fix program init flag

this was accidentally !! instead of ! as intended

Fixes: c4702204bc3 ("zink: optimize shader recalc")

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12535>

---

 src/gallium/drivers/zink/zink_program.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c
index f0e12314b68..4fa238c050e 100644
--- a/src/gallium/drivers/zink/zink_program.c
+++ b/src/gallium/drivers/zink/zink_program.c
@@ -280,7 +280,7 @@ update_shader_modules(struct zink_context *ctx, struct zink_gfx_program *prog)
 {
    bool hash_changed = false;
    bool default_variants = true;
-   bool first = !!prog->modules[PIPE_SHADER_VERTEX];
+   bool first = !prog->modules[PIPE_SHADER_VERTEX];
    u_foreach_bit(pstage, ctx->dirty_shader_stages & prog->stages_present) {
       assert(prog->shaders[pstage]);
       struct zink_shader_module *zm = get_shader_module_for_stage(ctx, prog->shaders[pstage], prog);



More information about the mesa-commit mailing list