isl: use generated workaround helpers for Wa_1806565034

This workaround was enabled for gen12+, but only applies to gen12.0.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21912>
This commit is contained in:
Mark Janes
2023-03-14 14:50:00 -07:00
committed by Marge Bot
parent 3a5a7203af
commit a98f246857
2 changed files with 16 additions and 14 deletions

View File

@@ -946,7 +946,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
*
* So when robust image access is enabled, just avoid the workaround.
*/
if (devinfo->ver >= 12 && !opts->robust_image_access)
if (intel_needs_workaround(devinfo, 1806565034) && !opts->robust_image_access)
OPT(brw_nir_clamp_image_1d_2d_array_sizes);
const nir_lower_tex_options tex_options = {