From a5daaed587caba51cd485791d75a2aaa30409b9f Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 31 Jul 2020 12:11:16 +0200 Subject: [PATCH] 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: --- src/freedreno/afuc/asm.c | 1 + src/freedreno/afuc/disasm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/freedreno/afuc/asm.c b/src/freedreno/afuc/asm.c index 5b19c7f..56036be 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 66e40c1..2a25710 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); -- 2.7.4