gallium: add pipe_draw_info::index::gl_bo

mesa/main will fill pipe_draw_info but it has no access to pipe_resources,
so we need gl_buffer_object here.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
This commit is contained in:
Marek Olšák
2020-12-01 13:51:09 -05:00
parent 3e7a8c4ac4
commit dee3f34a8e

View File

@@ -53,6 +53,7 @@
extern "C" {
#endif
struct gl_buffer_object;
/**
* Implementation limits
@@ -778,6 +779,7 @@ struct pipe_draw_info
*/
union {
struct pipe_resource *resource; /**< real buffer */
struct gl_buffer_object *gl_bo; /**< for the GL frontend, not passed to drivers */
const void *user; /**< pointer to a user buffer */
} index;