From 934dc7b6a07f669906be3f4059985df22822ce61 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 10 Jan 2022 09:38:43 -0800 Subject: [PATCH] d3d12: Predication fix: re-enable after restarting a batch if needed Reviewed-by: Sil Vilerino Part-of: --- src/gallium/drivers/d3d12/d3d12_batch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/d3d12/d3d12_batch.cpp b/src/gallium/drivers/d3d12/d3d12_batch.cpp index f4f67a11661..fdef349b73a 100644 --- a/src/gallium/drivers/d3d12/d3d12_batch.cpp +++ b/src/gallium/drivers/d3d12/d3d12_batch.cpp @@ -187,6 +187,8 @@ d3d12_start_batch(struct d3d12_context *ctx, struct d3d12_batch *batch) if (!ctx->queries_disabled) d3d12_resume_queries(ctx); + if (ctx->current_predication) + d3d12_enable_predication(ctx); } void