summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-12-03 15:41:14 -0800
committerPaul Berry <[email protected]>2013-12-09 10:51:07 -0800
commitf416a15096c0984dce689681a004554ecb2ea728 (patch)
tree035b1b98f625325d6498bacb2c78c6facd4607eb
parentb5fe413b4d665cdb7a9be6ebae23a6c5f3ec393d (diff)
i965: Don't try to use HW blitter for glCopyPixels() when multisampled.
The hardware blitter doesn't understand multisampled layouts, so there's no way this could possibly succeed. Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_pixel_copy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_copy.c b/src/mesa/drivers/dri/i965/intel_pixel_copy.c
index d61940dda22..e76b24bf9da 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;