summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c')
-rw-r--r--src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c b/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c
new file mode 100644
index 00000000000..8afb9cd8380
--- /dev/null
+++ b/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c
@@ -0,0 +1,18 @@
+#include "pipe/p_context.h"
+#include "pipe/p_state.h"
+#include "util/u_format.h"
+#include "util/u_memory.h"
+#include "util/u_inlines.h"
+
+#include "freedreno_drm_public.h"
+
+#include "freedreno/freedreno_screen.h"
+
+struct pipe_screen *
+fd_drm_screen_create(int fd)
+{
+ struct fd_device *dev = fd_device_new(fd);
+ if (!dev)
+ return NULL;
+ return fd_screen_create(dev);
+}