From: Timothy Arceri Date: Tue, 7 Jul 2020 00:00:47 +0000 (+1000) Subject: radeonsi: fix SI_NUM_ATOMS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bba766d85db2aa13425036cbbf80ff10d2b49d44;p=mesa.git radeonsi: fix SI_NUM_ATOMS This is not used anywhere so maybe we should just drop it instead. Fixes: 639b673fc3b8 ("radeonsi: don't use an indirect table for state atoms") Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index ab655498a1d..62202de2cdb 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -232,7 +232,7 @@ union si_state_atoms { }; #define SI_ATOM_BIT(name) (1 << (offsetof(union si_state_atoms, s.name) / sizeof(struct si_atom))) -#define SI_NUM_ATOMS (sizeof(union si_state_atoms) / sizeof(struct si_atom *)) +#define SI_NUM_ATOMS (sizeof(union si_state_atoms) / sizeof(struct si_atom)) static inline unsigned si_atoms_that_always_roll_context(void) {