From: Jason Ekstrand Date: Fri, 16 Aug 2019 22:48:53 +0000 (-0500) Subject: iris: Only request an input mask if the shader needs it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16edd02bfa872c9af8725f732d81760c948d76e8;p=mesa.git iris: Only request an input mask if the shader needs it Fixes: aebca3961b "iris: Fix handling of SIMD32 fragment shaders" Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index bfc29d71496..3a31172c896 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4778,7 +4778,9 @@ iris_upload_dirty_render_state(struct iris_context *ice, uint32_t psx_state[GENX(3DSTATE_PS_EXTRA_length)] = {0}; iris_pack_command(GENX(3DSTATE_PS_EXTRA), psx_state, psx) { #if GEN_GEN >= 9 - if (wm_prog_data->post_depth_coverage) + if (!wm_prog_data->uses_sample_mask) + psx.InputCoverageMaskState = ICMS_NONE; + else if (wm_prog_data->post_depth_coverage) psx.InputCoverageMaskState = ICMS_DEPTH_COVERAGE; else if (wm_prog_data->inner_coverage && cso->conservative_rasterization)