summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-09-14 10:04:47 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-15 13:31:27 -0700
commit114874b22beafb2d07006b197c62d717fc7f80cc (patch)
treeaa7fc0a4eb39c36a58afb72a9d83d873500e1006 /src/compiler/nir
parent0d2eb8c14d8c791603cb60cb56ed468ee49543ad (diff)
downloadexternal_mesa3d-114874b22beafb2d07006b197c62d717fc7f80cc.tar.gz
external_mesa3d-114874b22beafb2d07006b197c62d717fc7f80cc.tar.bz2
external_mesa3d-114874b22beafb2d07006b197c62d717fc7f80cc.zip
i965/fs: Use sample interpolation for interpolateAtCentroid in persample mode
From the ARB_gpu_shader5 spec: The built-in functions interpolateAtCentroid() and interpolateAtSample() will sample variables as though they were declared with the "centroid" or "sample" qualifiers, respectively. When running with persample dispatch forced by the API, we interpolate anything that isn't flat as if it's qualified by "sample". In order to keep interpolateAtCentroid() consistent with the "centroid" qualifier, we need to make interpolateAtCentroid() do sample interpolation instead. Nothing in the GLSL spec guarantees that the result of interpolateAtCentroid is uniform across samples in any way, so this is a perfectly fine thing to do. Fixes 8 of the new dEQP-VK.pipeline.multisample_interpolation.* Vulkan CTS tests that specifically validate consistency between the "sample" qualifier and interpolateAtSample() Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir')
0 files changed, 0 insertions, 0 deletions