aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2018-11-13 11:17:48 -0500
committerRob Clark <[email protected]>2018-11-27 15:44:03 -0500
commit4e6ee033ff3cf03ad459342f1e590e7d814acd12 (patch)
treedcafd5f511a043179f40799e9fcde4460756f079 /src
parent78fede86d998b2c26aff237224ec6214bbddd4d3 (diff)
freedreno/a2xx: fix POINT_MINMAX_MAX overflow
As it stands, it overflows to zero. Signed-off-by: Jonathan Marek <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c2
1 files changed, 1 insertions, 1 deletions
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;