From 3c84809ca68e5ab65afc13188192016c8160dea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 2 Nov 2022 13:26:50 +0200 Subject: [PATCH] iris: enable NV_alpha_to_coverage_dither_control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli Reviewed-by: Ian Romanick Reviewed-by: Adam Jackson Part-of: --- src/gallium/drivers/iris/iris_screen.c | 1 + src/gallium/drivers/iris/iris_state.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 010d5671a5b..a8e8c3884dd 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -285,6 +285,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_FENCE_SIGNAL: case PIPE_CAP_IMAGE_STORE_FORMATTED: case PIPE_CAP_LEGACY_MATH_RULES: + case PIPE_CAP_ALPHA_TO_COVERAGE_DITHER_CONTROL: return true; case PIPE_CAP_UMA: return iris_bufmgr_vram_size(screen->bufmgr) == 0; diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index e8c73541326..15f1ed98fc6 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1477,7 +1477,7 @@ iris_create_blend_state(struct pipe_context *ctx, bs.AlphaToCoverageEnable = state->alpha_to_coverage; bs.IndependentAlphaBlendEnable = indep_alpha_blend; bs.AlphaToOneEnable = state->alpha_to_one; - bs.AlphaToCoverageDitherEnable = state->alpha_to_coverage; + bs.AlphaToCoverageDitherEnable = state->alpha_to_coverage_dither; bs.ColorDitherEnable = state->dither; /* bl.AlphaTestEnable and bs.AlphaTestFunction are filled in later. */ }