From bc0e3ebba63c78013d0fe7a61e167d285219fec5 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 25 Jun 2015 09:39:33 +0800 Subject: [PATCH] Force flip vertically Signed-off-by: Xiang, Haihao --- src/gen8_render.c | 2 +- src/gen9_render.c | 2 +- src/i965_render.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gen8_render.c b/src/gen8_render.c index 45d55ea..7f5b15d 100644 --- a/src/gen8_render.c +++ b/src/gen8_render.c @@ -374,7 +374,7 @@ i965_fill_vertex_buffer( enum { X1, Y1, X2, Y2 }; static const unsigned int g_rotation_indices[][6] = { - [VA_ROTATION_NONE] = { X2, Y2, X1, Y2, X1, Y1 }, + [VA_ROTATION_NONE] = { X2, Y1, X1, Y1, X1, Y2 }, [VA_ROTATION_90] = { X2, Y1, X2, Y2, X1, Y2 }, [VA_ROTATION_180] = { X1, Y1, X2, Y1, X2, Y2 }, [VA_ROTATION_270] = { X1, Y2, X1, Y1, X2, Y1 }, diff --git a/src/gen9_render.c b/src/gen9_render.c index fa48243..5bedefa 100644 --- a/src/gen9_render.c +++ b/src/gen9_render.c @@ -365,7 +365,7 @@ i965_fill_vertex_buffer( enum { X1, Y1, X2, Y2 }; static const unsigned int g_rotation_indices[][6] = { - [VA_ROTATION_NONE] = { X2, Y2, X1, Y2, X1, Y1 }, + [VA_ROTATION_NONE] = { X2, Y1, X1, Y1, X1, Y2 }, [VA_ROTATION_90] = { X2, Y1, X2, Y2, X1, Y2 }, [VA_ROTATION_180] = { X1, Y1, X2, Y1, X2, Y2 }, [VA_ROTATION_270] = { X1, Y2, X1, Y1, X2, Y1 }, diff --git a/src/i965_render.c b/src/i965_render.c index f941d1b..88729a0 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -987,7 +987,7 @@ i965_fill_vertex_buffer( enum { X1, Y1, X2, Y2 }; static const unsigned int g_rotation_indices[][6] = { - [VA_ROTATION_NONE] = { X2, Y2, X1, Y2, X1, Y1 }, + [VA_ROTATION_NONE] = { X2, Y1, X1, Y1, X1, Y2 }, [VA_ROTATION_90] = { X2, Y1, X2, Y2, X1, Y2 }, [VA_ROTATION_180] = { X1, Y1, X2, Y1, X2, Y2 }, [VA_ROTATION_270] = { X1, Y2, X1, Y1, X2, Y1 }, -- 1.9.1