[vlc-commits] hw:d3d11: never use a texture with slices for the video processor output

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


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Nov 23 13:00:32 2017 +0100| [95144797259bd8fb92783ed28e31f06bd59b7145] | committer: Steve Lhomme

hw:d3d11: never use a texture with slices for the video processor output

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

 modules/hw/d3d11/d3d11_deinterlace.c | 1 -
 modules/hw/d3d11/d3d11_filters.c     | 4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/hw/d3d11/d3d11_deinterlace.c b/modules/hw/d3d11/d3d11_deinterlace.c
index 662ac7a3fa..8c87ad5261 100644
--- a/modules/hw/d3d11/d3d11_deinterlace.c
+++ b/modules/hw/d3d11/d3d11_deinterlace.c
@@ -504,7 +504,6 @@ int D3D11OpenDeinterlace(vlc_object_t *obj)
 
     D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC outDesc = {
         .ViewDimension = D3D11_VPOV_DIMENSION_TEXTURE2D,
-        .Texture2D.MipSlice = 0,
     };
 
     hr = ID3D11VideoDevice_CreateVideoProcessorOutputView(sys->d3dviddev,
diff --git a/modules/hw/d3d11/d3d11_filters.c b/modules/hw/d3d11/d3d11_filters.c
index 1b83f8f68f..f3e25c47c4 100644
--- a/modules/hw/d3d11/d3d11_filters.c
+++ b/modules/hw/d3d11/d3d11_filters.c
@@ -525,9 +525,7 @@ static int D3D11OpenAdjust(vlc_object_t *obj)
     }
 
     D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC outDesc = {
-        .ViewDimension = D3D11_VPOV_DIMENSION_TEXTURE2DARRAY,
-        .Texture2DArray.MipSlice = 0,
-        .Texture2DArray.ArraySize = 1,
+        .ViewDimension = D3D11_VPOV_DIMENSION_TEXTURE2D,
     };
 
     D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC inDesc = {



More information about the vlc-commits mailing list