[Mesa-dev] [PATCH 0/8] gl_FragCoord and gl_FrontFacing as system values

Brian Paul brianp at vmware.com
Fri Jan 8 07:39:22 PST 2016


On 01/07/2016 06:29 PM, Marek Olšák wrote:
> Hi,
>
> This series adds the possibility for drivers to get gl_FragCoord and gl_FrontFacing as system values. When FACE is a system value, it also changes its type to integer from floating-point.
>
> Each variable has its own Const flag / Gallium CAP, so drivers can choose whether they want this for each variable.
>
> This simplifies input handling in the radeonsi driver. With this, TGSI INPUT[i] becomes fragment shader input[i] in the hardware, so the driver doesn't have to do any translation of locations.
>
> Please review.

Looks good overall.  I probably should have made fragcoord and 
frontfacing system values from day one.  We could probably migrate all 
the drivers to that convention over time.

Clarification about the integer front/back face values would be good.

Reviewed-by: Brian Paul <brianp at vmware.com>

-Brian




More information about the mesa-dev mailing list