| Summary: | r600: software fallback for readpixels | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Török Edwin <edwin+bugs> |
| Component: | Drivers/DRI/R600 | Assignee: | Default DRI bug account <dri-devel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Török Edwin
2010-03-13 00:54:08 UTC
This patch appears to solve this case, and piglit doesn't complain. The switch should probably contain more formats though.
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;
}
return MESA_FORMAT_NONE;
What app are you hitting this fallback with? (In reply to comment #2) > What app are you hitting this fallback with? > World of Warcraft running under wine 1.1.40, glsl disabled, orm=backbuffer. I've pushed extended version of your patch that handles also other formats. (In reply to comment #4) > I've pushed extended version of your patch that handles also other formats. > Thanks, it works! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.