st/mesa: allow glDrawElements to work with GL_SELECT feedback
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 19 Dec 2018 03:47:05 +0000 (22:47 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 27 Dec 2018 00:30:33 +0000 (19:30 -0500)
commitbac85342672a265735316049ecf36b74e1f2a852
treea339d0e6d08eaf05dabd543b6693dc14af1cc3b2
parent7d7ecfbcbc2236ba76d9ad9dc7c589ce5a6bfa32
st/mesa: allow glDrawElements to work with GL_SELECT feedback

Not sure if this ever worked, but the current logic for setting the
min/max index is definitely wrong for indexed draws. While we're at it,
bring in all the usual logic from the non-indirect drawing path.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109086
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c