i965: Don't bail on vertex element processing if we need draw params.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Dec 2016 19:21:27 +0000 (11:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Dec 2016 19:41:28 +0000 (11:41 -0800)
commit8fc5443a2b39aaa8292984f7225a2c7968d568ae
tree1aa10ab484a00b8c17d3a152702919544b630ec1
parentd74c3e55b3b44d8770827a2af5dfffa10557e3c7
i965: Don't bail on vertex element processing if we need draw params.

BaseVertex, BaseInstance, DrawID, and some edge flag conditions need
vertex buffer and elements structs.  We can't bail early in this case.

Gen4-7 already do this properly.  Gen8+ did not.

Thanks to Ilia Mirkin for helping track this down.

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99144
Reported-by: Pierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/gen8_draw_upload.c