microsoft/compiler: mark image-functions as such
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 8 Jun 2022 13:45:57 +0000 (15:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Jun 2022 22:14:14 +0000 (22:14 +0000)
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>

src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c

index 1eab15a..38e7eca 100644 (file)
@@ -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;
 }