summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2020-07-31 12:11:16 +0200
committerMarge Bot <eric+marge@anholt.net>2020-08-01 17:51:01 +0000
commita5daaed587caba51cd485791d75a2aaa30409b9f (patch)
treee251386ff188d84bb30842f2750d3d9f100375a1
parent8d0e5e062667fa995779575ce1015fb8d34eef9a (diff)
freedreno/afuc: Add missing rnn_prepdb()
It's totally not obvious, but this runs extra error checking and is necessary for correct variant handling, and variant handling will silently not work if it's not enabled. Add it asm.c even though it's not strictly necessary, to prevent anyone from missing this in the future. Missing this really should be an error. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6140>
-rw-r--r--src/freedreno/afuc/asm.c1
-rw-r--r--src/freedreno/afuc/disasm.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/afuc/asm.c b/src/freedreno/afuc/asm.c
index 5b19c7fd9c0..56036be46f6 100644
--- a/src/freedreno/afuc/asm.c
+++ b/src/freedreno/afuc/asm.c
@@ -417,6 +417,7 @@ int main(int argc, char **argv)
ctx = rnndec_newcontext(db);
rnn_parsefile(db, "adreno.xml");
+ rnn_prepdb(db);
if (db->estatus)
errx(db->estatus, "failed to parse register database");
dom[0] = rnn_finddomain(db, name);
diff --git a/src/freedreno/afuc/disasm.c b/src/freedreno/afuc/disasm.c
index 66e40c1d188..2a2571074b9 100644
--- a/src/freedreno/afuc/disasm.c
+++ b/src/freedreno/afuc/disasm.c
@@ -816,6 +816,7 @@ int main(int argc, char **argv)
ctx->colors = colors ? &envy_def_colors : &envy_null_colors;
rnn_parsefile(db, "adreno.xml");
+ rnn_prepdb(db);
if (db->estatus)
errx(db->estatus, "failed to parse register database");
dom[0] = rnn_finddomain(db, variant);