[vlc-commits] direct3d11: the large decoder pool is for d3d11va
Steve Lhomme
git at videolan.org
Sun Oct 9 10:46:25 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Oct 4 16:08:46 2016 +0200| [5809023d5893d6262ce634df6e6af7a33cbee2b3] | committer: Jean-Baptiste Kempf
direct3d11: the large decoder pool is for d3d11va
* make sure it has BIND_DECODER
* doesn't need BIND_SHADER_RESOURCE
* doesn't need CPU read/write
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5809023d5893d6262ce634df6e6af7a33cbee2b3
---
modules/video_output/win32/direct3d11.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 08eb069..3167e60 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -577,9 +577,9 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
texDesc.Format = vd->sys->picQuadConfig.textureFormat;
texDesc.SampleDesc.Count = 1;
texDesc.MiscFlags = 0; //D3D11_RESOURCE_MISC_SHARED;
- texDesc.Usage = D3D11_USAGE_DYNAMIC;
- texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
- texDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
+ texDesc.Usage = D3D11_USAGE_DEFAULT;
+ texDesc.BindFlags = D3D11_BIND_DECODER;
+ texDesc.CPUAccessFlags = 0;
texDesc.ArraySize = pool_size;
More information about the vlc-commits
mailing list