summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-02-13 00:44:32 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-02-18 00:08:26 +0000
commitadad8fb2e947e3ea9e9d84cb3722e46de91346e4 (patch)
tree6234e4d400b8c41acd546b8aaae463b61f34837a
parent6fbd00e43afdd34e5026b47f2b9a9baa07c25e48 (diff)
st/dri: remove #ifdef DRM_CAP_PRIME guard
Required for libdrm 2.4.37 and earlier. Both scons and automake require version 2.4.38 now so that guard is not longer needed. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index 05896440a01..973773c83e3 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -1053,7 +1053,6 @@ dri2_init_screen(__DRIscreen * sPriv)
screen->default_throttle_frames = throttle_ret->val.val_int;
}
-#ifdef DRM_CAP_PRIME /* Old libdrm? */
if (dmabuf_ret && dmabuf_ret->val.val_bool) {
uint64_t cap;
@@ -1064,7 +1063,6 @@ dri2_init_screen(__DRIscreen * sPriv)
dri2ImageExtension.createImageFromFds = dri2_from_fds;
}
}
-#endif /* DRM_CAP_PRIME */
sPriv->extensions = dri_screen_extensions;