mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
aubinator: Store a pointer from gen_group back to gen_spec.
When decoding a structure field within a group, we may want to look up that structure type. Having a gen_spec pointer makes it easy to do so. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
2c6c760a4b
commit
7f21cb56b8
2 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ create_group(struct parser_context *ctx, const char *name, const char **atts)
|
|||
if (name)
|
||||
group->name = xstrdup(name);
|
||||
|
||||
group->spec = ctx->spec;
|
||||
group->group_offset = 0;
|
||||
group->group_count = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ struct gen_field_iterator {
|
|||
};
|
||||
|
||||
struct gen_group {
|
||||
struct gen_spec *spec;
|
||||
char *name;
|
||||
int nfields;
|
||||
struct gen_field **fields;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue