mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
aco: Fix build error with std::max on GCC 12
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18969>
This commit is contained in:
parent
3ca8402ec7
commit
df3fdbdeb5
1 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,7 @@ public:
|
|||
/* The size parameter refers to the total size of the buffer.
|
||||
* The usable data_size is size - sizeof(Buffer).
|
||||
*/
|
||||
size = std::max(size, minimum_size);
|
||||
size = MAX2(size, minimum_size);
|
||||
buffer = (Buffer*)malloc(size);
|
||||
buffer->next = nullptr;
|
||||
buffer->data_size = size - sizeof(Buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue