Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307404
b: refs/heads/master
c: 4271a40
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed May 18, 2012
1 parent 1f1a025 commit b27c289
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfcbd6d3de7f75f7c5a07d3fac8e1949bbbc79e0
refs/heads/master: 4271a4090068f9dec3784205391c59540130b132
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/drm_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
case DRM_CAP_DUMB_PREFER_SHADOW:
req->value = dev->mode_config.prefer_shadow;
break;
case DRM_CAP_PRIME:
req->value |= dev->driver->prime_fd_to_handle ? DRM_PRIME_CAP_IMPORT : 0;
req->value |= dev->driver->prime_handle_to_fd ? DRM_PRIME_CAP_EXPORT : 0;
break;
default:
return -EINVAL;
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/drm/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,10 @@ struct drm_event_vblank {
#define DRM_CAP_VBLANK_HIGH_CRTC 0x2
#define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3
#define DRM_CAP_DUMB_PREFER_SHADOW 0x4
#define DRM_CAP_PRIME 0x5

#define DRM_PRIME_CAP_IMPORT 0x1
#define DRM_PRIME_CAP_EXPORT 0x2

/* typedef area */
#ifndef __KERNEL__
Expand Down

0 comments on commit b27c289

Please sign in to comment.