glthread: add nop dispatch

so that glthread behaves the same as the main dispatch.

Also fix the SetError function for GLES 1.0.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000>
This commit is contained in:
Marek Olšák
2021-11-29 06:11:35 -05:00
parent dd3709dcfd
commit e93a9b422c
4 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -12869,7 +12869,7 @@
</function>
<!-- Set a GL error. Used by glthread to set errors without syncing. -->
<function name="InternalSetError" es2="2.0">
<function name="InternalSetError" es1="1.0" es2="2.0">
<param name="error" type="GLenum"/>
</function>
</category>
+1 -1
View File
@@ -383,7 +383,7 @@ class PrintCode(gl_XML.gl_print_base):
with indent():
out('struct _glapi_table *table;')
out('')
out('table = _mesa_alloc_dispatch_table();')
out('table = _mesa_alloc_dispatch_table(true);')
out('if (table == NULL)')
with indent():
out('return NULL;')