[Mesa-dev] [RFC PATCH 0/2] i965/gs: Precompile geometry shaders.

Paul Berry stereotype441 at gmail.com
Wed Oct 23 19:29:06 CEST 2013

This series adds precompilation for geometry shaders.

I'm not 100% certain this is worth doing, because:

(a) I'm aware of very few programs out in the wild that actually use
geometry shaders right now.

(b) Since i965 hardware has no ability to remap vertex shader outputs
to geometry shader inputs, part of the geometry shader compilation key
is the exact set of outputs produced by the vertex shader.  When
precompiling the geometry shader, the best we can do is assume that
this is the same as the set of inputs consumed by the geometry shader.
If, when the geometry shader is finally used, this proves not to be
the case, then precompilation will have been a waste of time.


[RFC PATCH 1/2] i965/vec4: Extract function to set up vec4 prog key for precompiling.
[RFC PATCH 2/2] i965/gs: Precompile geometry shaders.

More information about the mesa-dev mailing list