summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-10-30 15:18:57 +0100
committerSamuel Pitoiset <[email protected]>2018-10-31 09:21:28 +0100
commita9a56f47f883018922a404f908325996718854b8 (patch)
treee95f2c8a7c1701c8b7318d8341cad1ba488e3d4a
parente60ab66e3364c6ec56c058e3fc7fc3b3cb5f20dc (diff)
radv: use pool->stride when calling radv_query_shader()
Not needed to recompute the stride. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/amd/vulkan/radv_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 5a326c9df54..318d6c7afee 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -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;