amd: remove duplicated definitions from amdgpu_drm.h
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 May 2020 13:10:42 +0000 (09:10 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 7 May 2020 20:13:41 +0000 (20:13 +0000)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4863>

src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c

index 99bd44226aebdd9a256e954cda0571b5de42df1f..6c243560347c17962a776a7ca8bf761a59055db1 100644 (file)
@@ -40,9 +40,6 @@
 #include "util/u_memory.h"
 #include "util/u_math.h"
 
-#define AMDGPU_TILING_SCANOUT_SHIFT 63
-#define AMDGPU_TILING_SCANOUT_MASK 1
-
 static void radv_amdgpu_winsys_bo_destroy(struct radeon_winsys_bo *_bo);
 
 static int
index ec2fa3a56e4f5eaee88a6ff88f1851c6df773495..6b030d2e4877e9148d2fbde496f80e6255bd54cf 100644 (file)
@@ -1223,12 +1223,8 @@ static unsigned eg_tile_split_rev(unsigned eg_tile_split)
    }
 }
 
-#define AMDGPU_TILING_DCC_INDEPENDENT_128B_SHIFT       44
-#define AMDGPU_TILING_DCC_INDEPENDENT_128B_MASK                0x1
 #define AMDGPU_TILING_DCC_MAX_COMPRESSED_BLOCK_SIZE_SHIFT  45
 #define AMDGPU_TILING_DCC_MAX_COMPRESSED_BLOCK_SIZE_MASK   0x3
-#define AMDGPU_TILING_SCANOUT_SHIFT            63
-#define AMDGPU_TILING_SCANOUT_MASK             0x1
 
 static void amdgpu_buffer_get_metadata(struct pb_buffer *_buf,
                                        struct radeon_bo_metadata *md)
index 4308cfb3f96661e99d92672a22e985220fc370bc..ea2e372ceb85b852391b9ae504edaf379045e916 100644 (file)
 
 DEBUG_GET_ONCE_BOOL_OPTION(noop, "RADEON_NOOP", false)
 
-#ifndef AMDGPU_IB_FLAG_RESET_GDS_MAX_WAVE_ID
-#define AMDGPU_IB_FLAG_RESET_GDS_MAX_WAVE_ID  (1 << 4)
-#endif
-
-#ifndef AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES
-#define AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES 0x07
-#endif
-
 /* FENCES */
 
 static struct pipe_fence_handle *
index a195dc8a13652c9ae6c54dc6d3b9865f03a50a7b..b6cc0d0fd199ff2f6ac3440b94819d3b5ca7e4ab 100644 (file)
 #include "ac_llvm_util.h"
 #include "sid.h"
 
-#ifndef AMDGPU_INFO_NUM_VRAM_CPU_PAGE_FAULTS
-#define AMDGPU_INFO_NUM_VRAM_CPU_PAGE_FAULTS   0x1E
-#endif
-
 static struct hash_table *dev_tab = NULL;
 static simple_mtx_t dev_tab_mutex = _SIMPLE_MTX_INITIALIZER_NP;