mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
panfrost: Drop QUADS primitive convert
Even Bifrost retains QUADS support. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6327>
This commit is contained in:
parent
4b21c8b15f
commit
433fa39c2e
1 changed files with 6 additions and 10 deletions
|
|
@ -299,18 +299,14 @@ panfrost_draw_vbo(
|
||||||
assert(ctx->rasterizer != NULL);
|
assert(ctx->rasterizer != NULL);
|
||||||
|
|
||||||
if (!(ctx->draw_modes & (1 << mode))) {
|
if (!(ctx->draw_modes & (1 << mode))) {
|
||||||
if (mode == PIPE_PRIM_QUADS && info->count == 4 && !ctx->rasterizer->base.flatshade) {
|
if (info->count < 4) {
|
||||||
mode = PIPE_PRIM_TRIANGLE_FAN;
|
/* Degenerate case? */
|
||||||
} 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);
|
|
||||||
return;
|
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.
|
/* Now that we have a guaranteed terminating path, find the job.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue