mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
freedreno/registers: Add a way to disable deprecated warnings
Intended for temporarily disabling the warnings when bringing up a new gen. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37009>
This commit is contained in:
parent
85cb5cef2a
commit
ae8907f270
4 changed files with 24 additions and 4 deletions
|
|
@ -17,6 +17,9 @@ computerator_cpp_args = cpp.get_supported_arguments([
|
|||
'-Wno-sign-compare',
|
||||
])
|
||||
|
||||
# Temporarily quiet deprecated warnings until computerator is converted:
|
||||
computerator_cpp_args += '-DFD_NO_DEPRECATED_PACK'
|
||||
|
||||
computerator = executable(
|
||||
'computerator',
|
||||
computerator_files,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ class Bitset(object):
|
|||
|
||||
depcrstr = ""
|
||||
if is_deprecated:
|
||||
depcrstr = " __attribute__((deprecated))"
|
||||
depcrstr = " FD_DEPRECATED"
|
||||
if reg.array:
|
||||
print("static inline%s struct fd_reg_pair\npack_%s(uint32_t __i, struct %s fields)\n{" %
|
||||
(depcrstr, prefix, prefix))
|
||||
|
|
@ -338,7 +338,7 @@ class Array(object):
|
|||
def dump(self, is_deprecated):
|
||||
depcrstr = ""
|
||||
if is_deprecated:
|
||||
depcrstr = " __attribute__((deprecated))"
|
||||
depcrstr = " FD_DEPRECATED"
|
||||
proto = indices_varlist(self.indices())
|
||||
strides = indices_strides(self.indices())
|
||||
array_offset = self.total_offset()
|
||||
|
|
@ -407,7 +407,7 @@ class Reg(object):
|
|||
def dump(self, is_deprecated):
|
||||
depcrstr = ""
|
||||
if is_deprecated:
|
||||
depcrstr = " __attribute__((deprecated)) "
|
||||
depcrstr = " FD_DEPRECATED "
|
||||
proto = indices_prototype(self.indices())
|
||||
strides = indices_strides(self.indices())
|
||||
offset = self.total_offset()
|
||||
|
|
@ -922,9 +922,20 @@ The rules-ng-ng source files this header was generated from are:
|
|||
print("#endif")
|
||||
print()
|
||||
|
||||
print("#ifndef FD_NO_DEPRECATED_PACK")
|
||||
print("#define FD_DEPRECATED __attribute__((deprecated))")
|
||||
print("#else")
|
||||
print("#define FD_DEPRECATED")
|
||||
print("#endif")
|
||||
print()
|
||||
|
||||
func(p)
|
||||
|
||||
print("\n#endif /* %s */" % guard)
|
||||
print()
|
||||
print("#undef FD_DEPRECATED")
|
||||
print()
|
||||
|
||||
print("#endif /* %s */" % guard)
|
||||
|
||||
|
||||
def dump_c_defines(args):
|
||||
|
|
|
|||
|
|
@ -109,6 +109,9 @@ if freedreno_kmds.contains('virtio')
|
|||
tu_deps += dep_libdrm
|
||||
endif
|
||||
|
||||
# Temporarily quiet deprecated warnings until turnip is converted:
|
||||
tu_flags += '-DFD_NO_DEPRECATED_PACK'
|
||||
|
||||
tu_tracepoints = custom_target(
|
||||
'tu_tracepoints.[ch]',
|
||||
input: 'tu_tracepoints.py',
|
||||
|
|
|
|||
|
|
@ -252,6 +252,9 @@ freedreno_cpp_args += cpp.get_supported_arguments([
|
|||
'-Wno-vla-cxx-extension',
|
||||
])
|
||||
|
||||
# Temporarily quiet deprecated warnings until gallium driver is converted:
|
||||
freedreno_cpp_args += '-DFD_NO_DEPRECATED_PACK'
|
||||
|
||||
libfreedreno_dependencies = [
|
||||
dep_libdrm,
|
||||
idep_mesautil,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue