hwcontext_d3d11va: allocate staging texture lazily
authorwm4 <nfxjfg@googlemail.com>
Thu, 22 Jun 2017 12:52:55 +0000 (14:52 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 26 Jun 2017 22:23:12 +0000 (00:23 +0200)
commit98d73e4174333b37d961b79e1182be5a02156c02
tree1e12a26ad7a3cad1670f4f5aea61e31679632b46
parent086321c612185469ebb85a1887527c8915b488b7
hwcontext_d3d11va: allocate staging texture lazily

Makes dealing with formats that can not be used for staging textures
easier (DXGI_FORMAT_420_OPAQUE). It also saves memory if the staging
texture is never needed, so this is a good thing.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/hwcontext_d3d11va.c