mesa/src
Kenneth Graunke 704072afed glsl: Use ir_var_temporary when generating inline functions.
We were using ir_var_auto for the inlined function parameter variables,
which is wrong, as it suggests that those are real variables declared
by the program.

Normally this doesn't matter.  However, if you called built-ins at
global scope, it would pollute the global variable namespace with
these new parameter temporaries.  If the shader already had variables
with those names, the linker might see contradictory global variable
declarations and raise an error.

Making them temporaries indicates that these are just things generated
by the compiler internally.  This avoids confusing the linker.

Fixes a new Piglit test: glsl-fs-multiple-builtins.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99154
Reported-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
(cherry picked from commit 62b8bcda1c)
2017-01-24 01:13:32 +00:00
..
amd radv: Support loader interface version 3. 2017-01-24 01:13:30 +00:00
compiler glsl: Use ir_var_temporary when generating inline functions. 2017-01-24 01:13:32 +00:00
egl egl/wayland: use the destroy_window_callback for swrast 2017-01-24 01:13:31 +00:00
gallium gallium/hud: add missing break in hud_cpufreq_graph_install() 2017-01-24 01:13:32 +00:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-24 16:34:42 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx dri3: Fix MakeCurrent without a default framebuffer 2017-01-24 01:13:25 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel isl: Mark A4B4G4R4_UNORM as supported on gen8 2017-01-24 01:13:32 +00:00
loader loader: cleanup copyright section 2016-10-18 17:06:32 +01:00
mapi mapi: update the asm code to support x32 2017-01-24 01:13:29 +00:00
mesa i965: Make BLORP disable the NP Z PMA stall fix. 2017-01-24 01:13:31 +00:00
util util: fix list_is_singular() 2017-01-24 01:13:28 +00:00
vulkan/wsi vulkan: Add new cast macros for VkIcd types 2017-01-24 01:13:28 +00:00
Makefile.am anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00