turnip: fix a sample shading case
authorJonathan Marek <jonathan@marek.ca>
Tue, 16 Jun 2020 13:11:02 +0000 (09:11 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 03:15:27 +0000 (03:15 +0000)
commitb6b98e95106b8d010d0d71baaba8637d5f6aaa3b
tree8e70d607853bc7fc69ed4fbf68a6772b80fdeac5
parentff2efd095e5a7543268e40112978b293a82518a7
turnip: fix a sample shading case

Check pipeline's sampleShadingEnable to enable sample shading.

Also fix behavior of gl_Fragcoord with sample shading.

Fixes at least:
dEQP-VK.pipeline.multisample.min_sample_shading.min_0_5.samples_4.primitive_triangle

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5499>
src/freedreno/vulkan/tu_pipeline.c