radv: Use VK_WHOLE_SIZE for the query buffer bindings.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 10 Apr 2017 19:46:07 +0000 (21:46 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 11 Apr 2017 07:33:17 +0000 (09:33 +0200)
The buffer sizes are specified just a few lines earlier, so don't
repeat ourselves.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_query.c

index 2e637fc3dedb1f4037417b617944da940689640c..b04fc175711fdd81a668ab7d4a023040bedca261 100644 (file)
@@ -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);