aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-02-02 15:51:57 -0700
committerMark Lobodzinski <mark@lunarg.com>2017-02-03 15:55:20 -0700
commitcbd1b25e086a72e9fd4db45aeaee7fd35ec60cdf (patch)
treec67e579ef6e2b24595d41b8358461daca49ec47b
parenta4f8e295450b685be909c69a1bb10a8010575d87 (diff)
downloadusermoji-cbd1b25e086a72e9fd4db45aeaee7fd35ec60cdf.tar.xz
layers: Remove CmdClearAttachments from image layer
Change-Id: I8974331f45308696372b675e05408df2a42486f9
-rw-r--r--layers/image.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/layers/image.cpp b/layers/image.cpp
index 13099d46..bd9cbbc1 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -241,17 +241,6 @@ VKAPI_ATTR void VKAPI_CALL DestroyImage(VkDevice device, VkImage image, const Vk
device_data->device_dispatch_table->DestroyImage(device, image, pAllocator);
}
-VKAPI_ATTR void VKAPI_CALL CmdClearAttachments(VkCommandBuffer commandBuffer, uint32_t attachmentCount,
- const VkClearAttachment *pAttachments, uint32_t rectCount,
- const VkClearRect *pRects) {
- bool skipCall = false;
- layer_data *device_data = get_my_data_ptr(get_dispatch_key(commandBuffer), layer_data_map);
-
- if (!skipCall) {
- device_data->device_dispatch_table->CmdClearAttachments(commandBuffer, attachmentCount, pAttachments, rectCount, pRects);
- }
-}
-
static bool ValidateBufferImageCopyData(layer_data *dev_data, uint32_t regionCount, const VkBufferImageCopy *pRegions,
VkImage image, const char *function) {
bool skip = false;
@@ -775,7 +764,6 @@ static PFN_vkVoidFunction intercept_core_device_command(const char *name) {
{"vkDestroyDevice", reinterpret_cast<PFN_vkVoidFunction>(DestroyDevice)},
{"vkCreateImage", reinterpret_cast<PFN_vkVoidFunction>(CreateImage)},
{"vkDestroyImage", reinterpret_cast<PFN_vkVoidFunction>(DestroyImage)},
- {"vkCmdClearAttachments", reinterpret_cast<PFN_vkVoidFunction>(CmdClearAttachments)},
{"vkCmdCopyImageToBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyImageToBuffer)},
{"vkCmdCopyBufferToImage", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyBufferToImage)},
{"vkCmdBlitImage", reinterpret_cast<PFN_vkVoidFunction>(CmdBlitImage)},