From e820c23216d15af403e5c8ecb8a95792240befba Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 10 Feb 2025 22:08:30 +0100 Subject: [PATCH] [util] Add new flush type for render pass boundaries --- src/util/util_flush.cpp | 1 + src/util/util_flush.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/util_flush.cpp b/src/util/util_flush.cpp index 62315b826..17d266901 100644 --- a/src/util/util_flush.cpp +++ b/src/util/util_flush.cpp @@ -45,6 +45,7 @@ namespace dxvk { return chunkCount >= minChunkCount; } + case GpuFlushType::ImplicitMediumHint: case GpuFlushType::ImplicitWeakHint: { // Aim for a higher number of chunks per submission with // a weak hint in order to avoid submitting too often. diff --git a/src/util/util_flush.h b/src/util/util_flush.h index d5c4957cf..5d593649d 100644 --- a/src/util/util_flush.h +++ b/src/util/util_flush.h @@ -18,9 +18,12 @@ namespace dxvk { /** GPU command that applications are likely to synchronize * with soon has been recorded into the command list */ ImplicitStrongHint = 2, + /** A render pass boundary is likely to occur and a flush + * should be recorded if the command list is large enough. */ + ImplicitMediumHint = 3, /** GPU commands have been recorded and a flush should be * performed if the current command list is large enough. */ - ImplicitWeakHint = 3, + ImplicitWeakHint = 4, };