st/va: Return surface formats depending on config chroma format
authorMark Thompson <sw@jkqxz.net>
Wed, 12 Oct 2016 22:53:01 +0000 (23:53 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 14 Oct 2016 09:57:44 +0000 (11:57 +0200)
commite0604eed9f0cd6e65dde0e2d96c031b8db2c4fe5
treef7e2afa96b371b342a23dac9715d7730be5f5095
parente7c7ef36250d17dfcde3504aeafe7de7088479ba
st/va: Return surface formats depending on config chroma format

This makes the supported format actually match the configuration, and
allows the user to observe that NV12 is supported for video processing
where previously they couldn't (though it did always work if they
blindly tried to use it anyway).

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/surface.c