radv: fix enabling sample shading with SampleID/SamplePosition
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Nov 2019 17:29:00 +0000 (18:29 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Nov 2019 06:22:54 +0000 (07:22 +0100)
commit86a5fbfd4afb4fb53ab8ea0a13dda33b32f8b79b
tree4e44ea2793d29274481c09122e3b1fb5876393c4
parent62ff90cc5e444d173a92cb26da38a2ff252731df
radv: fix enabling sample shading with SampleID/SamplePosition

When a fragment shader includes an input variable decorated with
SampleId or SamplePosition, sample shading should be enabled
because minSampleShadingFactor is expected to be 1.0.

Cc: 19.2, 19.3 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c