mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
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:
parent
9300a14ffb
commit
18cb8f2322
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue