diff options
author | Marek Olšák <[email protected]> | 2020-02-20 19:28:56 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-06 01:06:14 +0000 |
commit | 28a2ad7ddf76702a5de56a7bc0d8754b7dbd66a0 (patch) | |
tree | 15e77758d8169b01a7dc20761ca7c575f2994093 /src/mesa/main/marshal.c | |
parent | d510e652d46f471a93eae5a07f7e7508633d1040 (diff) |
glthread: track for each VAO whether the user has set a user pointer
This commit mainly adds basic infrastructure for tracking vertex array
state.
If glthread gets a non-VBO pointer, this commit delays disabling
glthread until glDraw is called. The next will change that to "sync"
instead of "disable".
Reviewed-by: Timothy Arceri <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
Diffstat (limited to 'src/mesa/main/marshal.c')
-rw-r--r-- | src/mesa/main/marshal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c index ce9bbf8139f..ce91d6a8f66 100644 --- a/src/mesa/main/marshal.c +++ b/src/mesa/main/marshal.c @@ -182,7 +182,7 @@ track_vbo_binding(struct gl_context *ctx, GLenum target, GLuint buffer) * vertex array object instead of the context, so this would need to * change on vertex array object updates. */ - glthread->element_array_is_vbo = (buffer != 0); + glthread->CurrentVAO->IndexBufferIsUserPointer = buffer != 0; break; case GL_DRAW_INDIRECT_BUFFER: glthread->draw_indirect_buffer_is_vbo = buffer != 0; |