mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
ac: add ifdef __cplusplus guard to header
ac_shadowed_regs.h can be included from si_state_draw.cpp so this commit adds the needed guards. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8433>
This commit is contained in:
parent
b83d0b2f5d
commit
c4b7a0d61d
1 changed files with 9 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ enum ac_reg_range_type
|
|||
SI_NUM_ALL_REG_RANGES,
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*set_context_reg_seq_array_fn)(struct radeon_cmdbuf *cs, unsigned reg, unsigned num,
|
||||
const uint32_t *values);
|
||||
|
||||
|
|
@ -59,4 +63,9 @@ void ac_check_shadowed_regs(enum chip_class chip_class, enum radeon_family famil
|
|||
unsigned reg_offset, unsigned count);
|
||||
void ac_print_shadowed_regs(const struct radeon_info *info);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue