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