mesa/src
Nicolai Hähnle 77ea2ada5a glsl: give all unnamed structs the same name
As a result, unnamed structs defined in different places of the program
are considered the same types if they have the same fields in the same
order.

This will simplify matching of global variables whose type is an unnamed
struct.

It also fixes a memory leak when the same shader containing unnamed
structs is compiled over and over again: instead of creating a new type
each time, the existing type is re-used.

Finally, this does have the effect that some previously rejected programs
are now accepted, such as:

   struct {
      float a;
   } s1;

   struct {
      float a;
   } s2;

   s2 = s1;

C/C++ do not allow that, but GLSL does seem to want to treat unnamed
structs with the same fields as the same type at least during linking
(and apparently, some applications require it), so it seems odd to treat
them as different types elsewhere.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-06-13 09:35:36 +02:00
..
amd ac/gpu: drop duplicated code line. 2017-06-13 10:01:40 +10:00
compiler glsl: give all unnamed structs the same name 2017-06-13 09:35:36 +02:00
egl egl/android: support for EGL_KHR_partial_update 2017-06-11 01:02:09 +01:00
gallium radeonsi: pack si_context better 2017-06-12 18:24:37 +02:00
gbm gbm: manage only the required set of DRI extensions 2017-05-29 16:50:12 +01:00
getopt
glx dri: Optionally turn off a couple of GLX extensions based on driconf options 2017-06-07 19:43:54 +02:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel i965/cnl: Add a preliminary device for Cannonlake 2017-06-09 16:03:00 -07:00
loader loader: build libloader_dri3_helper.la only with HAVE_PLATFORM_X11 2017-05-19 19:44:22 +01:00
mapi mesa: add KHR_no_error support for glTexSubImage*D() 2017-06-07 11:04:40 +02:00
mesa st/mesa: skip texture validation logic when nothing has changed 2017-06-13 11:24:32 +10:00
util u_dynarray: fix coverity warning about ignoring return value from reralloc 2017-06-13 06:40:25 +10:00
vulkan Android: vulkan: fix build error due to extra ) 2017-06-08 07:26:04 -05:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
SConscript