From: Seungha Yang Date: Fri, 12 Jun 2020 11:34:49 +0000 (+0900) Subject: d3d11decoder: Adjust alignment constraint for Xbox device X-Git-Tag: 1.19.3~507^2~1755 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1144cdc63a8a4811e28c953d02869d2afc6355c8;p=platform%2Fupstream%2Fgstreamer.git d3d11decoder: Adjust alignment constraint for Xbox device XBox doesn't seem to support 128 bytes alignment for 4K HEVC Part-of: --- diff --git a/sys/d3d11/gstd3d11decoder.c b/sys/d3d11/gstd3d11decoder.c index e22c74f..3903557 100644 --- a/sys/d3d11/gstd3d11decoder.c +++ b/sys/d3d11/gstd3d11decoder.c @@ -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;