[vlc-commits] direct3d11: the RX Vega zero copy issue is fixed in drivers 24.20.14011.xxx

Steve Lhomme git at videolan.org
Mon Dec 3 17:53:31 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Dec  3 17:45:14 2018 +0100| [f18118a18479d63e9c689405f095e3a6adf144cd] | committer: Steve Lhomme

direct3d11: the RX Vega zero copy issue is fixed in drivers 24.20.14011.xxx

(cherry picked from commit 4791208a7461e21f274571ff18bd7bcee093bd57)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f18118a18479d63e9c689405f095e3a6adf144cd
---

 modules/video_output/win32/direct3d11.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 91252a5ec8..36bc09892c 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1500,7 +1500,15 @@ static bool BogusZeroCopy(vout_display_t *vd)
     case 0x687F: // RX Vega 56/64
     case 0x6863: // RX Vega Frontier Edition
     case 0x15DD: // RX Vega 8/11 (Ryzen iGPU)
-        return true;
+    {
+        struct wddm_version WDDM = {
+            .wddm         = 0,
+            .d3d_features = 0,
+            .revision     = 14011,
+            .build        = 0,
+        };
+        return D3D11CheckDriverVersion(&vd->sys->d3d_dev, GPU_MANUFACTURER_AMD, &WDDM) != VLC_SUCCESS;
+    }
     default:
         return false;
     }



More information about the vlc-commits mailing list