From 843614f45a6eb1b2e1e233a3d041a154de2b401e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 3 Apr 2024 13:46:38 -0400 Subject: [PATCH] nir: add compact_arrays to nir_shader_compiler_options this is used to inform passes about semantics for compact array builtins Reviewed-by: Jesse Natalie Part-of: --- src/compiler/nir/nir.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index f6871466fce..feefcf1cd2a 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4106,6 +4106,9 @@ typedef struct nir_shader_compiler_options { /** Lower VARYING_SLOT_LAYER in FS to SYSTEM_VALUE_LAYER_ID. */ bool lower_layer_fs_input_to_sysval; + /** clip/cull distance and tess level arrays use compact semantics */ + bool compact_arrays; + /** Options determining lowering and behavior of inputs and outputs. */ nir_io_options io_options;