mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radv: Return VK_NOT_READY if the query results are not available.
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Fixes: 8475a14302 ("radv: Implement pipeline statistics queries.")
Reviewed-by: Fredrik Höglund <fredrik@kde.org>
This commit is contained in:
parent
2dacb727c2
commit
0763453291
1 changed files with 6 additions and 0 deletions
|
|
@ -910,6 +910,12 @@ VkResult radv_GetQueryPoolResults(
|
|||
break;
|
||||
}
|
||||
case VK_QUERY_TYPE_PIPELINE_STATISTICS: {
|
||||
if (!available && !(flags & VK_QUERY_RESULT_PARTIAL_BIT)) {
|
||||
result = VK_NOT_READY;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
const uint64_t *start = (uint64_t*)src;
|
||||
const uint64_t *stop = (uint64_t*)(src + pipelinestat_block_size);
|
||||
if (flags & VK_QUERY_RESULT_64_BIT) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue