mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
Fix compilation on armv7l with gcc 11.2.0
Cc: mesa-stable
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12810>
(cherry picked from commit d27805753f)
This commit is contained in:
parent
20e8f2e121
commit
d2d07f2ba4
2 changed files with 5 additions and 3 deletions
|
|
@ -2326,7 +2326,7 @@
|
|||
"description": "Fix compilation on armv7l with gcc 11.2.0",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -106,12 +106,14 @@ extern bool fd_binning_enabled;
|
|||
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
#define DBG(fmt, ...) \
|
||||
do { \
|
||||
if (FD_DBG(MSGS)) \
|
||||
mesa_logi("%5d: %s:%d: " fmt, gettid(), __FUNCTION__, __LINE__, \
|
||||
##__VA_ARGS__); \
|
||||
mesa_logi("%5d: %s:%d: " fmt, ((pid_t)syscall(SYS_gettid)), \
|
||||
__FUNCTION__, __LINE__, \
|
||||
##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define perf_debug_message(debug, type, ...) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue