提交 63ab1c2b 编写于 作者: M Marek Olšák 提交者: Alex Deucher

drm/amdgpu: don't set unused tiling flags

Signed-off-by: NMarek Olšák <marek.olsak@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Acked-by: NChristian König <christian.koenig@amd.com>
上级 9f7eb536
......@@ -137,25 +137,13 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
if (fb_tiled)
tiling_flags = AMDGPU_TILING_MACRO;
#ifdef __BIG_ENDIAN
switch (bpp) {
case 32:
tiling_flags |= AMDGPU_TILING_SWAP_32BIT;
break;
case 16:
tiling_flags |= AMDGPU_TILING_SWAP_16BIT;
default:
break;
}
#endif
ret = amdgpu_bo_reserve(rbo, false);
if (unlikely(ret != 0))
goto out_unref;
if (tiling_flags) {
ret = amdgpu_bo_set_tiling_flags(rbo,
tiling_flags | AMDGPU_TILING_SURFACE);
tiling_flags);
if (ret)
dev_err(adev->dev, "FB failed to set tiling flags\n");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册