summaryrefslogtreecommitdiff
path: root/lib/intel_device_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/intel_device_info.c')
-rw-r--r--lib/intel_device_info.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index eee7cac9..e5720443 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -460,26 +460,3 @@ unsigned intel_gen(uint16_t devid)
{
return ffs(intel_get_device_info(devid)->gen) ?: -1u;
}
-
-/**
- * intel_gt:
- * @devid: pci device id
- *
- * Computes the Intel GFX GT size for the given device id.
- *
- * Returns:
- * The GT size.
- */
-unsigned intel_gt(uint16_t devid)
-{
- unsigned mask = intel_gen(devid);
-
- if (mask >= 8)
- mask = 0xf;
- else if (mask >= 6)
- mask = 0x3;
- else
- mask = 0;
-
- return (devid >> 4) & mask;
-}