nir: Rename lower_double_pack to lower_64bit_pack

There's nothing "double" about it other than, perhaps, the fact that it
packs two 32-bit values.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand
2017-02-14 22:20:32 -08:00
parent 161d3e81be
commit e10f522cd7
4 changed files with 6 additions and 7 deletions

View File

@@ -205,6 +205,7 @@ NIR_FILES = \
nir/nir_liveness.c \ nir/nir_liveness.c \
nir/nir_loop_analyze.c \ nir/nir_loop_analyze.c \
nir/nir_loop_analyze.h \ nir/nir_loop_analyze.h \
nir/nir_lower_64bit_packing.c \
nir/nir_lower_alu_to_scalar.c \ nir/nir_lower_alu_to_scalar.c \
nir/nir_lower_atomics.c \ nir/nir_lower_atomics.c \
nir/nir_lower_bitmap.c \ nir/nir_lower_bitmap.c \
@@ -213,7 +214,6 @@ NIR_FILES = \
nir/nir_lower_clip_cull_distance_arrays.c \ nir/nir_lower_clip_cull_distance_arrays.c \
nir/nir_lower_constant_initializers.c \ nir/nir_lower_constant_initializers.c \
nir/nir_lower_double_ops.c \ nir/nir_lower_double_ops.c \
nir/nir_lower_double_packing.c \
nir/nir_lower_drawpixels.c \ nir/nir_lower_drawpixels.c \
nir/nir_lower_global_vars_to_local.c \ nir/nir_lower_global_vars_to_local.c \
nir/nir_lower_gs_intrinsics.c \ nir/nir_lower_gs_intrinsics.c \

View File

@@ -2549,7 +2549,7 @@ typedef enum {
} nir_lower_doubles_options; } nir_lower_doubles_options;
void nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options); void nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options);
void nir_lower_double_pack(nir_shader *shader); void nir_lower_64bit_pack(nir_shader *shader);
bool nir_normalize_cubemap_coords(nir_shader *shader); bool nir_normalize_cubemap_coords(nir_shader *shader);

View File

@@ -49,7 +49,7 @@ lower_unpack_64(nir_builder *b, nir_ssa_def *src)
} }
static void static void
lower_double_pack_impl(nir_function_impl *impl) lower_64bit_pack_impl(nir_function_impl *impl)
{ {
nir_builder b; nir_builder b;
nir_builder_init(&b, impl); nir_builder_init(&b, impl);
@@ -88,11 +88,10 @@ lower_double_pack_impl(nir_function_impl *impl)
} }
void void
nir_lower_double_pack(nir_shader *shader) nir_lower_64bit_pack(nir_shader *shader)
{ {
nir_foreach_function(function, shader) { nir_foreach_function(function, shader) {
if (function->impl) if (function->impl)
lower_double_pack_impl(function->impl); lower_64bit_pack_impl(function->impl);
} }
} }

View File

@@ -511,7 +511,7 @@ nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
nir_lower_dfract | nir_lower_dfract |
nir_lower_dround_even | nir_lower_dround_even |
nir_lower_dmod); nir_lower_dmod);
OPT_V(nir_lower_double_pack); OPT_V(nir_lower_64bit_pack);
} while (progress); } while (progress);
return nir; return nir;