From 21eb93d89a7ac0cd281d7bb3ca277c7fc7163380 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Thu, 15 Oct 2015 16:51:05 -0600 Subject: bug-14291: combine color and depth/stencil clears --- loader/table_ops.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'loader/table_ops.h') diff --git a/loader/table_ops.h b/loader/table_ops.h index 6c732d0a..a10fe8a1 100644 --- a/loader/table_ops.h +++ b/loader/table_ops.h @@ -149,8 +149,7 @@ static inline void loader_init_device_dispatch_table(VkLayerDispatchTable *table table->CmdFillBuffer = (PFN_vkCmdFillBuffer) gpa(dev, "vkCmdFillBuffer"); table->CmdClearColorImage = (PFN_vkCmdClearColorImage) gpa(dev, "vkCmdClearColorImage"); table->CmdClearDepthStencilImage = (PFN_vkCmdClearDepthStencilImage) gpa(dev, "vkCmdClearDepthStencilImage"); - table->CmdClearColorAttachment = (PFN_vkCmdClearColorAttachment) gpa(dev, "vkCmdClearColorAttachment"); - table->CmdClearDepthStencilAttachment = (PFN_vkCmdClearDepthStencilAttachment) gpa(dev, "vkCmdClearDepthStencilAttachment"); + table->CmdClearAttachments = (PFN_vkCmdClearAttachments) gpa(dev, "vkCmdClearAttachments"); table->CmdResolveImage = (PFN_vkCmdResolveImage) gpa(dev, "vkCmdResolveImage"); table->CmdSetEvent = (PFN_vkCmdSetEvent) gpa(dev, "vkCmdSetEvent"); table->CmdResetEvent = (PFN_vkCmdResetEvent) gpa(dev, "vkCmdResetEvent"); @@ -413,10 +412,8 @@ static inline void *loader_lookup_device_dispatch_table( return (void *) table->CmdClearColorImage; if (!strcmp(name, "CmdClearDepthStencilImage")) return (void *) table->CmdClearDepthStencilImage; - if (!strcmp(name, "CmdClearColorAttachment")) - return (void *) table->CmdClearColorAttachment; - if (!strcmp(name, "CmdClearDepthStencilAttachment")) - return (void *) table->CmdClearDepthStencilAttachment; + if (!strcmp(name, "CmdClearAttachments")) + return (void *) table->CmdClearAttachments; if (!strcmp(name, "CmdResolveImage")) return (void *) table->CmdResolveImage; if (!strcmp(name, "CmdSetEvent")) -- cgit v1.2.3