From fff03d2bd3452d0472886b72b5cc7c7770796e80 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 8 Jun 2022 15:45:57 +0200 Subject: [PATCH] microsoft/compiler: mark image-functions as such These functions only deal with images, so let's make that clear. Reviewed-by: Jesse Natalie Reviewed-by: Boris Brezillon Part-of: --- 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; }