win: osr: Fix GPU mutex logic (see #2575)

This commit is contained in:
reito 2024-04-29 14:59:06 +00:00 committed by Marshall Greenblatt
parent a0566e64d8
commit 0f68a0d7a3
1 changed files with 1 additions and 1 deletions

View File

@ -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