summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/xorg-i915
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/xorg-i915')
-rw-r--r--src/gallium/targets/xorg-i915/intel_target.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gallium/targets/xorg-i915/intel_target.c b/src/gallium/targets/xorg-i915/intel_target.c
index 4eff93c0740..a79238f3a0f 100644
--- a/src/gallium/targets/xorg-i915/intel_target.c
+++ b/src/gallium/targets/xorg-i915/intel_target.c
@@ -1,4 +1,17 @@
-#include "target-helpers/drm_api_compat.h"
+#include "state_tracker/drm_driver.h"
+#include "i915/drm/i915_drm_public.h"
+#include "i915/i915_public.h"
-DRM_API_COMPAT_STRUCT("modesetting", "i915")
+static struct pipe_screen *
+create_screen(int fd)
+{
+ struct i915_winsys *iws;
+ iws = i915_drm_winsys_create(fd);
+ if (!iws)
+ return NULL;
+
+ return i915_screen_create(iws);
+}
+
+DRM_DRIVER_DESCRIPTOR("i915", "i915", create_screen)