From abe9a51d27049971c77a0072693511caf9b793e2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 11 Jun 2019 22:49:18 -0400 Subject: ac: add radeon_info::is_amdgpu instead of checking drm_major == 3 and clean up Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_debug.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/amd/vulkan') diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 2177cda0f4a..80d15599123 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -111,14 +111,11 @@ radv_dump_debug_registers(struct radv_device *device, FILE *f) { struct radeon_info *info = &device->physical_device->rad_info; - if (info->drm_major == 2 && info->drm_minor < 42) - return; /* no radeon support */ - fprintf(f, "Memory-mapped registers:\n"); radv_dump_mmapped_reg(device, f, R_008010_GRBM_STATUS); /* No other registers can be read on DRM < 3.1.0. */ - if (info->drm_major < 3 || info->drm_minor < 1) { + if (info->drm_minor < 1) { fprintf(f, "\n"); return; } -- cgit v1.2.3