summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp_blit.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp_blit.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
index 00087238ab4..7cf809b4066 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
@@ -251,6 +251,11 @@ brw_blorp_copytexsubimage(struct brw_context *brw,
struct intel_mipmap_tree *src_mt = src_irb->mt;
struct intel_mipmap_tree *dst_mt = intel_image->mt;
+ /* There is support only for four and eight samples. */
+ if (src_mt->num_samples == 2 || dst_mt->num_samples == 2 ||
+ src_mt->num_samples > 8 || dst_mt->num_samples > 8)
+ return false;
+
/* BLORP is only supported for Gen6-7. */
if (brw->gen < 6 || brw->gen > 7)
return false;
@@ -357,6 +362,11 @@ brw_blorp_framebuffer(struct brw_context *brw,
if (brw->gen < 6 || brw->gen >= 8)
return mask;
+ /* There is support only for four and eight samples. */
+ if (readFb->Visual.samples == 2 || drawFb->Visual.samples == 2 ||
+ readFb->Visual.samples > 8 || drawFb->Visual.samples > 8)
+ return mask;
+
static GLbitfield buffer_bits[] = {
GL_COLOR_BUFFER_BIT,
GL_DEPTH_BUFFER_BIT,