summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9ce2ed)
raw | patch | inline | side by side (parent: c9ce2ed)
author | Eric Anholt <eric@anholt.net> | |
Tue, 28 Feb 2012 01:26:05 +0000 (17:26 -0800) | ||
committer | Eric Anholt <eric@anholt.net> | |
Sat, 10 Mar 2012 01:21:00 +0000 (17:21 -0800) |
drmIoctl returns -1 on error with errno set to the error value. Other
users of it in this file just check for != 0, and only use errno when
they need to send an error value on to the caller of the API.
users of it in this file just check for != 0, and only use errno when
they need to send an error value on to the caller of the API.
intel/intel_bufmgr_gem.c | patch | blob | history |
index e87690da51e20b1b266c6265edef915b43e582e4..0eb57c48252d184e671c8f44a9ec844e372a2ada 100644 (file)
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
gp.param = I915_PARAM_HAS_LLC;
ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
- if (ret == -EINVAL) {
+ if (ret != 0) {
/* Kernel does not supports HAS_LLC query, fallback to GPU
* generation detection and assume that we have LLC on GEN6/7
*/