mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
zink: ignore compute batch when starting/ending batches
compute batches don't have queries Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8781>
This commit is contained in:
parent
8f6ffc5543
commit
f32891b159
1 changed files with 2 additions and 2 deletions
|
|
@ -81,14 +81,14 @@ zink_start_batch(struct zink_context *ctx, struct zink_batch *batch)
|
|||
if (vkBeginCommandBuffer(batch->cmdbuf, &cbbi) != VK_SUCCESS)
|
||||
debug_printf("vkBeginCommandBuffer failed\n");
|
||||
|
||||
if (!ctx->queries_disabled)
|
||||
if (!ctx->queries_disabled && batch->batch_id != ZINK_COMPUTE_BATCH_ID)
|
||||
zink_resume_queries(ctx, batch);
|
||||
}
|
||||
|
||||
void
|
||||
zink_end_batch(struct zink_context *ctx, struct zink_batch *batch)
|
||||
{
|
||||
if (!ctx->queries_disabled)
|
||||
if (!ctx->queries_disabled && batch->batch_id != ZINK_COMPUTE_BATCH_ID)
|
||||
zink_suspend_queries(ctx, batch);
|
||||
|
||||
if (vkEndCommandBuffer(batch->cmdbuf) != VK_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue