From 3ec953ed755233c2e50aa4517f3c09136e067ddd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Wed, 13 Sep 2023 08:01:04 +0300 Subject: [PATCH] iris: modify Wa_14014414195 to use intel_needs_workaround MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Only applies to DG2, this was fixed in MTL. Signed-off-by: Tapani Pälli Reviewed-by: Rohan Garg Part-of: --- src/gallium/drivers/iris/iris_state.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index c7e3423..14166de 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2488,9 +2488,12 @@ iris_upload_sampler_states(struct iris_context *ice, gl_shader_stage stage) memset(map, 0, 4 * GENX(SAMPLER_STATE_length)); } else { const uint32_t *sampler_state = state->sampler_state; + #if GFX_VERx10 == 125 - if (tex && tex->res->base.b.target == PIPE_TEXTURE_3D) - sampler_state = state->sampler_state_3d; + if (intel_needs_workaround(screen->devinfo, 14014414195) && + tex && tex->res->base.b.target == PIPE_TEXTURE_3D) { + sampler_state = state->sampler_state_3d; + } #endif if (!state->needs_border_color) { -- 2.7.4