[PATCH] dxva2: Remove AYUV from accepted input formats.

Nikolay Sivov nsivov at codeweavers.com
Fri Oct 29 07:18:26 CDT 2021


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>
---
 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);
 
-- 
2.33.0




More information about the wine-devel mailing list