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>
This commit is contained in:
Connor Abbott
2020-07-31 12:11:16 +02:00
committed by Marge Bot
parent 8d0e5e0626
commit a5daaed587
2 changed files with 2 additions and 0 deletions

View 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);

View 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);