isaspec: deocde: Make isa_decode_field(..) private

Without this change the isa_decode_field(..) uses the wrong bitmask_t
type (freedreno: array with 2 elements, etnaviv: array with 4 elements)
and weird things happens.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28176>
This commit is contained in:
Christian Gmeiner 2024-03-14 13:11:27 +01:00 committed by Marge Bot
parent 872f714e32
commit 878fa2032e
3 changed files with 4 additions and 6 deletions

View file

@ -151,6 +151,9 @@ uint64_t_to_bitmask(uint64_t val)
#include "isaspec_decode_decl.h"
static uint64_t
isa_decode_field(struct decode_scope *scope, const char *field_name);
/*
* enum tables, these don't have any link back to other tables so just
* dump them up front before the bitset tables

View file

@ -51,11 +51,6 @@ struct isa_enum {
*/
typedef uint64_t (*isa_expr_t)(struct decode_scope *scope);
/**
* Used by generated expr functions
*/
uint64_t isa_decode_field(struct decode_scope *scope, const char *field_name);
/**
* Used by generated decode functions
*/

View file

@ -544,7 +544,7 @@ resolve_field(struct decode_scope *scope, const char *field_name, size_t field_n
}
/* This is also used from generated expr functions */
uint64_t
static uint64_t
isa_decode_field(struct decode_scope *scope, const char *field_name)
{
bitmask_t val;