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:
Christian Gmeiner 2021-05-17 16:31:20 +02:00 committed by Marge Bot
parent ea42a3bee5
commit a5bbd08775
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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