From 0f68a0d7a3432e6f75c3729f2861df90e3066bd0 Mon Sep 17 00:00:00 2001 From: reito Date: Mon, 29 Apr 2024 14:59:06 +0000 Subject: [PATCH] win: osr: Fix GPU mutex logic (see #2575) --- patch/patches/osr_win_remove_keyed_mutex_2575.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/patches/osr_win_remove_keyed_mutex_2575.patch b/patch/patches/osr_win_remove_keyed_mutex_2575.patch index c7242135e..95c6f8bd3 100644 --- a/patch/patches/osr_win_remove_keyed_mutex_2575.patch +++ b/patch/patches/osr_win_remove_keyed_mutex_2575.patch @@ -46,7 +46,7 @@ index a7ac0f10f11e5..bb1d7dc6e9168 100644 + // once the GMB is returned from CopyRequest. So there will be no race + // condition on that texture. We can request a GMB without a keyed mutex to + // accelerate and probably prevent some driver deadlock. -+ if (format_ == PIXEL_FORMAT_ARGB) { ++ if (format_ == PIXEL_FORMAT_ARGB || format_ == PIXEL_FORMAT_ABGR) { + // This value is 'borrowed', SCANOUT_VEA_CPU_READ is probably invalid + // cause there's no real SCANOUT on Windows. We simply use this enum as a + // flag to disable mutex in the GMBFactoryDXGI because this enum is also