summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2022-06-08 15:45:57 +0200
committerMarge Bot <emma+marge@anholt.net>2022-06-10 22:14:14 +0000
commitfff03d2bd3452d0472886b72b5cc7c7770796e80 (patch)
tree8cffb855d2da027f96171c8a8827867f8b24ab04
parentb386802bb96f30a62ff839f1a22d60f01ca98c22 (diff)
microsoft/compiler: mark image-functions as such
These functions only deal with images, so let's make that clear. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16904>
-rw-r--r--src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c b/src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c
index 1eab15af8d2..38e7ecae720 100644
--- a/src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c
+++ b/src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c
@@ -526,7 +526,7 @@ lower_int_cubemap_to_array_tex(nir_builder *b, nir_tex_instr *tex)
}
static nir_ssa_def *
-lower_cube_intrinsic(nir_builder *b, nir_intrinsic_instr *intr)
+lower_cube_image_intrinsic(nir_builder *b, nir_intrinsic_instr *intr)
{
if (intr->intrinsic == nir_intrinsic_image_size ||
intr->intrinsic == nir_intrinsic_image_deref_size)
@@ -536,7 +536,7 @@ lower_cube_intrinsic(nir_builder *b, nir_intrinsic_instr *intr)
}
static nir_ssa_def *
-lower_cube_deref(nir_builder *b, nir_deref_instr *deref)
+lower_cube_image_deref(nir_builder *b, nir_deref_instr *deref)
{
deref->type = make_2darray_from_cubemap_with_array(
deref->type,
@@ -551,9 +551,9 @@ lower_int_cubmap_to_array_impl(nir_builder *b, nir_instr *instr,
if (instr->type == nir_instr_type_tex)
return lower_int_cubemap_to_array_tex(b, nir_instr_as_tex(instr));
else if (instr->type == nir_instr_type_intrinsic)
- return lower_cube_intrinsic(b, nir_instr_as_intrinsic(instr));
+ return lower_cube_image_intrinsic(b, nir_instr_as_intrinsic(instr));
else if (instr->type == nir_instr_type_deref)
- return lower_cube_deref(b, nir_instr_as_deref(instr));
+ return lower_cube_image_deref(b, nir_instr_as_deref(instr));
return NULL;
}