diff options
author | Jonathan Marek <[email protected]> | 2019-05-08 12:45:48 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-05-10 15:10:41 +0000 |
commit | d0bff89159bead4ba850182e5a30d0745510f773 (patch) | |
tree | 298e51fffbc2bdfeb27ebdc8cff1ba2673f872ec /src/mesa | |
parent | f8bda81887219d9a56b5427c20be3e63b5c3d136 (diff) |
nir: allow specifying a set of opcodes in lower_alu_to_scalar
This can be used by both etnaviv and freedreno/a2xx as they are both vec4
architectures with some instructions being scalar-only.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_nir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 57064251313..a87284ef2a7 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -315,7 +315,7 @@ st_nir_opts(nir_shader *nir, bool scalar) NIR_PASS_V(nir, nir_lower_vars_to_ssa); if (scalar) { - NIR_PASS_V(nir, nir_lower_alu_to_scalar); + NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL); NIR_PASS_V(nir, nir_lower_phis_to_scalar); } @@ -431,7 +431,7 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog, NIR_PASS_V(nir, nir_lower_var_copies); if (is_scalar) { - NIR_PASS_V(nir, nir_lower_alu_to_scalar); + NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL); } /* before buffers and vars_to_ssa */ |