From a526fa50508972ab355c449c8f294bae5c0ac521 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 25 Jun 2015 09:41:38 +0800 Subject: [PATCH] Force flip horizontally 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..aededf8 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] = { X1, Y2, X2, Y2, X2, Y1 }, [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..ac94b8a 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] = { X1, Y2, X2, Y2, X2, Y1 }, [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..b8ed063 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] = { X1, Y2, X2, Y2, X2, Y1 }, [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