diff options
author | Chad Versace <[email protected]> | 2015-06-09 14:56:58 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-06-09 16:38:55 -0700 |
commit | 1ee2d1c3fc3a5d567847d0ffdc1d5f888df7859e (patch) | |
tree | e5004bc350aaea06b72959f90ffffb94782489e8 | |
parent | 2d2e1489527401afb915496f525fcdd636e28a56 (diff) |
vk/image: Teach anv_image_choose_tile_mode about WMAJOR
-rw-r--r-- | src/vulkan/image.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vulkan/image.c b/src/vulkan/image.c index 2de5be93e1b..81426588945 100644 --- a/src/vulkan/image.c +++ b/src/vulkan/image.c @@ -73,9 +73,16 @@ anv_image_choose_tile_mode(const VkImageCreateInfo *vk_info, switch (vk_info->tiling) { case VK_IMAGE_TILING_LINEAR: + if (unlikely(vk_info->format == VK_FORMAT_S8_UINT)) { + anv_abortf("requested linear stencil buffer"); + } return LINEAR; case VK_IMAGE_TILING_OPTIMAL: - return YMAJOR; + if (unlikely(vk_info->format == VK_FORMAT_S8_UINT)) { + return WMAJOR; + } else { + return YMAJOR; + } default: assert(!"bad VKImageTiling"); return LINEAR; |