diff options
author | Timothy Arceri <[email protected]> | 2020-07-07 10:00:47 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-08 03:04:03 +0000 |
commit | bba766d85db2aa13425036cbbf80ff10d2b49d44 (patch) | |
tree | bf381cfc2d8a7965a4a71b4be4a66c27251394b6 /src/gallium | |
parent | 4686a956212ac8e9b7be1b6a10672cb606095f8f (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |