diff options
author | Marek Olšák <[email protected]> | 2019-05-17 15:36:57 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-05-27 15:26:06 -0400 |
commit | fccced57cf484c6836e6637c0f9df90f09b344b6 (patch) | |
tree | d18d16358a72f9d1d9f16fcca0c10c419c1e04d6 /src/gallium/targets | |
parent | bb5d82bd06b168f8f641516e6d695c97e84888ca (diff) |
radeonsi: clean up winsys creation
- unify the code
- choose radeon or amdgpu based on the DRM version, not based on which one
succeeds first
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_radeonsi.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c b/src/gallium/targets/pipe-loader/pipe_radeonsi.c index 5657595af19..9d925c727f1 100644 --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c @@ -1,23 +1,14 @@ #include "state_tracker/drm_driver.h" #include "target-helpers/inline_debug_helper.h" -#include "radeon/drm/radeon_drm_public.h" -#include "radeon/radeon_winsys.h" -#include "amdgpu/drm/amdgpu_public.h" #include "radeonsi/si_public.h" #include "util/xmlpool.h" static struct pipe_screen * create_screen(int fd, const struct pipe_screen_config *config) { - struct radeon_winsys *rw; + struct pipe_screen *screen = radeonsi_screen_create(fd, config); - /* First, try amdgpu. */ - rw = amdgpu_winsys_create(fd, config, radeonsi_screen_create); - - if (!rw) - rw = radeon_drm_winsys_create(fd, config, radeonsi_screen_create); - - return rw ? debug_screen_wrap(rw->screen) : NULL; + return screen ? debug_screen_wrap(screen) : NULL; } static const char *driconf_xml = |