panfrost: Combine get_index_buffer with bound computation
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 19 Feb 2020 15:15:13 +0000 (10:15 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Feb 2020 10:30:48 +0000 (10:30 +0000)
commit12db69aa3f6155e9ccb1d783da589ab206dc7239
tree8571927a6aa479df9c0f34f7a277dda3c56bacdf
parente272b110bb511b3735672a61c58c5b6b944bc37b
panfrost: Combine get_index_buffer with bound computation

These operations are intertwined since there are optimizations that will
want to "double dip". In particular for user index buffers we'd want to
upload simultaneous with index computation. For resources we'd like to
keep resource related code together.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3880>
src/gallium/drivers/panfrost/pan_context.c