[Mesa-dev] [PATCH] intel: Load the driver even if I915_PARAM_REVISION is not found.
Rafael Antognolli
rafael.antognolli at intel.com
Mon Aug 19 19:28:55 UTC 2019
This param is only available starting on kernel 4.16. Use a default
value of 0 if it is not found instead.
Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Mark Janes <mark.a.janes at intel.com>
---
src/intel/dev/gen_device_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index 3953a1f4af3..375d13630a5 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -1366,7 +1366,7 @@ gen_get_device_info_from_fd(int fd, struct gen_device_info *devinfo)
return false;
if (!getparam(fd, I915_PARAM_REVISION, &devinfo->revision))
- return false;
+ devinfo->revision = 0;
if (!query_topology(devinfo, fd)) {
if (devinfo->gen >= 10) {
--
2.21.0
More information about the mesa-dev
mailing list