summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/pipe-loader/pipe_msm.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-02-10 10:45:36 -0500
committerRob Clark <[email protected]>2014-02-16 08:36:23 -0500
commit8b5f894e13c0e290b2d3218ed8305e7428f2242f (patch)
tree12b8afa860f4774000ed1eb4c61500b098b315f5 /src/gallium/targets/pipe-loader/pipe_msm.c
parent24fa96163afccb7ffaff56599e9e91c23c407922 (diff)
pipe-loader: add pipe loader for freedreno/msm
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/targets/pipe-loader/pipe_msm.c')
-rw-r--r--src/gallium/targets/pipe-loader/pipe_msm.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gallium/targets/pipe-loader/pipe_msm.c b/src/gallium/targets/pipe-loader/pipe_msm.c
new file mode 100644
index 00000000000..76e402302d8
--- /dev/null
+++ b/src/gallium/targets/pipe-loader/pipe_msm.c
@@ -0,0 +1,21 @@
+
+#include "target-helpers/inline_debug_helper.h"
+#include "state_tracker/drm_driver.h"
+#include "freedreno/drm/freedreno_drm_public.h"
+
+static struct pipe_screen *
+create_screen(int fd)
+{
+ struct pipe_screen *screen;
+
+ screen = fd_drm_screen_create(fd);
+ if (!screen)
+ return NULL;
+
+ screen = debug_screen_wrap(screen);
+
+ return screen;
+}
+
+PUBLIC
+DRM_DRIVER_DESCRIPTOR("msm", "freedreno", create_screen, NULL)