Skip to content

Commit 98a4340

Browse files
Abhi-hppfacebook-github-bot
authored andcommitted
Stronger guard against linear tiling
Differential Revision: D66776766
1 parent 37d8267 commit 98a4340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/runtime/vk_api/Adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Adapter::Adapter(
182182
VkImage image = VK_NULL_HANDLE;
183183
VkResult res =
184184
vkCreateImage(device_.handle, &image_create_info, nullptr, &image);
185-
if (res == VK_ERROR_FEATURE_NOT_PRESENT) {
185+
if (res == VK_ERROR_FEATURE_NOT_PRESENT || res == VK_ERROR_FORMAT_NOT_SUPPORTED) {
186186
linear_tiling_3d_enabled_ = false;
187187
} else if (res == VK_SUCCESS) {
188188
vkDestroyImage(device_.handle, image, nullptr);

0 commit comments

Comments
 (0)