mesa/src
Erik Faye-Lund 127f04f288 compiler/glsl: do not cast struct to string
When formatting the error here, we're currently casting an
ast_type_qualifier as a string.

But we don't need to use a string here at all, because we know from
context exactly what qualifier we're talking about, because the
if-statements explicitly check for the uniform-qualifier.

So let's just hard-code the format-string to reference the right
qualifier instead of the string-shenanigans. The latter cannot do the
right thing.

Fixes: 2d03f48a65 ("glsl: Add parsing for GLSL uniform blocks.")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9911>
(cherry picked from commit 437ed05708)
2021-04-21 09:53:37 -07:00
..
amd ac/gpu_info: fix more non-coherent RB and GL2 combinations 2021-04-13 10:28:01 +02:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom v3d: Clean up vestiges of alpha test lowering. 2021-02-10 15:11:15 -08:00
compiler compiler/glsl: do not cast struct to string 2021-04-21 09:53:37 -07:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/haiku: Fix ConfigID naming inline with mesa 2021-04-10 04:36:35 +00:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno ir3: Don't copy propagate arrays in ir3_cp 2021-04-07 10:24:28 -07:00
gallium iris: Set BO maps to NULL in bo_free 2021-04-21 09:53:37 -07:00
gbm egl: fix software flag in _eglAddDevice call on DRM 2021-03-26 09:52:43 -07:00
getopt
glx Adjust dylib compatibility versions to match what was set by mesa-18.3's autotools-based builds 2021-03-11 14:12:24 -08:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel anv: Clean up anv_semaphore::base on the error path 2021-04-21 09:53:36 -07:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi Adjust dylib compatibility versions to match what was set by mesa-18.3's autotools-based builds 2021-03-11 14:12:24 -08:00
mesa gallium/st: correct range for int16 2021-04-21 09:53:37 -07:00
microsoft microsoft/clc: Use driver_location for metadata instead of re-computing offsets 2021-03-11 14:12:23 -08:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost panfrost: Enable AFBC buffer sharing 2021-04-21 09:53:37 -07:00
util util: rework AMD cpu L3 cache affinity code. 2021-03-29 10:08:35 -07:00
virtio virgl: Enable GL_EXT_texture_sRGB_RG8 2021-01-04 21:19:35 +00:00
vulkan wsi/x11: Wait for fences with IMMEDIATE on Xwayland 2021-04-07 10:24:27 -07:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00