projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2e148
)
vk/image: Teach anv_image_choose_tile_mode about WMAJOR
author
Chad Versace
<chad.versace@intel.com>
Tue, 9 Jun 2015 21:56:58 +0000
(14:56 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Tue, 9 Jun 2015 23:38:55 +0000
(16:38 -0700)
src/vulkan/image.c
patch
|
blob
|
history
diff --git
a/src/vulkan/image.c
b/src/vulkan/image.c
index
2de5be9
..
8142658
100644
(file)
--- 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;