Don't silently ignore issues.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6107>
* SOFTWARE.
*/
+#include <err.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
ctx = rnndec_newcontext(db);
rnn_parsefile(db, "adreno.xml");
+ if (db->estatus)
+ errx(db->estatus, "failed to parse register database");
dom[0] = rnn_finddomain(db, name);
dom[1] = rnn_finddomain(db, "AXXX");
control_regs = rnn_finddomain(db, control_reg_name);
* SOFTWARE.
*/
+#include <err.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
ctx->colors = colors ? &envy_def_colors : &envy_null_colors;
rnn_parsefile(db, "adreno.xml");
+ if (db->estatus)
+ errx(db->estatus, "failed to parse register database");
dom[0] = rnn_finddomain(db, variant);
dom[1] = rnn_finddomain(db, "AXXX");
control_regs = rnn_finddomain(db, control_reg_name);
* Rob Clark <robclark@freedesktop.org>
*/
+#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
rnndec_varadd(rnn->vc, "chip", domain);
if (rnn->vc != rnn->vc_nocolor)
rnndec_varadd(rnn->vc_nocolor, "chip", domain);
+ if (rnn->db->estatus)
+ errx(rnn->db->estatus, "failed to parse register database");
}
void rnn_load_file(struct rnn *rnn, char *file, char *domain)