Nikolay Sivov : dxva2: Remove AYUV from accepted input formats.

Alexandre Julliard julliard at winehq.org
Fri Oct 29 16:29:07 CDT 2021


Module: wine
Branch: master
Commit: 2095a4132f88d1f6c17be14a43db78c45870b918
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2095a4132f88d1f6c17be14a43db78c45870b918

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Oct 29 15:18:26 2021 +0300

dxva2: Remove AYUV from accepted input formats.

It was added for completeness only, and it appears to be not universally
support on Windows via regular d3d9 API. DXVA might be using different path
to present video frames, but we don't make such distinction at the moment.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dxva2/main.c        | 3 +--
 dlls/dxva2/tests/dxva2.c | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/dxva2/main.c b/dlls/dxva2/main.c
index f91b033055c..2fab82ff476 100644
--- a/dlls/dxva2/main.c
+++ b/dlls/dxva2/main.c
@@ -381,8 +381,7 @@ static BOOL dxva_is_supported_stream_format(const DXVA2_VideoDesc *video_desc)
 {
     return video_desc->Format == D3DFMT_A8R8G8B8 ||
             video_desc->Format == D3DFMT_X8R8G8B8 ||
-            video_desc->Format == D3DFMT_YUY2 ||
-            video_desc->Format == MAKEFOURCC('A','Y','U','V');
+            video_desc->Format == D3DFMT_YUY2;
 }
 
 static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGuids(
diff --git a/dlls/dxva2/tests/dxva2.c b/dlls/dxva2/tests/dxva2.c
index 4b09e93e87a..ab0a2769bd2 100644
--- a/dlls/dxva2/tests/dxva2.c
+++ b/dlls/dxva2/tests/dxva2.c
@@ -356,7 +356,9 @@ static void test_device_manager(void)
 
         count = 0;
         hr = IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(proc_service, &video_desc, &count, &guids);
+    todo_wine_if(rt_formats[i] == MAKEFOURCC('A','Y','U','V'))
         ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+        if (FAILED(hr)) continue;
         ok(count > 0, "Unexpected device count.\n");
         CoTaskMemFree(guids);
 




More information about the wine-cvs mailing list