Mesa (main): microsoft/clc: Delete unused local variables

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 15 12:23:41 UTC 2022


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

Author: Yonggang Luo <luoyonggang at gmail.com>
Date:   Tue Jun 14 02:26:53 2022 +0800

microsoft/clc: Delete unused local variables

Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671>

---

 src/microsoft/clc/clc_compiler.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/microsoft/clc/clc_compiler.c b/src/microsoft/clc/clc_compiler.c
index ad59c0ebf1e..8d8bd2f95e7 100644
--- a/src/microsoft/clc/clc_compiler.c
+++ b/src/microsoft/clc/clc_compiler.c
@@ -126,7 +126,6 @@ clc_lower_input_image_deref(nir_builder *b, struct clc_image_lower_context *cont
    nir_ssa_def *format_deref_dest = NULL, *order_deref_dest = NULL;
 
    nir_variable *in_var = nir_deref_instr_get_variable(context->deref);
-   enum gl_access_qualifier access = in_var->data.access;
 
    context->metadata_index = 0;
    while (context->metadata->args[context->metadata_index].image.buf_ids[0] != in_var->data.binding)
@@ -402,7 +401,6 @@ add_kernel_inputs_var(struct clc_dxil_object *dxil, nir_shader *nir,
    if (!dxil->kernel->num_args)
       return NULL;
 
-   struct clc_dxil_metadata *metadata = &dxil->metadata;
    unsigned size = 0;
 
    nir_foreach_variable_with_modes(var, nir, nir_var_uniform)
@@ -427,7 +425,6 @@ static nir_variable *
 add_work_properties_var(struct clc_dxil_object *dxil,
                            struct nir_shader *nir, unsigned *cbv_id)
 {
-   struct clc_dxil_metadata *metadata = &dxil->metadata;
    const struct glsl_type *array_type =
       glsl_array_type(glsl_uint_type(),
          sizeof(struct clc_work_properties_data) / sizeof(unsigned),
@@ -509,8 +506,6 @@ static void
 copy_const_initializer(const nir_constant *constant, const struct glsl_type *type,
                        uint8_t *data)
 {
-   unsigned size = glsl_get_cl_size(type);
-
    if (glsl_type_is_array(type)) {
       const struct glsl_type *elm_type = glsl_get_array_element(type);
       unsigned step_size = glsl_get_explicit_stride(type);
@@ -699,8 +694,6 @@ wrap_from_cl_addressing(unsigned addressing_mode)
 
 static bool shader_has_double(nir_shader *nir)
 {
-   bool progress = false;
-
    foreach_list_typed(nir_function, func, node, &nir->functions) {
       if (!func->is_entrypoint)
          continue;



More information about the mesa-commit mailing list