util: Mark util_format_description() as a const function.
It will return the same table every time with no other side effects, so we want it to be CSEed. Saves 3.5k on my aarch64 GL drivers, almost 9k on turnip, but weirdly increases my x86 GL driver collection by ~3k. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
This commit is contained in:
@@ -426,7 +426,7 @@ struct util_format_description
|
||||
|
||||
|
||||
const struct util_format_description *
|
||||
util_format_description(enum pipe_format format);
|
||||
util_format_description(enum pipe_format format) ATTRIBUTE_CONST;
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user