vbo/dlist: remove vbo_save_context::buffer_ptr
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 12 Aug 2021 13:45:12 +0000 (15:45 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 Sep 2021 14:42:16 +0000 (16:42 +0200)
commit3ab1ddd5c1540c1b896f546291c608bd1132da7f
tree0e4453b624beb38e763dbf35c806a8b8f3c2d2dd
parentb511b65123303c2adae7dab3129f8193d7161695
vbo/dlist: remove vbo_save_context::buffer_ptr

buffer_ptr is always "buffer_in_ram + used" so compute it when needed
and drop it from the struct to avoid out-of-sync errors.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12646>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_save_api.c