[Mesa-dev] [PATCH 0/2 v2] Add support for clip distances in Gallium

Marek Olšák maraeo at gmail.com
Tue Dec 13 15:24:31 PST 2011


On Tue, Dec 13, 2011 at 11:22 PM, Jose Fonseca <jfonseca at vmware.com> wrote:
> Another approach would be just to add the property, and kill output mask. Two ways of doing the same is what I'd like to avoid. I'll need a day (it's late here) to think about this and see how output mask is being actually used in the code.

I think it would be better to axe the UsageMask (unless there's a need
to declare an output with the mask _Y_W for example) and add a
NumComponents field. The interpolation of varyings would be less
computionally-expensive if we knew the exact number of used components
and the number were less than 4 (depends on hw).

Marek


More information about the mesa-dev mailing list