diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-01-09 10:47:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-01-09 10:47:09 +0000 |
commit | e7e6b7669210b6956dca2411610eca21d3d058ec (patch) | |
tree | 1a87b5ab83b2d2959121b884ab477a58c3bbac31 /lib/libdrm/intel | |
parent | 2c1fea411b0d94d18f7bdff1f7529ae922f06050 (diff) |
Enable more libdrm functions. Determine if modesetting is supported
based on a modesetting ioctl that checks the DRIVER_MODESET flag on
the kernel side instead of the sysfs approach linux takes.
ok mpi@
Diffstat (limited to 'lib/libdrm/intel')
-rw-r--r-- | lib/libdrm/intel/intel_bufmgr_gem.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libdrm/intel/intel_bufmgr_gem.c b/lib/libdrm/intel/intel_bufmgr_gem.c index 6f2ea53bd..7cc34e7e8 100644 --- a/lib/libdrm/intel/intel_bufmgr_gem.c +++ b/lib/libdrm/intel/intel_bufmgr_gem.c @@ -1328,7 +1328,6 @@ drm_intel_gem_bo_subdata(drm_intel_bo *bo, unsigned long offset, static int drm_intel_gem_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, int crtc_id) { -#ifndef __OpenBSD__ drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bufmgr; struct drm_i915_get_pipe_from_crtc_id get_pipe_from_crtc_id; int ret; @@ -1348,9 +1347,6 @@ drm_intel_gem_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, int crtc_id) } return get_pipe_from_crtc_id.pipe; -#endif - /* only needed for KMS */ - return -1; } static int |