mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
compiler/lower_64bit_packing: rename the pass to be more generic
It can do 32-bit packing too now. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
d2564af842
commit
2d648e5ba3
7 changed files with 9 additions and 9 deletions
|
|
@ -125,7 +125,7 @@ radv_optimize_nir(struct nir_shader *shader)
|
|||
progress = false;
|
||||
|
||||
NIR_PASS_V(shader, nir_lower_vars_to_ssa);
|
||||
NIR_PASS_V(shader, nir_lower_64bit_pack);
|
||||
NIR_PASS_V(shader, nir_lower_pack);
|
||||
NIR_PASS_V(shader, nir_lower_alu_to_scalar);
|
||||
NIR_PASS_V(shader, nir_lower_phis_to_scalar);
|
||||
|
||||
|
|
|
|||
|
|
@ -212,7 +212,6 @@ NIR_FILES = \
|
|||
nir/nir_liveness.c \
|
||||
nir/nir_loop_analyze.c \
|
||||
nir/nir_loop_analyze.h \
|
||||
nir/nir_lower_64bit_packing.c \
|
||||
nir/nir_lower_alpha_test.c \
|
||||
nir/nir_lower_alu_to_scalar.c \
|
||||
nir/nir_lower_atomics_to_ssbo.c \
|
||||
|
|
@ -236,6 +235,7 @@ NIR_FILES = \
|
|||
nir/nir_lower_io_to_temporaries.c \
|
||||
nir/nir_lower_io_to_scalar.c \
|
||||
nir/nir_lower_io_types.c \
|
||||
nir/nir_lower_packing.c \
|
||||
nir/nir_lower_passthrough_edgeflags.c \
|
||||
nir/nir_lower_patch_vertices.c \
|
||||
nir/nir_lower_phis_to_scalar.c \
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@ files_libnir = files(
|
|||
'nir_liveness.c',
|
||||
'nir_loop_analyze.c',
|
||||
'nir_loop_analyze.h',
|
||||
'nir_lower_64bit_packing.c',
|
||||
'nir_lower_alu_to_scalar.c',
|
||||
'nir_lower_alpha_test.c',
|
||||
'nir_lower_atomics_to_ssbo.c',
|
||||
|
|
@ -126,6 +125,7 @@ files_libnir = files(
|
|||
'nir_lower_io_to_temporaries.c',
|
||||
'nir_lower_io_to_scalar.c',
|
||||
'nir_lower_io_types.c',
|
||||
'nir_lower_packing.c',
|
||||
'nir_lower_passthrough_edgeflags.c',
|
||||
'nir_lower_patch_vertices.c',
|
||||
'nir_lower_phis_to_scalar.c',
|
||||
|
|
|
|||
|
|
@ -2786,7 +2786,7 @@ typedef enum {
|
|||
} nir_lower_doubles_options;
|
||||
|
||||
bool nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options);
|
||||
bool nir_lower_64bit_pack(nir_shader *shader);
|
||||
bool nir_lower_pack(nir_shader *shader);
|
||||
|
||||
bool nir_normalize_cubemap_coords(nir_shader *shader);
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ lower_unpack_64_to_16(nir_builder *b, nir_ssa_def *src)
|
|||
}
|
||||
|
||||
static bool
|
||||
lower_64bit_pack_impl(nir_function_impl *impl)
|
||||
lower_pack_impl(nir_function_impl *impl)
|
||||
{
|
||||
nir_builder b;
|
||||
nir_builder_init(&b, impl);
|
||||
|
|
@ -148,13 +148,13 @@ lower_64bit_pack_impl(nir_function_impl *impl)
|
|||
}
|
||||
|
||||
bool
|
||||
nir_lower_64bit_pack(nir_shader *shader)
|
||||
nir_lower_pack(nir_shader *shader)
|
||||
{
|
||||
bool progress = false;
|
||||
|
||||
nir_foreach_function(function, shader) {
|
||||
if (function->impl)
|
||||
progress |= lower_64bit_pack_impl(function->impl);
|
||||
progress |= lower_pack_impl(function->impl);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -586,7 +586,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
|
|||
nir_lower_dfract |
|
||||
nir_lower_dround_even |
|
||||
nir_lower_dmod);
|
||||
OPT(nir_lower_64bit_pack);
|
||||
OPT(nir_lower_pack);
|
||||
} while (progress);
|
||||
|
||||
return nir;
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ st_nir_opts(nir_shader *nir)
|
|||
NIR_PASS_V(nir, nir_lower_alu_to_scalar);
|
||||
NIR_PASS_V(nir, nir_lower_phis_to_scalar);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_64bit_pack);
|
||||
NIR_PASS_V(nir, nir_lower_pack);
|
||||
NIR_PASS(progress, nir, nir_copy_prop);
|
||||
NIR_PASS(progress, nir, nir_opt_remove_phis);
|
||||
NIR_PASS(progress, nir, nir_opt_dce);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue