nir: Rename nir_lower_cl_images_to_tex, replace 'cl' with 'readonly'

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10356>
This commit is contained in:
Jesse Natalie 2021-04-20 07:43:18 -07:00 committed by Marge Bot
parent 1c41f63e26
commit 29c9731400
6 changed files with 9 additions and 9 deletions

View File

@ -246,7 +246,6 @@ NIR_FILES = \
nir/nir_lower_bool_to_bitsize.c \
nir/nir_lower_bool_to_float.c \
nir/nir_lower_bool_to_int32.c \
nir/nir_lower_cl_images_to_tex.c \
nir/nir_lower_clamp_color_outputs.c \
nir/nir_lower_clip.c \
nir/nir_lower_clip_cull_distance_arrays.c \
@ -293,6 +292,7 @@ NIR_FILES = \
nir/nir_lower_point_size_mov.c \
nir/nir_lower_printf.c \
nir/nir_lower_regs_to_ssa.c \
nir/nir_lower_readonly_images_to_tex.c \
nir/nir_lower_returns.c \
nir/nir_lower_samplers.c \
nir/nir_lower_scratch.c \

View File

@ -133,7 +133,6 @@ files_libnir = files(
'nir_lower_bool_to_bitsize.c',
'nir_lower_bool_to_float.c',
'nir_lower_bool_to_int32.c',
'nir_lower_cl_images_to_tex.c',
'nir_lower_clamp_color_outputs.c',
'nir_lower_clip.c',
'nir_lower_clip_cull_distance_arrays.c',
@ -182,6 +181,7 @@ files_libnir = files(
'nir_lower_point_size_mov.c',
'nir_lower_printf.c',
'nir_lower_regs_to_ssa.c',
'nir_lower_readonly_images_to_tex.c',
'nir_lower_returns.c',
'nir_lower_samplers.c',
'nir_lower_scratch.c',

View File

@ -4847,7 +4847,7 @@ typedef struct nir_lower_tex_options {
bool nir_lower_tex(nir_shader *shader,
const nir_lower_tex_options *options);
bool nir_lower_cl_images_to_tex(nir_shader *shader);
bool nir_lower_readonly_images_to_tex(nir_shader *shader);
enum nir_lower_non_uniform_access_type {
nir_lower_non_uniform_ubo_access = (1 << 0),

View File

@ -25,7 +25,7 @@
#include "nir_builder.h"
static bool
lower_cl_images_to_tex_impl(nir_function_impl *impl)
lower_readonly_images_to_tex_impl(nir_function_impl *impl)
{
bool progress = false;
@ -147,14 +147,14 @@ lower_cl_images_to_tex_impl(nir_function_impl *impl)
return progress;
}
/** Lowers OpenCL image ops to texture ops for read-only images */
/** Lowers image ops to texture ops for read-only images */
bool
nir_lower_cl_images_to_tex(nir_shader *shader)
nir_lower_readonly_images_to_tex(nir_shader *shader)
{
bool progress = false;
nir_foreach_function(function, shader) {
if (function->impl && lower_cl_images_to_tex_impl(function->impl))
if (function->impl && lower_readonly_images_to_tex_impl(function->impl))
progress = true;
}

View File

@ -504,7 +504,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
glsl_get_cl_type_size_align);
NIR_PASS_V(nir, nir_opt_deref);
NIR_PASS_V(nir, nir_lower_cl_images_to_tex);
NIR_PASS_V(nir, nir_lower_readonly_images_to_tex);
NIR_PASS_V(nir, clover_nir_lower_images);
NIR_PASS_V(nir, nir_lower_memcpy);

View File

@ -1284,7 +1284,7 @@ clc_to_dxil(struct clc_context *ctx,
}
// Needs to come before lower_explicit_io
NIR_PASS_V(nir, nir_lower_cl_images_to_tex);
NIR_PASS_V(nir, nir_lower_readonly_images_to_tex);
struct clc_image_lower_context image_lower_context = { metadata, &srv_id, &uav_id };
NIR_PASS_V(nir, clc_lower_images, &image_lower_context);
NIR_PASS_V(nir, clc_lower_nonnormalized_samplers, int_sampler_states);