d3d11: Fix for UYVY/VYUY format rendering
authorSeungha Yang <seungha@centricular.com>
Thu, 1 Apr 2021 06:09:45 +0000 (15:09 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 1 Apr 2021 07:07:33 +0000 (16:07 +0900)
commit5acd08f4c1610748811c84ad4826c22092848265
tree8ba4fd88bd9c7e953287bb5cd8af5c5fc07ffbce
parent3a3c80e7be1d03f016573700053e41107d641617
d3d11: Fix for UYVY/VYUY format rendering

Don't assume that non-native DXGI formats support RTV and/or SRV.
We are mapping UYVY and VYUY formats to DXGI_FORMAT_R8G8_B8G8_UNORM
which doesn't support render target view

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2133>
sys/d3d11/gstd3d11convert.cpp
sys/d3d11/gstd3d11upload.cpp