mesa: make error handling for glGetActiveUniform glthread-safe

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 21 November 2020 21:02 UTC

glGetActiveUniform will be called from the app thread directly. This is safe if a few conditions are met.

5f820b38d41 mesa: make error handling for glGetActiveUniform glthread-safe
src/mesa/main/glthread.c | 21 +++++++++++++++++++
src/mesa/main/glthread.h | 10 +++++++++
src/mesa/main/program_resource.c | 3 ++-
src/mesa/main/shader_query.cpp | 43 ++++++++++++++++++++++----------------
src/mesa/main/shaderapi.c | 4 ++--
src/mesa/main/shaderapi.h | 6 ++++--
src/mesa/main/shaderobj.c | 20 +++++++++++++-----
src/mesa/main/shaderobj.h | 4 ++++
src/mesa/main/transformfeedback.c | 4 ++--
src/mesa/main/uniform_query.cpp | 44 +++++++++++++++++++++++++++++----------
src/mesa/main/uniforms.c | 27 ++++++++++++------------
src/mesa/main/uniforms.h | 4 ++++
12 files changed, 136 insertions(+), 54 deletions(-)

Upstream: cgit.freedesktop.org


  • Share