aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glthread.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-05-28 16:21:39 -0400
committerMarge Bot <[email protected]>2020-05-30 01:42:56 +0000
commit4925fb97f65f20fd52c94a080a68108c25a4095f (patch)
tree0000f93fb29fd9f9c94203676da242c30793f21a /src/mesa/main/glthread.h
parentcf9926714783efa4524ca2afd62a9817dcbccf06 (diff)
glthread: don't upload for glDraw inside a display list and always sync
Let the vbo module handle it, not glthread. This handles functions set in vbo_initialize_save_dispatch. Fixes: 2840bc3065b ("glthread: upload non-VBO vertices and indices for non-Indirect non-IBM draws") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3001 Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Tested-by: Dieter Nützel <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5246>
Diffstat (limited to 'src/mesa/main/glthread.h')
-rw-r--r--src/mesa/main/glthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h
index d09abb8e28f..34a5443a6da 100644
--- a/src/mesa/main/glthread.h
+++ b/src/mesa/main/glthread.h
@@ -123,6 +123,9 @@ struct glthread_state
/** Whether GLThread is enabled. */
bool enabled;
+ /** Whether GLThread is inside a display list generation. */
+ bool inside_dlist;
+
/** The ring of batches in memory. */
struct glthread_batch batches[MARSHAL_MAX_BATCHES];