freedreno/a2xx: fix POINT_MINMAX_MAX overflow
authorJonathan Marek <jonathan@marek.ca>
Tue, 13 Nov 2018 16:17:48 +0000 (11:17 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Nov 2018 20:44:03 +0000 (15:44 -0500)
As it stands, it overflows to zero.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.c

index f35fddc09f1a556cac0aa692626c95ff8e647e48..a81f63b5705c833d5371225b002aba19750ea70a 100644 (file)
@@ -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;