From c8f1f2dc2df4f43b22be522d2957159681736c47 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 14 Feb 2017 00:56:26 +0000 Subject: [PATCH] winsys/radeon: remove fall-back defines MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Provided by libdrm as of last commit. Signed-off-by: Emil Velikov Reviewed-by: Nicolai Hähnle --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 12 ------------ .../winsys/radeon/drm/radeon_drm_winsys.c | 17 ----------------- .../winsys/radeon/drm/radeon_drm_winsys.h | 18 ------------------ 3 files changed, 47 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 9872861525c..2524339c9ee 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -582,18 +582,6 @@ static const struct pb_vtbl radeon_bo_vtbl = { /* other functions are never called */ }; -#ifndef RADEON_GEM_GTT_WC -#define RADEON_GEM_GTT_WC (1 << 2) -#endif -#ifndef RADEON_GEM_CPU_ACCESS -/* BO is expected to be accessed by the CPU */ -#define RADEON_GEM_CPU_ACCESS (1 << 3) -#endif -#ifndef RADEON_GEM_NO_CPU_ACCESS -/* CPU access is not expected to work for this BO */ -#define RADEON_GEM_NO_CPU_ACCESS (1 << 4) -#endif - static struct radeon_bo *radeon_create_bo(struct radeon_drm_winsys *rws, unsigned size, unsigned alignment, unsigned usage, diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index bdcf1946595..6c077ea0abc 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -46,23 +46,6 @@ #include #include -#ifndef RADEON_INFO_ACTIVE_CU_COUNT -#define RADEON_INFO_ACTIVE_CU_COUNT 0x20 -#endif - -#ifndef RADEON_INFO_CURRENT_GPU_TEMP -#define RADEON_INFO_CURRENT_GPU_TEMP 0x21 -#define RADEON_INFO_CURRENT_GPU_SCLK 0x22 -#define RADEON_INFO_CURRENT_GPU_MCLK 0x23 -#define RADEON_INFO_READ_REG 0x24 -#endif - -#define RADEON_INFO_VA_UNMAP_WORKING 0x25 - -#ifndef RADEON_INFO_GPU_RESET_COUNTER -#define RADEON_INFO_GPU_RESET_COUNTER 0x26 -#endif - static struct util_hash_table *fd_tab = NULL; pipe_static_mutex(fd_tab_mutex); diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h index 7f2d99d372c..04659e45ef7 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h @@ -37,24 +37,6 @@ #include "util/list.h" #include -#ifndef DRM_RADEON_GEM_USERPTR - -#define DRM_RADEON_GEM_USERPTR 0x2d - -#define RADEON_GEM_USERPTR_READONLY (1 << 0) -#define RADEON_GEM_USERPTR_ANONONLY (1 << 1) -#define RADEON_GEM_USERPTR_VALIDATE (1 << 2) -#define RADEON_GEM_USERPTR_REGISTER (1 << 3) - -struct drm_radeon_gem_userptr { - uint64_t addr; - uint64_t size; - uint32_t flags; - uint32_t handle; -}; - -#endif - struct radeon_drm_cs; enum radeon_generation { -- 2.30.2