Re: [Mesa-dev] [PATCH] mesa: faster validation of sampler unit mapping for SSO

2016-07-04 Thread Timothy Arceri
On Sat, 2016-06-25 at 10:32 +0200, Gregory Hainaut wrote: > Hello Timothy, > > On my use case: high FS frequency switches. Few sampler. > Perf event (relative to nouveau_dri.so) goes from 5.01% to 1.68% for > the _mesa_sampler_uniforms_pipeline_are_valid function. > I added this to the commit lo

Re: [Mesa-dev] [PATCH] mesa: faster validation of sampler unit mapping for SSO

2016-06-25 Thread Gregory Hainaut
Hello Timothy, On my use case: high FS frequency switches. Few sampler. Perf event (relative to nouveau_dri.so) goes from 5.01% to 1.68% for the _mesa_sampler_uniforms_pipeline_are_valid function. Unfortunately it didn't translate into measurable speed change. I have too much FPS variation (cache

Re: [Mesa-dev] [PATCH] mesa: faster validation of sampler unit mapping for SSO

2016-06-24 Thread Timothy Arceri
On Fri, 2016-06-24 at 10:07 +0200, Gregory Hainaut wrote: > Code was inspired from _mesa_update_shader_textures_used > > However unlike _mesa_update_shader_textures_used that only check for > a single > stage, it will check all stages. > > It avoids to loop on all uniforms, only active samplers a

[Mesa-dev] [PATCH] mesa: faster validation of sampler unit mapping for SSO

2016-06-24 Thread Gregory Hainaut
Code was inspired from _mesa_update_shader_textures_used However unlike _mesa_update_shader_textures_used that only check for a single stage, it will check all stages. It avoids to loop on all uniforms, only active samplers are checked. Signed-off-by: Gregory Hainaut --- src/mesa/main/uniform_