[vlc-commits] hw:d3d11: allow GPU to CPU conversion as long as the visible height is the same

Steve Lhomme git at videolan.org
Wed Feb 21 12:20:49 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Dec  6 14:47:54 2017 +0100| [b6a4a1b677e877acc595dfdda90226eba00327b6] | committer: Steve Lhomme

hw:d3d11: allow GPU to CPU conversion as long as the visible height is the same

They may have different padding but in the end the amount copied is compatible.
The width still needs to be the same.

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

 modules/hw/d3d11/d3d11_surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 07d20519e3..f6b59df86c 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -694,7 +694,7 @@ int D3D11OpenConverter( vlc_object_t *obj )
          p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_BGRA )
         return VLC_EGENERIC;
 
-    if ( p_filter->fmt_in.video.i_height != p_filter->fmt_out.video.i_height
+    if ( p_filter->fmt_in.video.i_visible_height != p_filter->fmt_out.video.i_visible_height
          || p_filter->fmt_in.video.i_width != p_filter->fmt_out.video.i_width )
         return VLC_EGENERIC;
 



More information about the vlc-commits mailing list