[Mesa-dev] [PATCH] llvmpipe: Optimize new fs state setup

Keith Whitwell keithw at vmware.com
Thu Jun 30 02:02:43 PDT 2011


On Wed, 2011-06-29 at 16:16 -0700, Corbin Simpson wrote:
> Okay, so maybe I'm failing to recognize the exact situation here, but
> wouldn't it be possible to mark the FS state with a serial number and
> just compare those? Or are these FS states not CSO-cached?

No, the struct being compared is poorly named & collides with a CSO
entity.  It's really all the state which the compiled fragment shader
will reference when it is later invoked.  It's all packed into a single
struct because it's easier to pass a single parameter to llvm-compiled
shaders and add/change that parameter, but it is somewhat non-orthogonal
and we end up generating too many of them.

Keith



More information about the mesa-dev mailing list