st/mesa: don't draw instead of asserting in transform feedback
authorDave Airlie <airlied@gmail.com>
Thu, 30 Jul 2015 10:44:50 +0000 (20:44 +1000)
committerDave Airlie <airlied@gmail.com>
Thu, 30 Jul 2015 21:27:29 +0000 (07:27 +1000)
commit518abd0bbe1886550b43c62679a2ebd41e8199e9
treec4da9aaa441b30754c1971fe38c7b31a49561b43
parentfdb84876134ed074563b842eae20fd10dbe9e8d6
st/mesa: don't draw instead of asserting in transform feedback

if we get a request to take the count from feedback, but there
is no buffer to take it from, just draw as if we got 0 vertices
so nothing.

This fixes this assert killing the ogl conform, and a piglit
test I've sent.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_xformfb.c
src/mesa/state_tracker/st_cb_xformfb.h
src/mesa/state_tracker/st_draw.c