mesa/src/mesa
Jose Fonseca fa46848e51 scons: Allow building with Address Sanitizer.
libasan is never linked to shared objects (which doesn't go well with
-z,defs).  It must either be linked to the main executable, or (more
practically for OpenGL drivers) be pre-loaded via LD_PRELOAD.

Otherwise works.

I didn't find anything with llvmpipe.  I suspect the fact that the
JIT compiled code isn't instrumented means there are lots of errors it
can't catch.

But for non-JIT drivers, the Address/Leak Sanitizers seem like a faster
alternative to Valgrind.

Usage (Ubuntu 15.10):

   scons asan=1 libgl-xlib
   export LD_LIBRARY_PATH=$PWD/build/linux-x86_64-debug/gallium/targets/libgl-xlib
   LD_PRELOAD=libasan.so.2 any-opengl-application

Acked-by: Roland Scheidegger <sroland@vmware.com>
2016-04-13 06:54:32 +01:00
..
drivers scons: Allow building with Address Sanitizer. 2016-04-13 06:54:32 +01:00
main mesa: Change an error code in glSamplerParameterI[iu]v(). 2016-04-12 20:30:32 -07:00
math mesa: Mark Identity as const 2016-01-11 14:34:38 -08:00
program mesa: remove unrequired else 2016-04-03 09:55:19 +10:00
sparc
state_tracker st/mesa: Replace GLvoid with void 2016-04-12 13:37:16 -06:00
swrast mesa: replace gl_context->Multisample._Enabled with _mesa_is_multisample_enabled. 2016-03-24 08:36:43 -06:00
swrast_setup
tnl program: Remove condition-code and precision support. 2016-03-01 11:41:29 -08:00
tnl_dd t_dd_dmatmp: Check provoking vertex convention when rendering quads 2015-10-06 11:16:19 -07:00
vbo mesa: expose EXT_base_instance in ES3 contexts 2016-04-03 20:40:55 -04:00
x86
x86-64 mesa: Use SSE prefetch instructions rather than 3DNow instructions 2016-02-04 22:02:31 +11:00
.gitignore
Android.gen.mk mapi: Fix enums.c build with other build systems. 2015-12-01 12:19:02 -08:00
Android.libmesa_dricore.mk Android: fix x86 gallium builds 2016-04-01 13:44:22 +01:00
Android.libmesa_glsl_utils.mk Android: fix build break from nir/glsl move to compiler/ 2016-02-29 10:51:44 +00:00
Android.libmesa_sse41.mk Android: fix x86 gallium builds 2016-04-01 13:44:22 +01:00
Android.libmesa_st_mesa.mk Android: fix x86 gallium builds 2016-04-01 13:44:22 +01:00
Android.mesa_gen_matypes.mk Android: fix build break from nir/glsl move to compiler/ 2016-02-29 10:51:44 +00:00
Android.mk Android: fix x86 gallium builds 2016-04-01 13:44:22 +01:00
gl.pc.in
Makefile.am mesa: automake: update and reuse X86_SSE41_FILES list 2016-04-11 19:08:23 +01:00
Makefile.sources mesa: add missing header to the tarball 2016-04-11 19:08:23 +01:00
SConscript nir: move glsl_types.{cpp,h} to compiler 2016-01-26 16:08:24 +00:00