mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 10:00:22 +01:00
intel: aubinator_error_decode: fix segfault on missing register
Some register might be missing in our genxmls. Don't try to decode them. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
11d45304fd
commit
fca9f5b585
1 changed files with 2 additions and 1 deletions
|
|
@ -65,7 +65,8 @@ print_head(unsigned int reg)
|
|||
static void
|
||||
print_register(struct gen_spec *spec, const char *name, uint32_t reg)
|
||||
{
|
||||
struct gen_group *reg_spec = gen_spec_find_register_by_name(spec, name);
|
||||
struct gen_group *reg_spec =
|
||||
name ? gen_spec_find_register_by_name(spec, name) : NULL;
|
||||
|
||||
if (reg_spec) {
|
||||
gen_print_group(stdout, reg_spec, 0, ®, 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue