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/winsys | |
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/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 1430c94d3e4..d2776b347cb 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -284,17 +284,9 @@ amdgpu_winsys_create(int fd, const struct pipe_screen_config *config, radeon_screen_create_t screen_create) { struct amdgpu_winsys *ws; - drmVersionPtr version = drmGetVersion(fd); amdgpu_device_handle dev; uint32_t drm_major, drm_minor, r; - /* The DRM driver version of amdgpu is 3.x.x. */ - if (version->version_major != 3) { - drmFreeVersion(version); - return NULL; - } - drmFreeVersion(version); - /* Look up the winsys from the dev table. */ simple_mtx_lock(&dev_tab_mutex); if (!dev_tab) |