mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
freedreno/isa: add BITMASK_WORDS define
This new define will be used by a more generic deocde(..) and encode(..) functions. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11321>
This commit is contained in:
parent
ea42a3bee5
commit
a5bbd08775
2 changed files with 5 additions and 1 deletions
|
|
@ -219,6 +219,8 @@ header = """\
|
|||
#include <stdint.h>
|
||||
#include <util/bitset.h>
|
||||
|
||||
#define BITMASK_WORDS BITSET_WORDS(${isa.bitsize})
|
||||
|
||||
typedef struct {
|
||||
BITSET_WORD bitset[BITMASK_WORDS];
|
||||
} bitmask_t;
|
||||
|
|
|
|||
|
|
@ -335,8 +335,10 @@ template = """\
|
|||
isa = s.isa
|
||||
%>
|
||||
|
||||
#define BITMASK_WORDS BITSET_WORDS(${isa.bitsize})
|
||||
|
||||
typedef struct {
|
||||
BITSET_WORD bitset[BITSET_WORDS(${isa.bitsize})];
|
||||
BITSET_WORD bitset[BITMASK_WORDS];
|
||||
} bitmask_t;
|
||||
|
||||
static inline uint64_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue