aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-07-09 16:22:38 -0400
committerMarge Bot <[email protected]>2020-07-16 19:59:43 +0000
commit77bb19eebd1d59c7fc48b41c0f356114f5eab2ef (patch)
tree6079293f74655519df255e4a6c1ca23406c03182 /src
parentcce3d925d24220549075461ad89ed0f30714abb8 (diff)
panfrost: Abort on unsupported blit
Instead of silently failing. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_blit.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c
index 420f85cca48..c9fc8c83918 100644
--- a/src/gallium/drivers/panfrost/pan_blit.c
+++ b/src/gallium/drivers/panfrost/pan_blit.c
@@ -66,17 +66,9 @@ panfrost_u_blitter_blit(struct pipe_context *pipe,
const struct pipe_blit_info *info)
{
struct panfrost_context *ctx = pan_context(pipe);
- struct panfrost_device *dev = pan_device(pipe->screen);
- if (!util_blitter_is_blit_supported(ctx->blitter, info)) {
- if (dev->debug & PAN_DBG_MSGS) {
- fprintf(stderr, "blit unsupported %s -> %s\n",
- util_format_short_name(info->src.resource->format),
- util_format_short_name(info->dst.resource->format));
- }
-
- return false;
- }
+ if (!util_blitter_is_blit_supported(ctx->blitter, info))
+ unreachable("Unsupported blit\n");
/* TODO: Scissor */