projects
/
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 2de5be93e1b3fd82ea7ba518026b9e94816d4fa8..814265889450188e7b2cf546e2f727ac03995d34 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;