[Mesa-dev] [PATCH 2/7] i965: Don't try to use HW blitter for glCopyPixels() when multisampled.

Paul Berry stereotype441 at gmail.com
Wed Dec 4 06:30:31 PST 2013


The hardware blitter doesn't understand multisampled layouts, so
there's no way this could possibly succeed.
---
 src/mesa/drivers/dri/i965/intel_pixel_copy.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_pixel_copy.c b/src/mesa/drivers/dri/i965/intel_pixel_copy.c
index 9dc5c15..8da02a0 100644
--- a/src/mesa/drivers/dri/i965/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/i965/intel_pixel_copy.c
@@ -102,6 +102,11 @@ do_blit_copypixels(struct gl_context * ctx,
       return false;
    }
 
+   if (draw_irb->mt->num_samples > 1 || read_irb->mt->num_samples > 1) {
+      perf_debug("glCopyPixels() fallback: multisampled buffers\n");
+      return false;
+   }
+
    if (ctx->_ImageTransferState) {
       perf_debug("glCopyPixels(): Unsupported image transfer state\n");
       return false;
-- 
1.8.4.2



More information about the mesa-dev mailing list