aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorMarek Olšák2016-08-19 09:07:50 -0500
committerMarek Olšák2016-09-05 08:43:22 -0500
commit39fff5996227692cf8b6a75771a28a8d624f16ef (patch)
tree1c21ecba11282641d28492b57bb60a0566c152f0 /radeon
parent4462303700fd982eb5fdd266ee04d0543f4f6bf0 (diff)
downloadexternal-libdrm-39fff5996227692cf8b6a75771a28a8d624f16ef.tar.gz
external-libdrm-39fff5996227692cf8b6a75771a28a8d624f16ef.tar.xz
external-libdrm-39fff5996227692cf8b6a75771a28a8d624f16ef.zip
radeon: sync radeon_drm.h with the kernel
the CIK tile mode definitions are moved out, userspace doesn't use them Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_surface.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 1424660d..16a8b00b 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -42,6 +42,14 @@
42#include "radeon_drm.h" 42#include "radeon_drm.h"
43#include "radeon_surface.h" 43#include "radeon_surface.h"
44 44
45#define CIK_TILE_MODE_COLOR_2D 14
46#define CIK_TILE_MODE_COLOR_2D_SCANOUT 10
47#define CIK_TILE_MODE_DEPTH_STENCIL_2D_TILESPLIT_64 0
48#define CIK_TILE_MODE_DEPTH_STENCIL_2D_TILESPLIT_128 1
49#define CIK_TILE_MODE_DEPTH_STENCIL_2D_TILESPLIT_256 2
50#define CIK_TILE_MODE_DEPTH_STENCIL_2D_TILESPLIT_512 3
51#define CIK_TILE_MODE_DEPTH_STENCIL_2D_TILESPLIT_ROW_SIZE 4
52
45#define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1)) 53#define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1))
46#define MAX2(A, B) ((A) > (B) ? (A) : (B)) 54#define MAX2(A, B) ((A) > (B) ? (A) : (B))
47#define MIN2(A, B) ((A) < (B) ? (A) : (B)) 55#define MIN2(A, B) ((A) < (B) ? (A) : (B))