vk/image: Enable 2d single-sample color miptrees
authorChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 04:27:54 +0000 (21:27 -0700)
committerChad Versace <chad.versace@intel.com>
Sat, 27 Jun 2015 05:11:15 +0000 (22:11 -0700)
commit5b3a1ceb83a2a47a4fcde38688d26e008ddda0eb
tree309e0297ce88a20165e3c60f92d7b77131d90056
parentc6e76aed9dc28aae05cb11857201b5dab0c0cae8
vk/image: Enable 2d single-sample color miptrees

What's been tested, for both image views and color attachment views:

    - VK_FORMAT_R8G8B8A8_UNORM
    - VK_IMAGE_VIEW_TYPE_2D
    - mipLevels: 1, 2
    - baseMipLevel: 0, 1
    - arraySize: 1, 2
    - baseArraySlice: 0, 1

What's known to be broken:

    - Depth and stencil miptrees. To fix this, anv_depth_stencil_view
      needs major rework.
    - VkImageViewType != 2D
    - MSAA

Fixes Crucible tests:

  func.miptree.view-2d.levels02.array01.*
  func.miptree.view-2d.levels01.array02.*
  func.miptree.view-2d.levels02.array02.*
src/vulkan/image.c
src/vulkan/private.h