[vlc-commits] d3d11va: fill the whole array

Steve Lhomme git at videolan.org
Mon Feb 12 17:14:25 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 12 14:23:44 2018 +0100| [7ef17556541fbaea370518ef94b03a4dd3770af7] | committer: Steve Lhomme

d3d11va: fill the whole array

Even though there's no real DXGI format that uses 3 resource views.

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

 modules/codec/avcodec/d3d11va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index d38b59ad3a..ac6d6bce59 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -847,7 +847,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id,
 
             if (texDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE)
             {
-                ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture, p_texture};
+                ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture, p_texture, p_texture};
                 AllocateShaderView(VLC_OBJECT(va), sys->d3d_dev.d3ddevice, textureFmt, textures, surface_idx,
                                    &sys->resourceView[surface_idx * D3D11_MAX_SHADER_VIEW]);
             }



More information about the vlc-commits mailing list