intel: use _mesa_meta_copy_pixels() when do_blit_copypixels() fails
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 18:23:01 +0000 (12:23 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 23:39:30 +0000 (17:39 -0600)
Also, trim down #includes.

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

index ca796b36559a261ca280e82749c07fcf1e8dc02f..07ca8f7ddb5571dff0759fc43e169f1700ad3efb 100644 (file)
  **************************************************************************/
 
 #include "main/glheader.h"
-#include "main/enums.h"
 #include "main/image.h"
 #include "main/state.h"
 #include "main/mtypes.h"
-#include "main/macros.h"
 #include "drivers/common/meta.h"
 
-#include "intel_screen.h"
 #include "intel_context.h"
-#include "intel_batchbuffer.h"
 #include "intel_buffers.h"
-#include "intel_blit.h"
 #include "intel_regions.h"
 #include "intel_pixel.h"
 
@@ -244,5 +239,6 @@ intelCopyPixels(GLcontext * ctx,
    if (do_blit_copypixels(ctx, srcx, srcy, width, height, destx, desty, type))
       return;
 
+   /* this will use swrast if needed */
    _mesa_meta_copy_pixels(ctx, srcx, srcy, width, height, destx, desty, type);
 }