st/va: add conversion for yv12 to nv12in putimage v2

Graphics / Mesa 3D Graphics Library / Mesa - Boyuan Zhang [amd.com] - 25 July 2016 06:39 UTC

For putimage call, if image format is yv12 (or IYUV with U V field swap) and surface format is nv12, then we need to convert yv12 to nv12 and then copy the converted data from image to surface. We can't use the existing logic where surface is destroyed and re-created with yv12 format.

v2 (chk): fix some compiler warnings and commit message

34f4634 st/va: add conversion for yv12 to nv12in putimage v2
src/gallium/state_trackers/va/image.c | 34 ++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share