aboutsummaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-link-bug38015.c
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-06-19 12:44:53 -0700
committerPaul Berry <stereotype441@gmail.com>2012-06-26 07:38:36 -0700
commit3c830b8713fe2afc7134aad8152427e8c50a41ab (patch)
treeeb65239ba2b972b2da535b5cf28065c56f74e6d9 /tests/shaders/glsl-link-bug38015.c
parent706971b03053f1456cafbfea0be2f1167a52f2c8 (diff)
msaa: Test that the "centroid" interpolation qualifier works correctly.
This patch adds tests to verify that: - When GL_MULTISAMPLE is disabled, the "centroid" keyword is ignored, and interpolation is performed at pixel centers (consistent with the GL rules for non-antialiased rendering). - When GL_MULTISAMPLE is enabled and the "centroid" keyword is used, interpolation is performed at a location within the boundary of the triangle. The test also verifies that errors introduced into derivatives are kept within reasonable bounds. - When GL_MULTISAMPLE is enabled and the "centroid" keyword is absent, derivatives are accurate. Verified using nVidia's proprietary binary driver for Linux. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/shaders/glsl-link-bug38015.c')
0 files changed, 0 insertions, 0 deletions