OSDN Git Service

etnaviv: fix varying interpolation
authorLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 15:01:40 +0000 (17:01 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 10:29:35 +0000 (12:29 +0200)
commitcedab87e762aa38997a07bc8a2eb624aed584afd
tree5e3b42e3a100d027acdf5f689d0d331acfe7e27b
parent03b1f8ba205d3eff59784faf805272a4d7aa4b18
etnaviv: fix varying interpolation

It seems that newer cores don't use the PA_ATTRIBUTES to decide if the
varying should bypass the flat shading, but derive this from the component
use. This fixes flat shading on GC880+.

VARYING_COMPONENT_USE_POINTCOORD is a bit of a misnomer now, as it isn't
only used for pointcoords, but missing a better name I left it as-is.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_compiler.c