diff options
author | Chad Versace <[email protected]> | 2015-12-04 16:11:47 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-12-04 16:37:05 -0800 |
commit | 8b9ceda9f17a0f5def5319210bbe5cfec2f69ed2 (patch) | |
tree | ef48c331c352969ea5c8cb9e33b72fa5095c7bc8 | |
parent | 4dd5ef9e09c642d9482092cf3dd10455571cb28b (diff) |
anv/image: Delete old ifdef'd out code
-rw-r--r-- | src/vulkan/anv_image.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index f99155cad6a..9da4b8766ee 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -573,35 +573,3 @@ anv_image_get_surface_for_aspect_mask(struct anv_image *image, VkImageAspectFlag return NULL; } } - -#if 0 - VkImageAspectFlags aspect_mask = 0; - if (format->depth_format) - aspect_mask |= VK_IMAGE_ASPECT_DEPTH_BIT; - if (format->has_stencil) - aspect_mask |= VK_IMAGE_ASPECT_STENCIL_BIT; - if (!aspect_mask) - aspect_mask |= VK_IMAGE_ASPECT_COLOR_BIT; - - anv_image_view_init(iview, device, - &(VkImageViewCreateInfo) { - .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, - .image = info->image, - .viewType = VK_IMAGE_VIEW_TYPE_2D, - .format = info->format, - .channels = { - .r = VK_CHANNEL_SWIZZLE_R, - .g = VK_CHANNEL_SWIZZLE_G, - .b = VK_CHANNEL_SWIZZLE_B, - .a = VK_CHANNEL_SWIZZLE_A, - }, - .subresourceRange = { - .aspectMask = aspect_mask, - .baseMipLevel = info->mipLevel, - .mipLevels = 1, - .baseArrayLayer = info->baseArraySlice, - .arraySize = info->arraySize, - }, - }, - NULL); -#endif |