i965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.
authorEric Anholt <eric@anholt.net>
Wed, 9 Dec 2009 00:15:07 +0000 (16:15 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 9 Dec 2009 00:35:05 +0000 (16:35 -0800)
Passes piglit pbo-read-argb8888, and doesn't otherwise regress quick.tests.

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

index 470750018015b335073c14542ae53dd978cba8cb..20424e2e589fff28c39151bca29278f5402819ab 100644 (file)
@@ -285,11 +285,11 @@ intelReadPixels(GLcontext * ctx,
 
    intelFlush(ctx);
 
-#ifdef I915
    if (do_blit_readpixels
        (ctx, x, y, width, height, format, type, pack, pixels))
       return;
 
+#ifdef I915
    if (do_texture_readpixels
        (ctx, x, y, width, height, format, type, pack, pixels))
       return;