From 0586238036cbc00cf3c6ec3cd7ac2e14bf635b7a Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 28 Jul 2020 11:53:26 -0700 Subject: [PATCH] freedreno/rnn: fix use-group The schema describes the attribute as "ref" rather than "name". Which makes more sense. Signed-off-by: Rob Clark Part-of: --- src/freedreno/registers/mdp/mdp4.xml | 6 +++--- src/freedreno/rnn/rnn.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedreno/registers/mdp/mdp4.xml b/src/freedreno/registers/mdp/mdp4.xml index a84f5308040..dfccecdca2e 100644 --- a/src/freedreno/registers/mdp/mdp4.xml +++ b/src/freedreno/registers/mdp/mdp4.xml @@ -210,7 +210,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> - + @@ -265,7 +265,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> - + @@ -331,7 +331,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> - + diff --git a/src/freedreno/rnn/rnn.c b/src/freedreno/rnn/rnn.c index 1a1103706d9..4851e294afc 100644 --- a/src/freedreno/rnn/rnn.c +++ b/src/freedreno/rnn/rnn.c @@ -467,7 +467,7 @@ static struct rnndelem *trydelem(struct rnndb *db, char *file, xmlNode *node) { res->type = RNN_ETYPE_USE_GROUP; xmlAttr *attr = node->properties; while (attr) { - if (!strcmp(attr->name, "name")) { + if (!strcmp(attr->name, "ref")) { res->name = strdup(getattrib(db, file, node->line, attr)); } else { rnn_err(db, "%s:%d: wrong attribute \"%s\" for %s\n", file, node->line, attr->name, node->name); -- 2.30.2