From d311e837f4c73e2b4985b07feb585050dc7a09a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 28 Jul 2017 21:44:47 +0200 Subject: [PATCH] ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit it's useless Reviewed-by: Dave Airlie Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_surface.h | 1 - src/amd/vulkan/radv_image.c | 1 - src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index ee96003f661..3c9e13e3f21 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -62,7 +62,6 @@ enum radeon_micro_mode { #define RADEON_SURF_SBUFFER (1 << 18) #define RADEON_SURF_Z_OR_SBUFFER (RADEON_SURF_ZBUFFER | RADEON_SURF_SBUFFER) /* bits 19 and 20 are reserved for libdrm_radeon, don't use them */ -#define RADEON_SURF_HAS_TILE_MODE_INDEX (1 << 20) #define RADEON_SURF_FMASK (1 << 21) #define RADEON_SURF_DISABLE_DCC (1 << 22) #define RADEON_SURF_TC_COMPATIBLE_HTILE (1 << 23) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 4b47e17af0a..499287d459b 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -108,7 +108,6 @@ radv_init_surface(struct radv_device *device, if (is_stencil) surface->flags |= RADEON_SURF_SBUFFER; - surface->flags |= RADEON_SURF_HAS_TILE_MODE_INDEX; surface->flags |= RADEON_SURF_OPTIMIZE_FOR_SPACE; if ((pCreateInfo->usage & (VK_IMAGE_USAGE_TRANSFER_SRC_BIT | diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c index eaa978e3850..e3ccb812a7f 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c @@ -42,9 +42,6 @@ static int radv_amdgpu_surface_sanity(const struct ac_surf_info *surf_info, { unsigned type = RADEON_SURF_GET(surf->flags, TYPE); - if (!(surf->flags & RADEON_SURF_HAS_TILE_MODE_INDEX)) - return -EINVAL; - if (!surf->blk_w || !surf->blk_h) return -EINVAL; -- 2.30.2