[vlc-commits] direct3d11: only lock the picture if it's plane based
Steve Lhomme
git at videolan.org
Tue Feb 20 10:03:26 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 19 12:37:04 2018 +0100| [aa34285ab61f6862f61b35995b3d26fc46b03a5b] | committer: Hugo Beauzée-Luyssen
direct3d11: only lock the picture if it's plane based
(cherry picked from commit 3c68fead20d1680aac5dc557250c3ff2b7fa298d)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=aa34285ab61f6862f61b35995b3d26fc46b03a5b
---
modules/video_output/win32/direct3d11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index c8d1092507..f9b90e4c91 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -661,7 +661,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
.picture = pictures,
.picture_count = pool_size,
};
- if (vd->info.is_slow) {
+ if (vd->info.is_slow && !is_d3d11_opaque(surface_fmt.i_chroma)) {
pool_cfg.lock = Direct3D11MapPoolTexture;
//pool_cfg.unlock = Direct3D11UnmapPoolTexture;
}
More information about the vlc-commits
mailing list