[Mesa-dev] [PATCH] i965: Allocate register sets at screen creation, not context creation.

Eric Anholt eric at anholt.net
Mon Mar 17 14:56:34 PDT 2014


Kenneth Graunke <kenneth at whitecape.org> writes:

> Register sets depend on the particular hardware generation, but don't
> depend on anything in the actual OpenGL context.  Computing them is
> fairly expensive, and they take up a large amount of memory.  Putting
> them in the screen allows us to compute/allocate them once for all
> contexts, saving both time and space.
>
> Improves the performance of a context creation/destruction
> microbenchmark by about 3x on my Haswell i7-4750HQ.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140317/415f6fe4/attachment.sig>


More information about the mesa-dev mailing list