From 35877cd7b8ce9777e7b6a6c7a9c53e7ca41f6f6a Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 22 Jul 2021 18:53:51 +0200 Subject: [PATCH] freedreno/isa: add bitmask_t to encode.py Prep work for the next change. Signed-off-by: Christian Gmeiner Reviewed-by: Rob Clark Part-of: --- src/freedreno/isa/encode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedreno/isa/encode.py b/src/freedreno/isa/encode.py index 7914509..3ece9e0 100644 --- a/src/freedreno/isa/encode.py +++ b/src/freedreno/isa/encode.py @@ -329,11 +329,16 @@ template = """\ #include #include +#include <% 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. -- 2.7.4