i965: fallback bitmap operation on sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 28 Sep 2010 07:50:59 +0000 (15:50 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 28 Sep 2010 07:58:21 +0000 (15:58 +0800)
Need to bring back correct fb write with header to set pixel
write mask. Fallback for now.

src/mesa/drivers/dri/intel/intel_pixel_bitmap.c

index c62e16f..23410f0 100644 (file)
@@ -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);
 }