From 4c97ed4411e3653a082875b79587fb308c284a99 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 1 Jul 2014 20:54:01 -0400 Subject: gallium: switch dedicated centroid field to interpolation location The new location field can be either center, centroid, or sample, which indicates the location that the shader should interpolate at. Signed-off-by: Ilia Mirkin Reviewed-by: Roland Scheidegger --- src/gallium/docs/source/tgsi.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/docs') diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 4213b4ac185..5571b758f4b 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -2735,6 +2735,11 @@ This token is only valid for fragment shader INPUT declarations. The Interpolate field specifes the way input is being interpolated by the rasteriser and is one of TGSI_INTERPOLATE_*. +The Location field specifies the location inside the pixel that the +interpolation should be done at, one of ``TGSI_INTERPOLATE_LOC_*``. Note that +when per-sample shading is enabled, the implementation may choose to +interpolate at the sample irrespective of the Location field. + The CylindricalWrap bitfield specifies which register components should be subject to cylindrical wrapping when interpolating by the rasteriser. If TGSI_CYLINDRICAL_WRAP_X is set to 1, the X component -- cgit v1.2.3