vl: add zig zag scan for list 4x4
authorLeo Liu <leo.liu@amd.com>
Mon, 1 Feb 2016 17:04:34 +0000 (12:04 -0500)
committerLeo Liu <leo.liu@amd.com>
Wed, 3 Feb 2016 01:29:43 +0000 (20:29 -0500)
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_zscan.c
src/gallium/auxiliary/vl/vl_zscan.h

index 1c6cdd4f2c942863d32c25b317bd2a22d74d9766..5241471f516c86265f77aa8c125c913e0bd78c06 100644 (file)
@@ -49,6 +49,13 @@ enum VS_OUTPUT
    VS_O_VTEX = 0
 };
 
+const int vl_zscan_normal_16[] =
+{
+   /* Zig-Zag scan pattern */
+    0, 1, 4, 8, 5, 2, 3, 6,
+    9,12,13,10, 7,11,14,15
+};
+
 const int vl_zscan_linear[] =
 {
    /* Linear scan pattern */
index eacee2db64f3c03e5d2f1b1b594293715196bcdf..268cf0a6e328a7ce7dc8b3d4814b67f28b5e6d51 100644 (file)
@@ -64,6 +64,7 @@ struct vl_zscan_buffer
    struct pipe_surface *dst;
 };
 
+extern const int vl_zscan_normal_16[];
 extern const int vl_zscan_linear[];
 extern const int vl_zscan_normal[];
 extern const int vl_zscan_alternate[];