From: Marek Olšák Date: Fri, 28 Jul 2017 19:44:47 +0000 (+0200) Subject: ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d311e837f4c73e2b4985b07feb585050dc7a09a5;p=mesa.git ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX it's useless Reviewed-by: Dave Airlie Reviewed-by: Nicolai Hähnle --- 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;