summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-09 08:23:11 -0600
committerBrian Paul <brianp@vmware.com>2009-09-09 08:23:14 -0600
commit89a765e92b4847f80848c8be89efbce2d021434b (patch)
treeea3e3047622218ec5549aa084c33f8b3f8b3fb88 /src/mesa/drivers/common
parent9216b4e7be942fed432ceb42a4337d7298d0bc6c (diff)
mesa: disable GL_LUMINANCE case in _mesa_meta_draw_pixels()
Works around a bug found on i965. See bug 23670.
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r--src/mesa/drivers/common/meta.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 965fb8697e..28e49b6898 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -1446,7 +1446,10 @@ _mesa_meta_draw_pixels(GLcontext *ctx,
if (_mesa_is_color_format(format)) {
/* use more compact format when possible */
- if (format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA)
+ /* XXX disable special case for GL_LUMINANCE for now to work around
+ * apparent i965 driver bug (see bug #23670).
+ */
+ if (/*format == GL_LUMINANCE ||*/ format == GL_LUMINANCE_ALPHA)
texIntFormat = format;
else
texIntFormat = GL_RGBA;