From: Jonathan Marek Date: Tue, 13 Nov 2018 16:17:48 +0000 (-0500) Subject: freedreno/a2xx: fix POINT_MINMAX_MAX overflow X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e6ee033ff3cf03ad459342f1e590e7d814acd12;p=mesa.git freedreno/a2xx: fix POINT_MINMAX_MAX overflow As it stands, it overflows to zero. Signed-off-by: Jonathan Marek Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c b/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c index f35fddc09f1..a81f63b5705 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c @@ -47,7 +47,7 @@ fd2_rasterizer_state_create(struct pipe_context *pctx, if (cso->point_size_per_vertex) { psize_min = util_get_min_point_size(cso); - psize_max = 8192; + psize_max = 8192.0 - 0.0625; } else { /* Force the point size to be as if the vertex output was disabled. */ psize_min = cso->point_size;