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.

Thoughts?

[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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to