anv: coarse_pixel doesn't require any InputCoverageMaskState

The UNUSED is to avoid warnings on the gen9 variant.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38641>
This commit is contained in:
Iván Briano
2025-11-24 13:29:51 -08:00
committed by Marge Bot
parent 978d4b2a99
commit df15770785

View File

@@ -1075,15 +1075,13 @@ update_ps_extra_wm(struct anv_gfx_dynamic_state *hw_state,
if (!wm_prog_data)
return;
const bool uses_coarse_pixel =
UNUSED const bool uses_coarse_pixel =
brw_wm_prog_data_is_coarse(wm_prog_data, hw_state->fs_msaa_flags);
uint32_t InputCoverageMaskState = ICMS_NONE;
assert(!wm_prog_data->inner_coverage); /* Not available in SPIR-V */
if (!wm_prog_data->uses_sample_mask)
InputCoverageMaskState = ICMS_NONE;
else if (uses_coarse_pixel)
InputCoverageMaskState = ICMS_NORMAL;
else if (wm_prog_data->post_depth_coverage)
InputCoverageMaskState = ICMS_DEPTH_COVERAGE;
else