diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-15 10:55:05 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-20 11:18:20 +0100 |
commit | bc92ed04ac79e29f890cf9f24761b0a7eab7b9ed (patch) | |
tree | 12dceb589b3ac9828ce831817634f74b7d2a5e42 /src/amd | |
parent | cf54ea155eb408a37a27ab61a8315d857cd0250f (diff) |
radv: do not add the query pool BO to the list in vkCmdEndQuery()
As per the spec, the query identified by queryPool and query
must currently be active. Applications have to call vkCmdBeginQuery()
before, and thus the query pool BO will already be in the list.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 6a80740ce02..5dc88af8f84 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -1125,7 +1125,9 @@ void radv_CmdEndQuery( uint64_t avail_va = va + pool->availability_offset + 4 * query; va += pool->stride * query; - radv_cs_add_buffer(cmd_buffer->device->ws, cs, pool->bo, 8); + /* Do not need to add the pool BO to the list because the query must + * currently be active, which means the BO is already in the list. + */ switch (pool->type) { case VK_QUERY_TYPE_OCCLUSION: |