glsl: set user defined varyings to smooth by default in ES
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 16 Feb 2016 00:03:56 +0000 (11:03 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 16 Feb 2016 20:23:49 +0000 (07:23 +1100)
commit07e6a37332d2d3908ee1f1160ee25ed9c127b770
treea7cdcb5b9e336b4fc239b14c5e317c96ff5a55fd
parentf63851289077714509e30b70cd922848cbe06499
glsl: set user defined varyings to smooth by default in ES

This is usually handled by the backends in order to handle the
various interactions with the gl_*Color built-ins.

The problem is this means linking will fail if one side on the
interface adds the smooth qualifier to the varying and the other
side just uses the default even though they match.

This fixes various deqp tests. The spec is not clear what to for
desktop GL so leave it as is for now.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92743
src/compiler/glsl/ast_to_hir.cpp