mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
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:
parent
8d0e5e0626
commit
a5daaed587
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue