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>
This commit is contained in:
Erik Faye-Lund 2022-06-08 15:45:57 +02:00 committed by Marge Bot
parent b386802bb9
commit fff03d2bd3
1 changed files with 4 additions and 4 deletions

View 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;
}