diff options
author | Marek Olšák <[email protected]> | 2017-06-21 00:38:06 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-23 19:50:20 +0200 |
commit | a98a04ec80deb6a6b452165cf54a79c6ea824ab2 (patch) | |
tree | 96b781d28dba368164abbaf4f9ecd3bcdbae6308 /src/gallium/winsys | |
parent | 118b2008ba18d6cf5d511e0a0bacbb846aad6982 (diff) |
gallium/radeon: pass create_screen flags to r600_common_screen_init
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_public.h | 6 | ||||
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 5 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_public.h | 6 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 5 |
4 files changed, 14 insertions, 8 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_public.h b/src/gallium/winsys/amdgpu/drm/amdgpu_public.h index ad133b20bf6..3cb5a1bf429 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_public.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_public.h @@ -32,9 +32,11 @@ struct radeon_winsys; struct pipe_screen; -typedef struct pipe_screen *(*radeon_screen_create_t)(struct radeon_winsys *); +typedef struct pipe_screen *(*radeon_screen_create_t)(struct radeon_winsys *, + unsigned); struct radeon_winsys * -amdgpu_winsys_create(int fd, radeon_screen_create_t screen_create); +amdgpu_winsys_create(int fd, unsigned flags, + radeon_screen_create_t screen_create); #endif diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 2cbc39c0c70..c4d52166fb7 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -229,7 +229,8 @@ static const char* amdgpu_get_chip_name(struct radeon_winsys *ws) PUBLIC struct radeon_winsys * -amdgpu_winsys_create(int fd, radeon_screen_create_t screen_create) +amdgpu_winsys_create(int fd, unsigned flags, + radeon_screen_create_t screen_create) { struct amdgpu_winsys *ws; drmVersionPtr version = drmGetVersion(fd); @@ -324,7 +325,7 @@ amdgpu_winsys_create(int fd, radeon_screen_create_t screen_create) * * Alternatively, we could create the screen based on "ws->gen" * and link all drivers into one binary blob. */ - ws->base.screen = screen_create(&ws->base); + ws->base.screen = screen_create(&ws->base, flags); if (!ws->base.screen) { amdgpu_winsys_destroy(&ws->base); mtx_unlock(&dev_tab_mutex); diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_public.h b/src/gallium/winsys/radeon/drm/radeon_drm_public.h index dfcaaa4b6ef..2192aa68ef6 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_public.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_public.h @@ -6,9 +6,11 @@ struct radeon_winsys; struct pipe_screen; -typedef struct pipe_screen *(*radeon_screen_create_t)(struct radeon_winsys *); +typedef struct pipe_screen *(*radeon_screen_create_t)(struct radeon_winsys *, + unsigned); struct radeon_winsys * -radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create); +radeon_drm_winsys_create(int fd, unsigned flags, + radeon_screen_create_t screen_create); #endif diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index e0d4cc8d773..2a6ce2ca216 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -735,7 +735,8 @@ static int handle_compare(void *key1, void *key2) } PUBLIC struct radeon_winsys * -radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create) +radeon_drm_winsys_create(int fd, unsigned flags, + radeon_screen_create_t screen_create) { struct radeon_drm_winsys *ws; @@ -830,7 +831,7 @@ radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create) * * Alternatively, we could create the screen based on "ws->gen" * and link all drivers into one binary blob. */ - ws->base.screen = screen_create(&ws->base); + ws->base.screen = screen_create(&ws->base, flags); if (!ws->base.screen) { radeon_winsys_destroy(&ws->base); mtx_unlock(&fd_tab_mutex); |