zink: track min_samples state for per sample shading
authorSoroushIMG <soroush.kashani@imgtec.com>
Sat, 27 Aug 2022 00:08:46 +0000 (01:08 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 5 Sep 2022 12:45:04 +0000 (12:45 +0000)
commit359713d1743f9eab755e8ae502a22eae2e52c220
treededd9688f182d5ed709b5539d8a8303e2ae66a74
parent55e99a22f31e8cd0d58a2e419cfad212bea78fe7
zink: track min_samples state for per sample shading

Vulkan pipeline state sampleShadingEnable and minSampleShading are directly related to GL_SAMPLE_SHADING_ARB.
Track min_samples provided by st and include it in pipeline state.
This was seen as failures in cts cases where per sample shading along with sample interpolation qualifiers are tested:
dEQP-GL45-ES31.functional.shaders.multisample_interpolation.sample_qualifier.*

Cc: mesa-stable
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18314>
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_pipeline.c
src/gallium/drivers/zink/zink_types.h