diff options
author | Eric Anholt <[email protected]> | 2014-09-24 14:23:25 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-24 15:56:39 -0700 |
commit | 66b7bd60e01fd17a356bf26d69ea351261080586 (patch) | |
tree | 9fdcd4650a4648119539e18cc949284a20701115 /src/gallium/drivers/vc4/vc4_state.c | |
parent | f24588d64e6be50068883d484c8d759fb8979750 (diff) |
vc4: Add support for point size setting.
This is the support for both the global and per-vertex modes.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_state.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_state.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c index 81dac21f548..5f5eee8134c 100644 --- a/src/gallium/drivers/vc4/vc4_state.c +++ b/src/gallium/drivers/vc4/vc4_state.c @@ -102,8 +102,10 @@ vc4_create_rasterizer_state(struct pipe_context *pctx, if (!(cso->cull_face & PIPE_FACE_BACK)) so->config_bits[0] |= VC4_CONFIG_BITS_ENABLE_PRIM_BACK; - /* XXX: per_vertex */ - so->point_size = cso->point_size; + /* Workaround: HW-2726 PTB does not handle zero-size points (BCM2835, + * BCM21553). + */ + so->point_size = MAX2(cso->point_size, .125); if (cso->front_ccw) so->config_bits[0] |= VC4_CONFIG_BITS_CW_PRIMITIVES; |