diff options
-rw-r--r-- | src/intel_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index 610b2235..d9d8df35 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -439,8 +439,6 @@ static int authorise(struct intel_device *dev, int fd) struct stat st; drm_magic_t magic; - assert(is_i915_gem(fd)); - if (is_render_node(fd, &st)) /* restricted authority, do not elevate */ return 1; @@ -470,6 +468,8 @@ int intel_get_client_fd(ScrnInfoPtr scrn) return -BadMatch; } + assert(is_i915_gem(fd)); + return fd; } |