radv: separate the sample shading state between FS and graphics pipeline
Sample shading can be enabled inside the fragment shader and also per-pipeline. Separate both cases to be able to enable sample shading by only binding a FS. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22110>
This commit is contained in:

committed by
Marge Bot

parent
774e055823
commit
8f6998ad8a
@@ -476,15 +476,9 @@ radv_pipeline_init_multisample_state(const struct radv_device *device,
|
||||
*
|
||||
* Otherwise, sample shading is considered disabled."
|
||||
*/
|
||||
if (pipeline->base.shaders[MESA_SHADER_FRAGMENT]->info.ps.uses_sample_shading ||
|
||||
(state->ms && state->ms->sample_shading_enable)) {
|
||||
if (pipeline->base.shaders[MESA_SHADER_FRAGMENT]->info.ps.uses_sample_shading) {
|
||||
ms->min_sample_shading = 1.0f;
|
||||
} else {
|
||||
ms->min_sample_shading = state->ms->min_sample_shading;
|
||||
}
|
||||
|
||||
if (state->ms && state->ms->sample_shading_enable) {
|
||||
ms->sample_shading_enable = true;
|
||||
ms->min_sample_shading = state->ms->min_sample_shading;
|
||||
}
|
||||
|
||||
pipeline->pa_sc_mode_cntl_1 =
|
||||
|
Reference in New Issue
Block a user