hwcontext_d3d11va: allocate staging texture lazily
authorwm4 <nfxjfg@googlemail.com>
Thu, 22 Jun 2017 12:52:55 +0000 (14:52 +0200)
committerwm4 <nfxjfg@googlemail.com>
Tue, 27 Jun 2017 16:05:02 +0000 (18:05 +0200)
commit6f5ff3269b12776a32b12887128ba034ad86e08b
treee757e976175c742a3b5a651dac594803c3311f07
parent1509d739a036b9838e12f28dac9f09ac37bc3928
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.

Merges Libav commit 98d73e4174333b37d961b79e1182be5a02156c02.

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