panfrost: Fix primconvert check

In addition to fixing actual primconvert bugs, this prevents an infinite
loop when trying to draw POINTS.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig
2019-03-15 02:13:34 +00:00
parent 60d5b85261
commit 7c02c4f114
+1 -1
View File
@@ -1362,7 +1362,7 @@ panfrost_draw_vbo(
/* Fallback for unsupported modes */
if (!(ctx->draw_modes & mode)) {
if (!(ctx->draw_modes & (1 << mode))) {
if (mode == PIPE_PRIM_QUADS && info->count == 4 && ctx->rasterizer && !ctx->rasterizer->base.flatshade) {
mode = PIPE_PRIM_TRIANGLE_FAN;
} else {