softpipe: Add support for TGSI_OPCODE_INTERP_CENTROID
authorGert Wollny <gert.wollny@collabora.com>
Wed, 24 Apr 2019 07:58:32 +0000 (09:58 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Wed, 1 May 2019 06:40:20 +0000 (08:40 +0200)
commit338017c58a4296a60fdc00747a0cd55da405bf7d
treed8f90e4266180518bca13d21dbc22cf869091f70
parentc3df4e0601baa5786787a1c8f2537d635aa1913b
softpipe: Add support for TGSI_OPCODE_INTERP_CENTROID

Like with interpolatAtSample this is also not really implementing the
according sampling and will only work correctly for pixels that are fully
covered, but since softpipe only supports one sample this is good enough
for now.

v2: Correct spelling (Roland Scheidegger)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c