Skip to content

Commit

Permalink
win: osr: Fix GPU mutex logic (see #2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
reitowo authored and magreenblatt committed Apr 29, 2024
1 parent fe5b0dd commit d666ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch/patches/osr_win_remove_keyed_mutex_2575.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d666ec5

Please sign in to comment.