From: Alyssa Rosenzweig Date: Fri, 14 Aug 2020 22:27:32 +0000 (-0400) Subject: panfrost: Drop QUADS primitive convert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=433fa39c2e616e2f0a6102904c93969a4e42e79c;p=mesa.git panfrost: Drop QUADS primitive convert Even Bifrost retains QUADS support. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index c63e4f9dc03..84843ac8786 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -299,18 +299,14 @@ panfrost_draw_vbo( assert(ctx->rasterizer != NULL); if (!(ctx->draw_modes & (1 << mode))) { - if (mode == PIPE_PRIM_QUADS && info->count == 4 && !ctx->rasterizer->base.flatshade) { - mode = PIPE_PRIM_TRIANGLE_FAN; - } else { - if (info->count < 4) { - /* Degenerate case? */ - return; - } - - util_primconvert_save_rasterizer_state(ctx->primconvert, &ctx->rasterizer->base); - util_primconvert_draw_vbo(ctx->primconvert, info); + if (info->count < 4) { + /* Degenerate case? */ return; } + + util_primconvert_save_rasterizer_state(ctx->primconvert, &ctx->rasterizer->base); + util_primconvert_draw_vbo(ctx->primconvert, info); + return; } /* Now that we have a guaranteed terminating path, find the job.