genxml: remove NDEBUG_UNUSED

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26797>
This commit is contained in:
Lionel Landwerlin
2024-02-06 13:44:34 +02:00
committed by Marge Bot
parent 41b2ed65e2
commit 472f49ef43
3 changed files with 2 additions and 16 deletions

View File

@@ -149,14 +149,8 @@ util_bitpack_ufixed_nonzero(float v, uint32_t start, uint32_t end,
#define __intel_field_functions
#endif
#ifdef NDEBUG
#define NDEBUG_UNUSED __attribute__((unused))
#else
#define NDEBUG_UNUSED
#endif
static inline __attribute__((always_inline)) uint64_t
__gen_offset(uint64_t v, NDEBUG_UNUSED uint32_t start, NDEBUG_UNUSED uint32_t end)
__gen_offset(uint64_t v, UNUSED uint32_t start, UNUSED uint32_t end)
{
return v;
}

View File

@@ -13,12 +13,6 @@
#define __intel_field_functions
#endif
#ifdef NDEBUG
#define NDEBUG_UNUSED __attribute__((unused))
#else
#define NDEBUG_UNUSED
#endif
#ifndef __gen_address_type
#error #define __gen_address_type before including this file
#endif
@@ -28,7 +22,7 @@
#endif
static inline __attribute__((always_inline)) uint64_t
__gen_offset(uint64_t v, NDEBUG_UNUSED uint32_t start, NDEBUG_UNUSED uint32_t end)
__gen_offset(uint64_t v, ASSERTED uint32_t start, ASSERTED uint32_t end)
{
__gen_validate_value(v);
#ifndef NDEBUG

View File

@@ -51,8 +51,6 @@ pack_header = """%(license)s
#include "genX_cl_helpers.h"
#endif
#undef NDEBUG_UNUSED
"""
def num_from_str(num_str):