From ab1bc348fc9c28c6048be010daacf0e4c64ae789 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Mon, 18 Sep 2023 09:02:54 -0400 Subject: [PATCH] d3d12: Video - Relax ID3D12VideoDevice QI version for decode, process Currently asking for ID3D12VideoDevice2 for process and ID3D12VideoDevice3 for decode, which in reality they only need ID3D12VideoDevice. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9824 Part-of: --- src/gallium/drivers/d3d12/d3d12_video_screen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_video_screen.cpp b/src/gallium/drivers/d3d12/d3d12_video_screen.cpp index 0976de55953..da135e7e102 100644 --- a/src/gallium/drivers/d3d12/d3d12_video_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_video_screen.cpp @@ -1344,10 +1344,10 @@ d3d12_has_video_process_support(struct pipe_screen *pscreen, D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC& outMinSupportedInput, D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC& outMaxSupportedInput) { - ComPtr spD3D12VideoDevice; + ComPtr spD3D12VideoDevice; struct d3d12_screen *pD3D12Screen = (struct d3d12_screen *) pscreen; if (FAILED(pD3D12Screen->dev->QueryInterface(IID_PPV_ARGS(spD3D12VideoDevice.GetAddressOf())))) { - // No video encode support in underlying d3d12 device (needs ID3D12VideoDevice2) + // No video process support in underlying d3d12 device (needs ID3D12VideoDevice) return false; } @@ -1753,10 +1753,10 @@ is_d3d12_video_decode_format_supported(struct pipe_screen *screen, pipe_format format, enum pipe_video_profile profile) { - ComPtr spD3D12VideoDevice; + ComPtr spD3D12VideoDevice; struct d3d12_screen *pD3D12Screen = (struct d3d12_screen *) screen; if (FAILED(pD3D12Screen->dev->QueryInterface(IID_PPV_ARGS(spD3D12VideoDevice.GetAddressOf())))) - return false; // No video encode support in underlying d3d12 device (needs ID3D12VideoDevice3) + return false; // No video decode support in underlying d3d12 device (needs ID3D12VideoDevice) GUID decodeGUID = d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile(profile); GUID emptyGUID = {};