anv: track sample shading enable & min sample shading

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27803>
This commit is contained in:
Lionel Landwerlin 2024-04-17 21:46:05 +03:00 committed by Marge Bot
parent b80dd22d57
commit 25b57a6a75
2 changed files with 7 additions and 0 deletions

View file

@ -2925,6 +2925,11 @@ anv_graphics_pipeline_emit(struct anv_graphics_pipeline *pipeline,
if (pipeline->base.shaders[MESA_SHADER_FRAGMENT]) {
const struct brw_wm_prog_data *wm_prog_data = get_wm_prog_data(pipeline);
if (state->ms) {
pipeline->sample_shading_enable = state->ms->sample_shading_enable;
pipeline->min_sample_shading = state->ms->min_sample_shading;
}
if (wm_prog_data_dynamic(wm_prog_data)) {
pipeline->fs_msaa_flags = INTEL_MSAA_FLAG_ENABLE_DYNAMIC;

View file

@ -4573,6 +4573,8 @@ struct anv_graphics_pipeline {
bool kill_pixel;
bool force_fragment_thread_dispatch;
bool uses_xfb;
bool sample_shading_enable;
float min_sample_shading;
/* Number of VERTEX_ELEMENT_STATE input elements used by the shader */
uint32_t vs_input_elements;