panfrost: Cleanup indexed draw handling
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 13 Apr 2019 00:10:20 +0000 (00:10 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 14 Apr 2019 15:25:46 +0000 (15:25 +0000)
commit89b02bffcb452e1cb36dacded226d11e7e5ee713
treeacf3d6e8f1905b563faf34d5b333303a09055724
parent74b17b9a9ff9515c6bf3e2a4ab5bbbbe9c98ccff
panfrost: Cleanup indexed draw handling

As part of this cleanup, we use the newly-exposed
u_vbuf_get_minmax_index, deduplicating quite a bit of bookkeeping. We
also centralize the draw_flags tracking to make this code cleaner /
futureproofed; we have already had bugs regarding this field so we might
as well get it right now.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c