diff options
author | Christopher James Halse Rogers <raof@ubuntu.com> | 2013-11-21 15:11:43 +1100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-12-10 09:46:29 +0100 |
commit | 7d2c1df99e09e6bfa6d03f880797071967557921 (patch) | |
tree | 164fdb3e932e90865eddbdd7db6806821d813884 /src/gallium/targets | |
parent | 3e680de1eb22db6afed58c1ac72ec31504538057 (diff) |
ilo: Support DRI Image 7
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/dri-ilo/target.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/gallium/targets/dri-ilo/target.c b/src/gallium/targets/dri-ilo/target.c index 451827a4309..3ce75e96b2e 100644 --- a/src/gallium/targets/dri-ilo/target.c +++ b/src/gallium/targets/dri-ilo/target.c @@ -24,4 +24,21 @@ create_screen(int fd) return screen; } -DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, NULL) + +static const struct drm_conf_ret share_fd_ret = { + .type = DRM_CONF_BOOL, + .val.val_int = true, +}; + +static const struct drm_conf_ret *drm_configuration(enum drm_conf conf) +{ + switch (conf) { + case DRM_CONF_SHARE_FD: + return &share_fd_ret; + default: + break; + } + return NULL; +} + +DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, drm_configuration) |