summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2013-12-17 05:44:38 -0800
committerThomas Hellstrom <thellstrom@vmware.com>2013-12-18 09:11:24 +0100
commit00cf048b12a82f1cde066c12bea63a9f20f5f216 (patch)
tree1646fe98b027d5b878e2e947e55ea05cbfb760f8 /src/gallium/targets
parent37c24e6d867606e176a5164fc7ef1857862e76f8 (diff)
st/dri: Check for kernel support before enabling fd sharing v2
The dri2 state tracker is checking for driver support before enabling dri2ImageExtension version 7. This commit adds a check that also the kernel driver supports fd sharing through prime. Note that this adds a libdrm dependency on dri2.c. v2: Removed unnecessary clamping of bool expression Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/dri-vmwgfx/target.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/targets/dri-vmwgfx/target.c b/src/gallium/targets/dri-vmwgfx/target.c
index aaf37b0c4fc..e3fbda1d665 100644
--- a/src/gallium/targets/dri-vmwgfx/target.c
+++ b/src/gallium/targets/dri-vmwgfx/target.c
@@ -31,12 +31,6 @@ static const struct drm_conf_ret throttle_ret = {
.val.val_int = 2,
};
-/* Technically this requires kernel support that is not yet
- * widespread.
- *
- * We could check for support in create_screen and return the correct
- * value, but for now just return true in all cases.
- */
static const struct drm_conf_ret share_fd_ret = {
.type = DRM_CONF_BOOL,
.val.val_int = true,