summaryrefslogtreecommitdiff
path: root/src/amdgpu_probe.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-10-26 18:36:18 +0900
committerMichel Dänzer <michel.daenzer@amd.com>2016-11-21 17:55:57 +0900
commitd69fd22b6d13052d667929a0e3db61829ce1396e (patch)
treecbfce8a17d01c9692b2d642a515b689be53e45fb /src/amdgpu_probe.c
parent8a5ff54af32a75ae56d3369a828a50ae28dd1acd (diff)
Stop using AMDGPU(Unique)Chipsets
Use libdrm_amdgpu's amdgpu_get_marketing_name for the chipset name, or "Unknown AMD Radeon GPU" as a fallback. v2: Require libdrm_amdgpu >= 2.4.72 for amdgpu_get_marketing_name Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Diffstat (limited to 'src/amdgpu_probe.c')
-rw-r--r--src/amdgpu_probe.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c
index 6efa3fb..94da7f6 100644
--- a/src/amdgpu_probe.c
+++ b/src/amdgpu_probe.c
@@ -58,9 +58,6 @@
#include <xf86platformBus.h>
#endif
-#include "ati_pciids_gen.h"
-#include "amdgpu_chipset_gen.h"
-
_X_EXPORT int gAMDGPUEntityIndex = -1;
/* Return the options for supported chipset 'n'; NULL otherwise */
@@ -69,11 +66,15 @@ static const OptionInfoRec *AMDGPUAvailableOptions(int chipid, int busid)
return AMDGPUOptionsWeak();
}
+static SymTabRec AMDGPUAny[] = {
+ { 0, "All GPUs supported by the amdgpu kernel driver" },
+ { -1, NULL }
+};
+
/* Return the string name for supported chipset 'n'; NULL otherwise. */
static void AMDGPUIdentify(int flags)
{
- xf86PrintChipsets(AMDGPU_NAME,
- "Driver for AMD Radeon chipsets", AMDGPUUniqueChipsets);
+ xf86PrintChipsets(AMDGPU_NAME, "Driver for AMD Radeon", AMDGPUAny);
}
static char *amdgpu_bus_id(ScrnInfoPtr pScrn, struct pci_device *dev)