mesa/src
Eduardo Lima Mitev ebb7ccb306 glsl_parser_extra: Add utility to copy symbols between symbol tables
Some symbols gathered in the symbols table during parsing are needed
later for the compile and link stages, so they are moved along the
process. Currently, only functions and non-temporary variables are
copied between symbol tables. However, the built-in gl_PerVertex
interface blocks are also needed during the linking stage (the last
step), to match re-declared blocks of inter-stage shaders.

This patch adds a new utility function that will factorize current code
that copies functions and variables between two symbol tables, and in
addition will copy explicitly declared gl_PerVertex blocks too.

The function will be used in a subsequent patch.

v2 (Neil Roberts):
Allow the src symbol table to be NULL and explicitly copy the
gl_PerVertex symbols in case they are not referenced in the exec_list.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Eduardo Lima Mitev <elima@igalia.com>
Signed-off-by: Neil Roberts <nroberts@igalia.com>
(cherry picked from commit 4c62a270a9)
2017-11-27 19:20:47 +00:00
..
amd radv: Free temporary syncobj after waiting on it. 2017-11-17 19:24:29 +00:00
broadcom broadcom/vc5: Remove unused v3d_compiler.c 2017-11-13 17:17:16 +00:00
compiler glsl_parser_extra: Add utility to copy symbols between symbol tables 2017-11-27 19:20:47 +00:00
egl egl/wayland: Add a fallback when fourcc query isn't supported 2017-11-17 19:24:29 +00:00
gallium ddebug: fix use-after-free of streamout targets 2017-11-24 18:44:48 +00:00
gbm meson: build libEGL 2017-10-20 16:46:48 -07:00
getopt
glx glx/dri3: Fix passing renderType into glXCreateContext 2017-11-17 19:24:29 +00:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel i965/fs: Handle negating immediates on MADs when propagating saturates 2017-11-24 18:48:33 +00:00
loader loader/dri3: Improve dri3 thread-safety 2017-11-17 19:24:29 +00:00
mapi mapi/shared-glapi/test: rework glapitable.h handling 2017-10-13 11:12:08 -07:00
mesa i965: Mark BOs as external when we export their handle 2017-11-24 18:40:14 +00:00
util util: Fix disk_cache index calculation on big endian 2017-11-27 18:33:40 +00:00
vulkan meson: move wayland_drm_protocol generation to wayland-drm 2017-10-20 16:46:48 -07:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am automake: include git_sha1.h.in in release tarball 2017-11-13 17:17:15 +00:00
meson.build meson: build libEGL 2017-10-20 16:46:48 -07:00
SConscript scons: use python3-compatible print() 2017-09-25 11:57:12 +01:00