From dee3f34a8ebdb26a8a53b25227e3768444d91d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 1 Dec 2020 13:51:09 -0500 Subject: [PATCH] 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 Part-of: --- src/gallium/include/pipe/p_state.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index b00cbff046a..54dc20f2a70 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -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;