mesa: set pipe_draw_info::index::resource directly and remove gl_bo
authorMarek Olšák <marek.olsak@amd.com>
Sun, 11 Dec 2022 22:53:59 +0000 (17:53 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 18 Dec 2022 19:23:22 +0000 (14:23 -0500)
commit819627041e737b05d7a9a5c74e29fd9994ec9115
tree85f5f35076b5e895cb9fe654ab1132c9b97f1988
parentea11f48a53e31fdc94c122d1259f45658635748f
mesa: set pipe_draw_info::index::resource directly and remove gl_bo

The motivation is to remove branching from prepare_indexed_draw
and remove the unsafe hack in vbo_save_playback_vertex_list.

There is some duplication that is not identical in all 3 cases.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20287>
src/gallium/include/pipe/p_state.h
src/mesa/main/dd.h
src/mesa/main/draw.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c
src/mesa/vbo/vbo_minmax_index.c
src/mesa/vbo/vbo_save_api.c
src/mesa/vbo/vbo_save_draw.c