mesa: add _mesa_InternalBind{ElementBuffer,VertexBuffers} for glthread

Uploaded non-VBO user data will be set via these functions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
This commit is contained in:
Marek Olšák
2020-03-06 20:37:57 -05:00
committed by Marge Bot
parent a82889e537
commit 70847eb0a9
5 changed files with 62 additions and 0 deletions

View File

@@ -52,6 +52,12 @@
struct gl_context;
struct _mesa_HashTable;
struct glthread_attrib_binding {
struct gl_buffer_object *buffer; /**< where non-VBO data was uploaded */
int offset; /**< offset to uploaded non-VBO data */
const void *original_pointer; /**< restore this pointer after the draw */
};
struct glthread_vao {
GLuint Name;
GLuint CurrentElementBufferName;