From 292ade3c9d2e27c6af136299656d4946910da034 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 18 Jun 2020 11:54:21 -0400 Subject: [PATCH] zink: use int assignment for vk int type this breaks 32bit builds that use -Werror=int-conversion Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_draw.c b/src/gallium/drivers/zink/zink_draw.c index 1699a7b601b..7d73a1231ea 100644 --- a/src/gallium/drivers/zink/zink_draw.c +++ b/src/gallium/drivers/zink/zink_draw.c @@ -418,7 +418,7 @@ zink_draw_vbo(struct pipe_context *pctx, counter_buffers[i] = res->buffer; counter_buffer_offsets[i] = t->counter_buffer_offset; } else - counter_buffers[i] = NULL; + counter_buffers[i] = VK_NULL_HANDLE; } screen->vk_CmdBeginTransformFeedbackEXT(batch->cmdbuf, 0, ctx->num_so_targets, counter_buffers, counter_buffer_offsets); } -- 2.30.2