st/mesa: fix setting of point_size_per_vertex in ES contexts
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 29 May 2016 02:38:24 +0000 (22:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 29 May 2016 13:34:03 +0000 (09:34 -0400)
commitf2e7268a550e84e1f3c036effdeca3f8f9237044
tree3eb92a7bacfb729276420ed134d04544872ed445
parent04a78068ff6a1399cd6891b4ef34a480de28b07c
st/mesa: fix setting of point_size_per_vertex in ES contexts

GL ES 2.0+ does not have a GL_PROGRAM_POINT_SIZE enable, unlike desktop
GL. So we have to go and check the last pre-rasterizer stage to see
whether it outputs a point size or not.

This fixes a number of dEQP tests that use a geometry or tessellation
shader to emit points primitives.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_atom_rasterizer.c