radv: add radv_pipeline_key::dynamic_rasterization_samples
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Sep 2022 11:36:51 +0000 (13:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 10:30:33 +0000 (10:30 +0000)
commitf85b7e294b4c1b4512b07475102e06784740dba1
treec2727684bb551221f785d191e2b77a3b284f13a6
parent45d4ee91e0efb408ff77a6c8de0d3c1aa6d84885
radv: add radv_pipeline_key::dynamic_rasterization_samples

With GPL, it's possible to build the main FS without the multisample
state, but the number of rasterization samples is required for
lowering interpolateAtSample(). In this rare situation, the number of
samples will be passed through a new user SGPR.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18677>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.h