intel: set compact_arrays in compiler options

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28601>
This commit is contained in:
Mike Blumenkrantz 2024-04-05 11:15:36 -04:00 committed by Marge Bot
parent d694c1b094
commit 39b66f9c84
2 changed files with 2 additions and 0 deletions

View file

@ -31,6 +31,7 @@
const struct nir_shader_compiler_options brw_scalar_nir_options = {
.avoid_ternary_with_two_constants = true,
.compact_arrays = true,
.divergence_analysis_options =
(nir_divergence_single_patch_per_tcs_subgroup |
nir_divergence_single_patch_per_tes_subgroup |

View file

@ -6,6 +6,7 @@
#include "elk_nir_options.h"
#define COMMON_OPTIONS \
.compact_arrays = true, \
.has_uclz = true, \
.lower_fdiv = true, \
.lower_scmp = true, \