[Mesa-dev] [PATCH] Fix strict-aliasing violations in GLSL shader list implementation

Neil Roberts neil at linux.intel.com
Wed Jun 24 06:07:28 PDT 2015


Hi,

If we are going to have to prod all of the code using this list
implementation to solve this problem anyway maybe it would make more
sense to switch to a kernel-style list instead. There is already an
implementation of this in src/util/list.h. I think this style of list
only accesses the pointers through a single struct so there shouldn't be
any aliasing issues. It should also end up using one fewer pointer to
store the head sentinel. It would be nice to reduce the number of list
implementations used in Mesa.

Regards,
- Neil


More information about the mesa-dev mailing list