diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-05-14 17:48:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-03 21:03:46 -0400 |
commit | fbd76d59efe061c89d4ba14eef3a2cac1e3056c2 (patch) | |
tree | 7fbb02d149ed64072cbf05a1e05292749bd51292 /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |
parent | 63ab1c2beefe36d49a19f9f715fefdc293546e39 (diff) |
drm/amdgpu: rework tiling flags
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index ef611986b2b6..73b7aad5a872 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <drm/drm_crtc_helper.h> | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include <drm/amdgpu_drm.h> | 33 | #include <drm/amdgpu_drm.h> |
34 | #include "amdgpu.h" | 34 | #include "amdgpu.h" |
35 | #include "cikd.h" | ||
35 | 36 | ||
36 | #include <drm/drm_fb_helper.h> | 37 | #include <drm/drm_fb_helper.h> |
37 | 38 | ||
@@ -135,7 +136,7 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, | |||
135 | rbo = gem_to_amdgpu_bo(gobj); | 136 | rbo = gem_to_amdgpu_bo(gobj); |
136 | 137 | ||
137 | if (fb_tiled) | 138 | if (fb_tiled) |
138 | tiling_flags = AMDGPU_TILING_MACRO; | 139 | tiling_flags = AMDGPU_TILING_SET(ARRAY_MODE, GRPH_ARRAY_2D_TILED_THIN1); |
139 | 140 | ||
140 | ret = amdgpu_bo_reserve(rbo, false); | 141 | ret = amdgpu_bo_reserve(rbo, false); |
141 | if (unlikely(ret != 0)) | 142 | if (unlikely(ret != 0)) |