Mesa (master): radeonsi: fix SI_NUM_ATOMS
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 8 03:41:53 UTC 2020
Module: Mesa
Branch: master
Commit: bba766d85db2aa13425036cbbf80ff10d2b49d44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bba766d85db2aa13425036cbbf80ff10d2b49d44
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Tue Jul 7 10:00:47 2020 +1000
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 <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>
---
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)
{
More information about the mesa-commit
mailing list