mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 01:20:17 +01:00
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:
parent
3740b6f599
commit
3ec953ed75
1 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue