mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
util: Fixes invalid assumption that return non null by function util_format_fetch_rgba_func
Fixes: e342081c ("util/format: Assert that formats are valid")
Closes #7020
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18024>
This commit is contained in:
parent
a1b7682d10
commit
075b72ea06
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ def write_format_table(formats):
|
|||
print()
|
||||
|
||||
def generate_function_getter(func):
|
||||
print("ATTRIBUTE_RETURNS_NONNULL util_format_%s_func_ptr" % func)
|
||||
print("util_format_%s_func_ptr" % func)
|
||||
print("util_format_%s_func(enum pipe_format format)" % (func))
|
||||
print("{")
|
||||
print(" assert(format < PIPE_FORMAT_COUNT);")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue