freedreno/afuc: Add missing rnn_prepdb()
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 31 Jul 2020 10:11:16 +0000 (12:11 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Aug 2020 17:51:01 +0000 (17:51 +0000)
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>

src/freedreno/afuc/asm.c
src/freedreno/afuc/disasm.c

index 5b19c7f..56036be 100644 (file)
@@ -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);
index 66e40c1..2a25710 100644 (file)
@@ -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);