From d311e837f4c73e2b4985b07feb585050dc7a09a5 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 28 Jul 2017 21:44:47 +0200 Subject: ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it's useless Reviewed-by: Dave Airlie Reviewed-by: Nicolai Hähnle --- src/amd/vulkan/radv_image.c | 1 - src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c | 3 --- 2 files changed, 4 deletions(-) (limited to 'src/amd/vulkan') 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; -- cgit v1.2.3