diff options
author | Marek Olšák <[email protected]> | 2019-06-11 22:49:18 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-14 13:31:18 -0400 |
commit | abe9a51d27049971c77a0072693511caf9b793e2 (patch) | |
tree | b020b10528853daf4b6660b89f7d973195d75226 /src/gallium/drivers/radeonsi/si_debug.c | |
parent | bbbbea243aea8297a4b7006be9e8f8e85c493b81 (diff) |
ac: add radeon_info::is_amdgpu instead of checking drm_major == 3
and clean up
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_debug.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 0f2e81dd600..4a768ec5a37 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -322,7 +322,7 @@ static void si_dump_debug_registers(struct si_context *sctx, FILE *f) si_dump_mmapped_reg(sctx, f, R_008010_GRBM_STATUS); /* No other registers can be read on DRM < 3.1.0. */ - if (sctx->screen->info.drm_major < 3 || + if (!sctx->screen->info.is_amdgpu || sctx->screen->info.drm_minor < 1) { fprintf(f, "\n"); return; |