Mesa (main): zink: correct type of flags to flush

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 16 13:15:56 UTC 2021


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jun 16 01:49:25 2021 -0700

zink: correct type of flags to flush

This type is unsigned in the prototype, so this produces a warning on
MSVC.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11380>

---

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

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index dabb6f0370d..51833b7177c 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -2374,7 +2374,7 @@ equals_gfx_program(const void *a, const void *b)
 static void
 zink_flush(struct pipe_context *pctx,
            struct pipe_fence_handle **pfence,
-           enum pipe_flush_flags flags)
+           unsigned flags)
 {
    struct zink_context *ctx = zink_context(pctx);
    bool deferred = flags & PIPE_FLUSH_DEFERRED;



More information about the mesa-commit mailing list