nir: add lower_all_io_to_elements
I need this part of lower_all_io_to_temps but without the actual lowering to temps part. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
e5e67228f5
commit
1ae0c030cb
2 changed files with 2 additions and 0 deletions
|
|
@ -2273,6 +2273,7 @@ typedef struct nir_shader_compiler_options {
|
|||
bool lower_extract_word;
|
||||
|
||||
bool lower_all_io_to_temps;
|
||||
bool lower_all_io_to_elements;
|
||||
|
||||
/**
|
||||
* Does the driver support real 32-bit integers? (Otherwise, integers
|
||||
|
|
|
|||
|
|
@ -922,6 +922,7 @@ st_finalize_nir(struct st_context *st, struct gl_program *prog,
|
|||
NIR_PASS_V(nir, nir_split_var_copies);
|
||||
NIR_PASS_V(nir, nir_lower_var_copies);
|
||||
if (options->lower_all_io_to_temps ||
|
||||
options->lower_all_io_to_elements ||
|
||||
nir->info.stage == MESA_SHADER_VERTEX ||
|
||||
nir->info.stage == MESA_SHADER_GEOMETRY) {
|
||||
NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue