d3d12: Fix re-enabling predication after temporary disablement

The equal-zero vs not-equal-zero property was previously lost

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14486>
This commit is contained in:
Jesse Natalie
2022-01-10 08:56:58 -08:00
committed by Marge Bot
parent 07bf8b18b5
commit 9609387a4f
5 changed files with 21 additions and 14 deletions

View File

@@ -25,6 +25,7 @@
#include "d3d12_compiler.h"
#include "d3d12_debug.h"
#include "d3d12_format.h"
#include "d3d12_query.h"
#include "d3d12_resource.h"
#include "d3d12_screen.h"
@@ -956,8 +957,7 @@ d3d12_blit(struct pipe_context *pctx,
util_format_short_name(info->dst.resource->format));
if (!info->render_condition_enable && ctx->current_predication) {
ctx->cmdlist->SetPredication(
d3d12_resource_resource(ctx->current_predication), 0, D3D12_PREDICATION_OP_EQUAL_ZERO);
d3d12_enable_predication(ctx);
if (D3D12_DEBUG_BLIT & d3d12_debug)
debug_printf("D3D12 BLIT: Re-enable predication\n");
}