From: Bas Nieuwenhuizen Date: Mon, 10 Apr 2017 19:46:07 +0000 (+0200) Subject: radv: Use VK_WHOLE_SIZE for the query buffer bindings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95743d5b884515017f8e03afe1a3470989903835;p=mesa.git 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 --- diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 2e637fc3ded..b04fc175711 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);