Mesa (main): microsoft/compiler: mark image-functions as such

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 10 22:44:51 UTC 2022


Module: Mesa
Branch: main
Commit: fff03d2bd3452d0472886b72b5cc7c7770796e80
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fff03d2bd3452d0472886b72b5cc7c7770796e80

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jun  8 15:45:57 2022 +0200

microsoft/compiler: mark image-functions as such

These functions only deal with images, so let's make that clear.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16904>

---

 src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c | 8 ++++----
 1 file 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;
 }
 



More information about the mesa-commit mailing list