diff options
Diffstat (limited to 'lib/intel_device_info.c')
-rw-r--r-- | lib/intel_device_info.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 4ab236e4..0c09f5cd 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -535,3 +535,17 @@ unsigned intel_gen(uint16_t devid) { return intel_get_device_info(devid)->graphics_ver ?: -1u; } + +/** + * intel_display_ver: + * @devid: pci device id + * + * Computes the Intel GFX display version for the given device id. + * + * Returns: + * The display version on successful lookup, -1u on failure. + */ +unsigned intel_display_ver(uint16_t devid) +{ + return intel_get_device_info(devid)->display_ver ?: -1u; +} |