st/va: add support for RGBX and BGRX in VPP
authorJulien Isorce <j.isorce@samsung.com>
Fri, 6 Nov 2015 09:45:22 +0000 (09:45 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Fri, 6 Nov 2015 17:33:45 +0000 (17:33 +0000)
commitcc1e5c972eff8c774c93c8dc51d89b550d00633e
tree01d95b51ea3d7ebd7f7cb735e2f4a7284ccd15ed
parent42a5e143a8d58a0ad15dd5747449eb4b57c87177
st/va: add support for RGBX and BGRX in VPP

Before it was only possible to convert a NV12 surface to
RGBA or BGRA. This patch uses the same post processing
function, "handleVAProcPipelineParameterBufferType", but
add definitions for RGBX and BGRX.

This patch also makes vlVaQuerySurfaceAttributes more generic
to avoid copy and pasting the same lines.

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Christian K<C3><B6>nig <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/va/picture.c
src/gallium/state_trackers/va/surface.c