iris: modify Wa_14014414195 to use intel_needs_workaround

Only applies to DG2, this was fixed in MTL.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25197>
This commit is contained in:
Tapani Pälli 2023-09-13 08:01:04 +03:00 committed by Marge Bot
parent 3740b6f599
commit 3ec953ed75

View file

@ -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) {