summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2010-09-28 15:50:59 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2010-09-28 15:58:21 +0800
commit45b37c4b12bb328e804a2b58c90e0099240879d3 (patch)
treedbba4536e038d51034e43075b1798524b02ad58d
parent3074b61f64601be4620f1fb3c48c7c6024d3fd57 (diff)
i965: fallback bitmap operation on sandybridge
Need to bring back correct fb write with header to set pixel write mask. Fallback for now.
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel_bitmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
index c62e16f587..23410f063c 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
@@ -326,9 +326,15 @@ intelBitmap(GLcontext * ctx,
const struct gl_pixelstore_attrib *unpack,
const GLubyte * pixels)
{
+ struct intel_context *intel = intel_context(ctx);
+
if (do_blit_bitmap(ctx, x, y, width, height,
unpack, pixels))
return;
+ /* FIXME */
+ if (intel->gen == 6)
+ return _swrast_Bitmap(ctx, x, y, width, height, unpack, pixels);
+
_mesa_meta_Bitmap(ctx, x, y, width, height, unpack, pixels);
}