summaryrefslogtreecommitdiff
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2017-02-14 22:20:32 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2017-02-16 17:28:03 -0800
commite10f522cd7dd1c1a9abf79ad62b7be8486a6b9b8 (patch)
treec0f8d1982ae21b969cf4356a86c111877331e6ee /src/compiler/nir
parent161d3e81bef19ddd7870ee88d50479439f28e82b (diff)
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>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir.h2
-rw-r--r--src/compiler/nir/nir_lower_64bit_packing.c (renamed from src/compiler/nir/nir_lower_double_packing.c)7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index d92e6eb110..84451a17aa 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2549,7 +2549,7 @@ typedef enum {
} nir_lower_doubles_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);
diff --git a/src/compiler/nir/nir_lower_double_packing.c b/src/compiler/nir/nir_lower_64bit_packing.c
index 61c4ea65ea..f523cebf47 100644
--- a/src/compiler/nir/nir_lower_double_packing.c
+++ b/src/compiler/nir/nir_lower_64bit_packing.c
@@ -49,7 +49,7 @@ lower_unpack_64(nir_builder *b, nir_ssa_def *src)
}
static void
-lower_double_pack_impl(nir_function_impl *impl)
+lower_64bit_pack_impl(nir_function_impl *impl)
{
nir_builder b;
nir_builder_init(&b, impl);
@@ -88,11 +88,10 @@ lower_double_pack_impl(nir_function_impl *impl)
}
void
-nir_lower_double_pack(nir_shader *shader)
+nir_lower_64bit_pack(nir_shader *shader)
{
nir_foreach_function(function, shader) {
if (function->impl)
- lower_double_pack_impl(function->impl);
+ lower_64bit_pack_impl(function->impl);
}
}
-