[Mesa-dev] [PATCH 09/13] graw-xlib: Convert to bytewise formats
Adam Jackson
ajax at redhat.com
Thu May 16 06:06:12 PDT 2013
From: Richard Sandiford <r.sandiford at uk.ibm.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
---
src/gallium/targets/graw-xlib/graw_xlib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/targets/graw-xlib/graw_xlib.c b/src/gallium/targets/graw-xlib/graw_xlib.c
index 2827747..ed112b9 100644
--- a/src/gallium/targets/graw-xlib/graw_xlib.c
+++ b/src/gallium/targets/graw-xlib/graw_xlib.c
@@ -89,13 +89,13 @@ graw_create_window_and_screen( int x,
if (visinfo->red_mask == 0xff0000 &&
visinfo->green_mask == 0xff00 &&
visinfo->blue_mask == 0xff) {
- if (format != PIPE_FORMAT_B8G8R8A8_UNORM)
+ if (format != PIPE_FORMAT_ARGB8888_UNORM)
goto fail;
}
else if (visinfo->red_mask == 0xff &&
visinfo->green_mask == 0xff00 &&
visinfo->blue_mask == 0xff0000) {
- if (format != PIPE_FORMAT_R8G8B8A8_UNORM)
+ if (format != PIPE_FORMAT_ABGR8888_UNORM)
goto fail;
}
else {
--
1.8.2.1
More information about the mesa-dev
mailing list