From bcd82a90c2429d3079083a4f119ce3f99f9bb764 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 16 Jun 2021 01:49:25 -0700 Subject: [PATCH] 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 Part-of: --- 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;