ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX
authorMarek Olšák <marek.olsak@amd.com>
Fri, 28 Jul 2017 19:44:47 +0000 (21:44 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 4 Aug 2017 00:10:04 +0000 (02:10 +0200)
it's useless

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.h
src/amd/vulkan/radv_image.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c

index ee96003f661d8fc1daa483d8abd3e1178a77640b..3c9e13e3f2132ae00cc328fb1a37ed6e3299b155 100644 (file)
@@ -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)
index 4b47e17af0a62531084fb25580cd82e07245e346..499287d459bdf895b919096153f09e30b4c5d1d7 100644 (file)
@@ -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 |
index eaa978e38509c9ed45ad4e33dfffb065cb9d5596..e3ccb812a7f85c87b17c0947eccfdfd9f6aab69a 100644 (file)
@@ -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;