summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/winsys/v3d
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/winsys/v3d')
-rw-r--r--lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_public.h2
-rw-r--r--lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_public.h b/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_public.h
index 46aed9d4e..181382543 100644
--- a/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_public.h
+++ b/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_public.h
@@ -25,7 +25,9 @@
#define __VC5_DRM_PUBLIC_H__
struct pipe_screen;
+struct renderonly;
struct pipe_screen *v3d_drm_screen_create(int drmFD);
+struct pipe_screen *v3d_drm_screen_create_renderonly(struct renderonly *ro);
#endif /* __VC5_DRM_PUBLIC_H__ */
diff --git a/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c b/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c
index 63b7a5717..cda830f3e 100644
--- a/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c
+++ b/lib/mesa/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c
@@ -31,5 +31,11 @@
struct pipe_screen *
v3d_drm_screen_create(int fd)
{
- return v3d_screen_create(fcntl(fd, F_DUPFD_CLOEXEC, 3));
+ return v3d_screen_create(fcntl(fd, F_DUPFD_CLOEXEC, 3), NULL);
+}
+
+struct pipe_screen *
+v3d_drm_screen_create_renderonly(struct renderonly *ro)
+{
+ return v3d_screen_create(ro->gpu_fd, ro);
}