diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-04-10 21:46:07 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-04-11 09:33:17 +0200 |
commit | 95743d5b884515017f8e03afe1a3470989903835 (patch) | |
tree | 0ee0cab11a517fef4b6b5daab846344d9e0426d4 /src/amd/vulkan/radv_query.c | |
parent | 8911dd6d1216cfb7b90df69d3576e11d4c619f31 (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |