freedreno/isa: add bitmask_t to encode.py
Prep work for the next change. 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:
committed by
Marge Bot
parent
3c634e956b
commit
35877cd7b8
@@ -329,11 +329,16 @@ template = """\
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <util/bitset.h>
|
||||
|
||||
<%
|
||||
isa = s.isa
|
||||
%>
|
||||
|
||||
typedef struct {
|
||||
BITSET_WORD bitset[BITSET_WORDS(${isa.bitsize})];
|
||||
} bitmask_t;
|
||||
|
||||
/**
|
||||
* Opaque type from the PoV of generated code, but allows state to be passed
|
||||
* thru to the hand written helpers used by the generated code.
|
||||
|
||||
Reference in New Issue
Block a user