mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
freedreno/log: fix build error
It seems some versions of gcc are less clever about const initializers: ``` ../src/gallium/drivers/freedreno/freedreno_log.c:58:33: error: initializer element is not constant const unsigned msgs_per_chunk = bo_size / sizeof(uint64_t); ^~~~~~~ ``` See https://gitlab.freedesktop.org/mesa/mesa/-/issues/2713 Signed-off-by: Rob Clark <robdclark@chromium.org> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4390> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4390>
This commit is contained in:
parent
b097e326b8
commit
59754409cc
@ -54,8 +54,10 @@
|
||||
* for profiling at that level.
|
||||
*/
|
||||
|
||||
const unsigned bo_size = 0x1000;
|
||||
const unsigned msgs_per_chunk = bo_size / sizeof(uint64_t);
|
||||
enum {
|
||||
bo_size = 0x1000,
|
||||
msgs_per_chunk = bo_size / sizeof(uint64_t),
|
||||
};
|
||||
|
||||
struct fd_log_chunk {
|
||||
struct list_head node;
|
||||
|
Loading…
Reference in New Issue
Block a user