st/va: Fix up YV12 to NV12 putImage conversion
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 22 Feb 2017 12:07:47 +0000 (13:07 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 24 Feb 2017 15:44:34 +0000 (16:44 +0100)
commit7b82efe4ee6b9a3453f87e301e93d3e403c8f5de
tree122bcead183c674fc90e56af50aeae3b56d5b419
parent3a418322ec6d540b1334f42688839aefb5d88d6d
st/va: Fix up YV12 to NV12 putImage conversion

Use the utility u_copy_nv12_from_yv12 to implement this similarly to
how it's been done in the VPAU state tracker. The old code mixed up
planes and fields and didn't correctly handle video surfaces in
interlaced format.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/auxiliary/util/u_video.h
src/gallium/state_trackers/va/image.c