st/va: also honors interlaced preference when providing a video format
authorJulien Isorce <j.isorce@samsung.com>
Sat, 3 Sep 2016 08:10:21 +0000 (09:10 +0100)
committerJulien Isorce <j.isorce@samsung.com>
Mon, 12 Sep 2016 21:17:40 +0000 (22:17 +0100)
commitbf901a2f8c8954e55a3eebc6cd1b725f18802012
treeeb0d52c5efbe3ceeec5e677d4e23e86c88386392
parent3f3640c86cd850d7d85fe83f102634af92aa894e
st/va: also honors interlaced preference when providing a video format

This fixes a crash when using the prefered video format with vaapisink
on Nvidia hardwares.
Also caught by the following assert:
  nouveau_vp3_video.c:91: Assertion `templat->interlaced' failed.

TEST= gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12 ! vaapisink

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Tested-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tested-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/surface.c