st/program: stop using PIPE_CAP_NIR_COMPACT_ARRAYS and use compact_arrays

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28601>
This commit is contained in:
Mike Blumenkrantz 2024-04-05 11:36:42 -04:00 committed by Marge Bot
parent cba1b03e86
commit 8d9c5cc6ed
1 changed files with 1 additions and 3 deletions

View File

@ -665,9 +665,7 @@ lower_ucp(struct st_context *st,
if (nir->info.outputs_written & VARYING_BIT_CLIP_DIST0)
NIR_PASS(_, nir, nir_lower_clip_disable, ucp_enables);
else {
struct pipe_screen *screen = st->screen;
bool can_compact = screen->get_param(screen,
PIPE_CAP_NIR_COMPACT_ARRAYS);
bool can_compact = nir->options->compact_arrays;
bool use_eye = st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX] != NULL;
gl_state_index16 clipplane_state[MAX_CLIP_PLANES][STATE_LENGTH] = {{0}};