st/mesa: use _mesa_RasterPos() when possible
authorBrian Paul <brianp@vmware.com>
Wed, 21 Oct 2015 19:42:37 +0000 (13:42 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Oct 2015 23:19:20 +0000 (17:19 -0600)
commit990afdc04551e89ec9b5d29a05a9da798c07ccc3
tree3e3c3b1f5f20f67702f695abaf3ead7c872db9ca
parentaf0399a1ce5acea464219f63399284cb175fa1f4
st/mesa: use _mesa_RasterPos() when possible

The st_RasterPos() function goes to great pains to implement the
rasterpos transformation.  It basically uses gallium's draw module to
execute the vertex shader to draw a point, then capture that point's
attributes.

But glRasterPos isn't typically used with a vertex shader so we can
usually use the old/fixed-function implementation which is a lot simpler
and faster.

This can add up for legacy apps that make a lot of calls to glRasterPos.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_cb_rasterpos.c