glthread: implement glGetUniformLocation without syncing

We already have the infrastructure for querying shader program properties
without syncing. This just uses it. _mesa_error_glthread_safe sets a GL
error from the producer thread.

This decreases CPU overhead for viewperf/snx.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12490>
This commit is contained in:
Marek Olšák
2021-08-18 20:16:38 -04:00
committed by Marge Bot
parent 625f00d37c
commit db9ffc5561
4 changed files with 48 additions and 13 deletions
+1 -1
View File
@@ -5483,7 +5483,7 @@
<glx ignore="true"/>
</function>
<function name="GetUniformLocation" es2="2.0" no_error="true">
<function name="GetUniformLocation" es2="2.0" no_error="true" marshal="custom">
<param name="program" type="GLuint"/>
<param name="name" type="const GLchar *"/>
<return type="GLint"/>