[Mesa-dev] [PATCH] gl-2.0: Add test for re-using shader objects

Pohjolainen, Topi topi.pohjolainen at intel.com
Fri Jun 26 07:59:13 PDT 2015


On Fri, Jun 26, 2015 at 10:54:48AM -0400, Ilia Mirkin wrote:
> On Fri, Jun 26, 2015 at 10:50 AM, Topi Pohjolainen
> <topi.pohjolainen at intel.com> wrote:
> > This is stimulating the shader binary re-use logic in i965 buffer
> > object uploading. Without relaxing the current constraints there
> > will be two identical copies in the cache. With the introduced
> > three patches the logic begins to share only one copy between
> > two entries in the cache.
> >
> > CC: Kenneth Graunke <kenneth at whitecape.org>
> > Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> > ---
> >  tests/spec/gl-2.0/CMakeLists.gl.txt       |   1 +
> >  tests/spec/gl-2.0/reuse_fragment_shader.c | 105 ++++++++++++++++++++++++++++++
> 
> also add to all.py?

Yes, and need to send to piglit list as well :)

I'm suspecting I need to write a few others as well. I just wanted to show
something to demonstrate the logic I proposed in my i965 patches.


More information about the mesa-dev mailing list