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/drivers/radeonsi | |
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/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_public.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 74ac0ec0389..ff787adcf34 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -916,7 +916,8 @@ static void si_test_vmfault(struct si_screen *sscreen) exit(0); } -struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws) +struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws, + unsigned flags) { struct si_screen *sscreen = CALLOC_STRUCT(si_screen); unsigned num_threads, num_compiler_threads, num_compiler_threads_lowprio, i; @@ -934,7 +935,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws) si_init_screen_state_functions(sscreen); - if (!r600_common_screen_init(&sscreen->b, ws) || + if (!r600_common_screen_init(&sscreen->b, ws, flags) || !si_init_gs_info(sscreen) || !si_init_shader_cache(sscreen)) { FREE(sscreen); diff --git a/src/gallium/drivers/radeonsi/si_public.h b/src/gallium/drivers/radeonsi/si_public.h index 7cf36c8407a..13b1731bc3c 100644 --- a/src/gallium/drivers/radeonsi/si_public.h +++ b/src/gallium/drivers/radeonsi/si_public.h @@ -25,6 +25,7 @@ struct radeon_winsys; -struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws); +struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws, + unsigned flags); #endif |