[Mesa-dev] [PATCH 1/4] radv: Use VK_WHOLE_SIZE for the query buffer bindings.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Apr 11 00:04:52 UTC 2017


The buffer sizes are specified just a few lines earlier, so don't
repeat ourselves.

Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
 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 86be85a5369..97b1ae6ac4e 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.12.2



More information about the mesa-dev mailing list