diff mbox

[Bug,27055] r600: software fallback for readpixels

Message ID 20100313121556.68F851300B8@annarchy.freedesktop.org (mailing list archive)
State New, archived
Headers show

Commit Message

bugzilla-daemon@freedesktop.org March 13, 2010, 12:15 p.m. UTC
None
diff mbox

Patch

diff --git a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
index b180c1d..943c034 100644
--- a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
+++ b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
@@ -68,6 +68,12 @@  static gl_format gl_format_and_type_to_mesa_format(GLenum
format, GLenum type)
                     return MESA_FORMAT_ARGB8888_REV;
             }
             break;
+       case GL_BGRA:
+           switch (type) {
+                case GL_UNSIGNED_INT_8_8_8_8_REV:
+                    return MESA_FORMAT_ARGB8888;
+           }
+           break;
     }