mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
freedreno/autotune: Make 'offset' macro "private"
Otherwise it conflicts with glsl_types.h DEFAULT_CONSTRUCTOR when included from a c++ file. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17817>
This commit is contained in:
parent
4490387ea8
commit
cccadf7db6
1 changed files with 2 additions and 2 deletions
|
|
@ -132,9 +132,9 @@ struct fd_autotune_results {
|
|||
} result[127];
|
||||
};
|
||||
|
||||
#define offset(base, ptr) ((uint8_t *)(ptr) - (uint8_t *)(base))
|
||||
#define __offset(base, ptr) ((uint8_t *)(ptr) - (uint8_t *)(base))
|
||||
#define results_ptr(at, member) \
|
||||
(at)->results_mem, offset((at)->results, &(at)->results->member), 0, 0
|
||||
(at)->results_mem, __offset((at)->results, &(at)->results->member), 0, 0
|
||||
|
||||
struct fd_batch_history;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue