diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-15 02:13:34 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-03-19 03:52:20 +0000 |
commit | 7c02c4f114b1a79ef9f5c7f725cdfee818b3977a (patch) | |
tree | 582394b8f1bc8e6e8a01034ced6505254c81a4da | |
parent | 60d5b85261e95e2807b18a2a848099f0cb6ce9fc (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 378a631410b..b6cf5302cae 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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 { |