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:
@@ -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;
|
||||
Reference in New Issue
Block a user