From 95743d5b884515017f8e03afe1a3470989903835 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Mon, 10 Apr 2017 21:46:07 +0200 Subject: [PATCH] radv: Use VK_WHOLE_SIZE for the query buffer bindings. The buffer sizes are specified just a few lines earlier, so don't repeat ourselves. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 2e637fc..b04fc17 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -411,7 +411,7 @@ static void occlusion_query_shader(struct radv_cmd_buffer *cmd_buffer, .pBufferInfo = &(VkDescriptorBufferInfo) { .buffer = radv_buffer_to_handle(&dst_buffer), .offset = 0, - .range = dst_stride * count + .range = VK_WHOLE_SIZE } }, { @@ -424,7 +424,7 @@ static void occlusion_query_shader(struct radv_cmd_buffer *cmd_buffer, .pBufferInfo = &(VkDescriptorBufferInfo) { .buffer = radv_buffer_to_handle(&src_buffer), .offset = 0, - .range = stride * count + .range = VK_WHOLE_SIZE } } }, 0, NULL); -- 2.7.4