configure: Require LPDIRECT3DSURFACE9 for dxva2
authorMartin Storsjö <martin@martin.st>
Mon, 1 Jun 2015 09:06:08 +0000 (12:06 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 1 Jun 2015 20:04:49 +0000 (23:04 +0300)
commitff7ae4b9df6e89d99dbd5434408123b80a4f6cd7
tree9543da37b729b14bd029531bd0df6c78fa31f9f0
parent172b2cee17a3779c114ba065dd7b25dcf61e408f
configure: Require LPDIRECT3DSURFACE9 for dxva2

This fixes dxva2 detection (i.e. correctly realizes that it isn't
available) for WinRT, where dxva2api.h does exist, but these definitions
are omitted (when targeting the API subsets).

Ideally we should rather check for e.g. DXVA2_ConfigPictureDecode,
but configure might fail to find that definition due to _WIN32_WINNT
not being set to the right value during configure. (libavcodec/dxva2.h
manually overrides the _WIN32_WINNT define.)

This allows removing hardcoded --disable-dxva2 from such build
configurations.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure