mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
vk/image: Teach anv_image_choose_tile_mode about WMAJOR
This commit is contained in:
parent
2d2e148952
commit
1ee2d1c3fc
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue