[vlc-commits] direct3d11: don't do extra padding for the decoder

Steve Lhomme git at videolan.org
Tue Jul 28 16:30:07 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 28 14:43:45 2020 +0200| [036abd74e6abc2d33dfe824ff0706683e000d839] | committer: Steve Lhomme

direct3d11: don't do extra padding for the decoder

We no longer control the padding of the decoder, and we receive video_format_t
with the proper decoder padding anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=036abd74e6abc2d33dfe824ff0706683e000d839
---

 modules/video_output/win32/direct3d11.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index f776aa9f72..ea4107b0f5 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -809,12 +809,6 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmtp, vlc_video_co
     /* adjust the decoder sizes to have proper padding */
     sys->picQuad.i_width  = fmt.i_width;
     sys->picQuad.i_height = fmt.i_height;
-    if (!sys->legacy_shader && is_d3d11_opaque(fmt.i_chroma))
-    {
-        sys->picQuad.i_width  = (sys->picQuad.i_width  + 0x7F) & ~0x7F;
-        sys->picQuad.i_height = (sys->picQuad.i_height + 0x7F) & ~0x7F;
-    }
-    else
     if ( sys->picQuad.textureFormat->formatTexture != DXGI_FORMAT_R8G8B8A8_UNORM &&
          sys->picQuad.textureFormat->formatTexture != DXGI_FORMAT_B5G6R5_UNORM )
     {



More information about the vlc-commits mailing list