d3d11decoder: Adjust alignment constraint for Xbox device

XBox doesn't seem to support 128 bytes alignment for 4K HEVC

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1339>
This commit is contained in:
Seungha Yang 2020-06-12 20:34:49 +09:00 committed by GStreamer Merge Bot
parent fe361ecc25
commit 1144cdc63a

View file

@ -680,7 +680,11 @@ gst_d3d11_decoder_open (GstD3D11Decoder * decoder, GstD3D11Codec codec,
* But... where it is? */
switch (codec) {
case GST_D3D11_CODEC_H265:
alignment = 128;
/* See directx_va_Setup() impl. in vlc */
if (!gst_d3d11_is_xbox_device (priv->device))
alignment = 128;
else
alignment = 16;
break;
default:
alignment = 16;