aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-04-18 22:13:41 -0700
committerKenneth Graunke <[email protected]>2019-04-22 09:35:36 -0700
commitfaa52e328e3edf9b4596073eee3360aa29fd7252 (patch)
treec7c47dac53fee08b221c9cd19699793ee9055abb /src/gallium/winsys
parentccb25aaeafa4d5bc82da76774a3776e83638f211 (diff)
iris: Add mechanism for iris-specific driconf options
Based on Nicolai's 0f8c5de8690e7c87aa2e24383065efaca7e6fe78. Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/iris/drm/iris_drm_public.h4
-rw-r--r--src/gallium/winsys/iris/drm/iris_drm_winsys.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/winsys/iris/drm/iris_drm_public.h b/src/gallium/winsys/iris/drm/iris_drm_public.h
index 17c0b2e1a8f..f942e05ad8b 100644
--- a/src/gallium/winsys/iris/drm/iris_drm_public.h
+++ b/src/gallium/winsys/iris/drm/iris_drm_public.h
@@ -25,7 +25,9 @@
#define IRIS_DRM_PUBLIC_H
struct pipe_screen;
+struct pipe_screen_config;
-struct pipe_screen *iris_drm_screen_create(int drm_fd);
+struct pipe_screen *
+iris_drm_screen_create(int drm_fd, const struct pipe_screen_config *config);
#endif /* IRIS_DRM_PUBLIC_H */
diff --git a/src/gallium/winsys/iris/drm/iris_drm_winsys.c b/src/gallium/winsys/iris/drm/iris_drm_winsys.c
index 49c7c0f41e2..9903f40a843 100644
--- a/src/gallium/winsys/iris/drm/iris_drm_winsys.c
+++ b/src/gallium/winsys/iris/drm/iris_drm_winsys.c
@@ -28,7 +28,7 @@
#include "iris/iris_screen.h"
struct pipe_screen *
-iris_drm_screen_create(int fd)
+iris_drm_screen_create(int fd, const struct pipe_screen_config *config)
{
- return iris_screen_create(fcntl(fd, F_DUPFD_CLOEXEC, 3));
+ return iris_screen_create(fcntl(fd, F_DUPFD_CLOEXEC, 3), config);
}