aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-11-28 11:25:19 +1300
committerChris Forbes <chrisforbes@google.com>2016-11-28 11:27:26 +1300
commit4053ff968dd2878bf64b76369c5cd55c8504e97c (patch)
tree22ddbdc5c16d1ba9cb1a2ad1189c27f9d9140fc4
parent20083d1770a0766ce68016b3ca2fad482291a100 (diff)
downloadusermoji-4053ff968dd2878bf64b76369c5cd55c8504e97c.tar.xz
layers: Remove handrolled clipped / sharingMode validation from
swapchain PV now does this Signed-off-by: Chris Forbes <chrisforbes@google.com>
-rw-r--r--layers/swapchain.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp
index 6a868708..bf42b53f 100644
--- a/layers/swapchain.cpp
+++ b/layers/swapchain.cpp
@@ -1289,23 +1289,7 @@ static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateI
"bad value(s) for pCreateInfo->queueFamilyIndexCount or pCreateInfo->pQueueFamilyIndices).",
sharingModeStr(pCreateInfo->imageSharingMode));
}
- } else if (pCreateInfo->imageSharingMode != VK_SHARING_MODE_EXCLUSIVE) {
- skip_call |=
- log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
- reinterpret_cast<uint64_t>(device), __LINE__, SWAPCHAIN_CREATE_SWAP_BAD_SHARING_MODE, swapchain_layer_name,
- "vkCreateSwapchainKHR() called with a non-supported pCreateInfo->imageSharingMode (i.e. %s).",
- sharingModeStr(pCreateInfo->imageSharingMode));
- }
-
- // Validate pCreateInfo->clipped:
- if (pCreateInfo && (pCreateInfo->clipped != VK_FALSE) && (pCreateInfo->clipped != VK_TRUE)) {
- skip_call |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
- reinterpret_cast<uint64_t>(device), __LINE__, SWAPCHAIN_BAD_BOOL, swapchain_layer_name,
- "vkCreateSwapchainKHR() called with a VkBool32 value that is neither VK_TRUE nor VK_FALSE, but "
- "has the numeric value of %d.",
- pCreateInfo->clipped);
}
-
return skip_call;
}