panfrost: Respect glPointSize()

We have native support for this somehow. Fixes the mesa demo `points`

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-12-30 12:55:50 -05:00
parent 8f4b15636b
commit 3909b16000
1 changed files with 5 additions and 1 deletions

View File

@ -881,7 +881,11 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data)
* don't touch primitive_size (since we would clobber
* the pointer there) */
ctx->payloads[PIPE_SHADER_FRAGMENT].primitive_size.constant = ctx->rasterizer->base.line_width;
bool points = ctx->payloads[PIPE_SHADER_FRAGMENT].prefix.draw_mode == MALI_POINTS;
ctx->payloads[PIPE_SHADER_FRAGMENT].primitive_size.constant = points ?
ctx->rasterizer->base.point_size :
ctx->rasterizer->base.line_width;
}
}