radv: use pool->stride when calling radv_query_shader()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 30 Oct 2018 14:18:57 +0000 (15:18 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 Oct 2018 08:21:28 +0000 (09:21 +0100)
Not needed to recompute the stride.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_query.c

index 5a326c9df54c630f373ac69728b428abce746829..318d6c7afee3550f69d4d95f26873e52b9dcfdcc 100644 (file)
@@ -1050,7 +1050,7 @@ void radv_CmdCopyQueryPoolResults(
                radv_query_shader(cmd_buffer, &cmd_buffer->device->meta_state.query.occlusion_query_pipeline,
                                  pool->bo, dst_buffer->bo, firstQuery * pool->stride,
                                  dst_buffer->offset + dstOffset,
-                                 get_max_db(cmd_buffer->device) * 16, stride,
+                                 pool->stride, stride,
                                  queryCount, flags, 0, 0);
                break;
        case VK_QUERY_TYPE_PIPELINE_STATISTICS:
@@ -1069,7 +1069,7 @@ void radv_CmdCopyQueryPoolResults(
                radv_query_shader(cmd_buffer, &cmd_buffer->device->meta_state.query.pipeline_statistics_query_pipeline,
                                  pool->bo, dst_buffer->bo, firstQuery * pool->stride,
                                  dst_buffer->offset + dstOffset,
-                                 pipelinestat_block_size * 2, stride, queryCount, flags,
+                                 pool->stride, stride, queryCount, flags,
                                  pool->pipeline_stats_mask,
                                  pool->availability_offset + 4 * firstQuery);
                break;