summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-05-17 15:36:57 -0400
committerMarek Olšák <[email protected]>2019-05-27 15:26:06 -0400
commitfccced57cf484c6836e6637c0f9df90f09b344b6 (patch)
treed18d16358a72f9d1d9f16fcca0c10c419c1e04d6 /src/gallium/targets
parentbb5d82bd06b168f8f641516e6d695c97e84888ca (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.c13
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 =