mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
gallium: pass lower_to_scalar_filter to lower_to_scalar pass
v2: Fix the callback name Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9943>
This commit is contained in:
parent
b4600d9352
commit
e36d5c5f6e
1 changed files with 4 additions and 2 deletions
|
|
@ -272,7 +272,8 @@ st_nir_opts(nir_shader *nir)
|
|||
NIR_PASS(progress, nir, nir_opt_dead_write_vars);
|
||||
|
||||
if (nir->options->lower_to_scalar) {
|
||||
NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL, NULL);
|
||||
NIR_PASS_V(nir, nir_lower_alu_to_scalar,
|
||||
nir->options->lower_to_scalar_filter, NULL);
|
||||
NIR_PASS_V(nir, nir_lower_phis_to_scalar);
|
||||
}
|
||||
|
||||
|
|
@ -403,7 +404,8 @@ st_nir_preprocess(struct st_context *st, struct gl_program *prog,
|
|||
NIR_PASS_V(nir, nir_lower_var_copies);
|
||||
|
||||
if (options->lower_to_scalar) {
|
||||
NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL, NULL);
|
||||
NIR_PASS_V(nir, nir_lower_alu_to_scalar,
|
||||
options->lower_to_scalar_filter, NULL);
|
||||
}
|
||||
|
||||
/* before buffers and vars_to_ssa */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue