Mesa (master): aco/isel: Remove unused definitions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 8 20:24:38 UTC 2020


Module: Mesa
Branch: master
Commit: 1eac0b52e3ee0fb230aeb4d5858c8cf6523be58e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1eac0b52e3ee0fb230aeb4d5858c8cf6523be58e

Author: Tony Wasserka <tony.wasserka at gmx.de>
Date:   Sat Aug 29 15:39:33 2020 +0200

aco/isel: Remove unused definitions

Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6504>

---

 src/amd/compiler/aco_instruction_selection_setup.cpp | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp
index 73bc1e151df..f3482353b16 100644
--- a/src/amd/compiler/aco_instruction_selection_setup.cpp
+++ b/src/amd/compiler/aco_instruction_selection_setup.cpp
@@ -36,8 +36,6 @@
 
 #include "util/u_math.h"
 
-#define MAX_INLINE_PUSH_CONSTS 8
-
 namespace aco {
 
 struct shader_io_state {
@@ -1008,18 +1006,6 @@ type_size(const struct glsl_type *type, bool bindless)
    return glsl_count_attribute_slots(type, false);
 }
 
-void
-shared_var_info(const struct glsl_type *type, unsigned *size, unsigned *align)
-{
-   assert(glsl_type_is_vector_or_scalar(type));
-
-   uint32_t comp_size = glsl_type_is_boolean(type)
-      ? 4 : glsl_get_bit_size(type) / 8;
-   unsigned length = glsl_get_vector_elements(type);
-   *size = comp_size * length,
-   *align = comp_size;
-}
-
 static bool
 mem_vectorize_callback(unsigned align, unsigned bit_size,
                        unsigned num_components, unsigned high_offset,



More information about the mesa-commit mailing list