summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2017-06-19 11:10:38 -0700
committerMarge Bot <eric+marge@anholt.net>2020-05-14 15:35:43 +0000
commit067cb2f165c3363957aa4206461829a8e53abd32 (patch)
treeedec2c959bc2f504013860dfcc6a674d514cb971 /src/mesa/drivers
parent667e14e7bd759a77e732c4de09fb978ee3816eaf (diff)
i965: Assert that blorp always handles color blits
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/856>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c2
-rw-r--r--src/mesa/drivers/dri/i965/intel_fbo.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index 00c34f72cfd..c2225b390fd 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -831,6 +831,8 @@ brw_blorp_framebuffer(struct brw_context *brw,
}
}
+ /* try_blorp_blit should always be successful for color blits. */
+ assert(!(mask & GL_COLOR_BUFFER_BIT));
return mask;
}
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c
index 9f8fee9879c..b1f24d4d1d3 100644
--- a/src/mesa/drivers/dri/i965/intel_fbo.c
+++ b/src/mesa/drivers/dri/i965/intel_fbo.c
@@ -929,6 +929,9 @@ intel_blit_framebuffer(struct gl_context *ctx,
if (mask == 0x0)
return;
+ /* brw_blorp_framebuffer should always be successful for color blits. */
+ assert(!(mask & GL_COLOR_BUFFER_BIT));
+
mask = _mesa_meta_BlitFramebuffer(ctx, readFb, drawFb,
srcX0, srcY0, srcX1, srcY1,
dstX0, dstY0, dstX1, dstY1,