st/va: Fix scaling list ordering for H.265
authorMark Thompson <sw@jkqxz.net>
Sat, 15 Jul 2017 18:51:56 +0000 (19:51 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Jul 2017 14:24:56 +0000 (15:24 +0100)
commit63dcfed81f011dae5ca68af3369433be28135415
tree29c1144b5bc99808c6dc85256dced14d80053038
parent4168c162c5bcbbfc6c712466b9c3d7d0dbac06e5
st/va: Fix scaling list ordering for H.265

Mesa here requires the scaling lists in diagonal scan order, but
VAAPI passes them in raster scan order.  Therefore, rearrange the
elements when copying.

v2: Move scan tables to vl_zscan.c.
    Fix type in size assertion.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_zscan.c
src/gallium/auxiliary/vl/vl_zscan.h
src/gallium/state_trackers/va/picture_hevc.c