aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-07-28 21:44:47 +0200
committerMarek Olšák <[email protected]>2017-08-04 02:10:04 +0200
commitd311e837f4c73e2b4985b07feb585050dc7a09a5 (patch)
treedf2678a5088daadb17536ed30479df19ed33c046 /src/amd/vulkan
parent4662e45350d54d55950253d361321ba6cb291c68 (diff)
ac/surface: remove RADEON_SURF_HAS_TILE_MODE_INDEX
it's useless Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_image.c1
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c3
2 files changed, 0 insertions, 4 deletions
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;