summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2013-11-21 15:11:42 +1100
committerMaarten Lankhorst <[email protected]>2013-12-10 09:46:17 +0100
commit3e680de1eb22db6afed58c1ac72ec31504538057 (patch)
tree9c50c9b61eeba24551cebaa44ce98dfbec55d269 /src/gallium/targets
parentdf3b20b2cf4ee6abb07d2948259d7500681f8c41 (diff)
nouveau: Support DRI Image 7 extension
Reviewed-by: Thomas Hellstrom <[email protected]> Signed-off-by: Christopher James Halse Rogers <[email protected]> Signed-off-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/dri-nouveau/target.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gallium/targets/dri-nouveau/target.c b/src/gallium/targets/dri-nouveau/target.c
index c0d7f92e33f..f0fcdd834dd 100644
--- a/src/gallium/targets/dri-nouveau/target.c
+++ b/src/gallium/targets/dri-nouveau/target.c
@@ -17,4 +17,20 @@ create_screen(int fd)
return screen;
}
-DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", 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("nouveau", "nouveau", create_screen, drm_configuration)