Re: [Mesa-dev] [PATCH] mesa: debug facility to replace shaders when running apps

2015-08-23 Thread Tapani Pälli
On 08/21/2015 04:30 PM, Brian Paul wrote: On Fri, Aug 21, 2015 at 2:17 AM, Tapani Pälli mailto:tapani.pa...@intel.com>> wrote: Patch adds shader source and replace functionality in to the compiler. I had some very primitive support for this sort of thing already. See SHADER_SUBST in sha

Re: [Mesa-dev] [PATCH] mesa: debug facility to replace shaders when running apps

2015-08-21 Thread Brian Paul
On Fri, Aug 21, 2015 at 2:17 AM, Tapani Pälli wrote: > Patch adds shader source and replace functionality in to the compiler. > I had some very primitive support for this sort of thing already. See SHADER_SUBST in shaderapi.c However, feel free to replace it with something better/nicer. Also,

Re: [Mesa-dev] [PATCH] mesa: debug facility to replace shaders when running apps

2015-08-21 Thread Eero Tamminen
Hi, MESA_GLSL environment variable has few options which also dump shaders, but they're not useful for this because: * "dump": outputs "mangled" (per-processed) GLSL, to stdout * "log": outputs GLSL to file, but it goes to current directory (which app can change), adds comment to beginning o

[Mesa-dev] [PATCH] mesa: debug facility to replace shaders when running apps

2015-08-21 Thread Tapani Pälli
Patch adds shader source and replace functionality in to the compiler. This can be used to debug individual (failing) shaders and measure performance impact of each shader. Functionality is controlled via 2 environment variables: MESA_SHADER_DUMP - path where shader sources are dumped MESA_SHADER