From bba766d85db2aa13425036cbbf80ff10d2b49d44 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 7 Jul 2020 10:00:47 +1000 Subject: [PATCH] radeonsi: fix SI_NUM_ATOMS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: --- src/gallium/drivers/radeonsi/si_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2