From 039ed2de94d027cce6f7ac6e6af8090937eeb929 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 30 Aug 2021 11:08:00 -0400 Subject: [PATCH] zink: always use type size for query result copy stride 0 should be legal here since this is only copying 1 result at a time, but some drivers can't withstand the awesome power of zero strides, so just be safe and pass the type size Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index 8b8d1cc..636fbc2 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -563,7 +563,7 @@ copy_pool_results_to_buffer(struct zink_context *ctx, struct zink_query *query, util_range_add(&res->base.b, &res->valid_buffer_range, offset, offset + result_size); assert(query_id < NUM_QUERIES); VKCTX(CmdCopyQueryPoolResults)(batch->state->cmdbuf, pool, query_id, num_results, res->obj->buffer, - offset, 0, flags); + offset, type_size, flags); } static void -- 2.7.4