From 4a42f45514a9adb24ef6587235a27abb48d359f8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 6 Jul 2015 14:38:45 -0700 Subject: [PATCH] vk: Remove atomic counters stubs --- include/vulkan/vulkan.h | 27 --------------------------- src/vulkan/device.c | 33 --------------------------------- 2 files changed, 60 deletions(-) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 4ecdb4bc2d5..ea8357a25a9 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -1348,7 +1348,6 @@ typedef struct VkPhysicalDeviceQueueProperties_ { VkQueueFlags queueFlags; // Queue flags uint32_t queueCount; - uint32_t maxAtomicCounters; bool32_t supportsTimestamps; uint32_t maxMemReferences; // Tells how many memory references can be active for the given queue } VkPhysicalDeviceQueueProperties; @@ -2218,9 +2217,6 @@ typedef void (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool query typedef void (VKAPI *PFN_vkCmdResetQueryPool)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount); typedef void (VKAPI *PFN_vkCmdWriteTimestamp)(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkDeviceSize destOffset); typedef void (VKAPI *PFN_vkCmdCopyQueryPoolResults)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize destStride, VkQueryResultFlags flags); -typedef void (VKAPI *PFN_vkCmdInitAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, const uint32_t* pData); -typedef void (VKAPI *PFN_vkCmdLoadAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer srcBuffer, VkDeviceSize srcOffset); -typedef void (VKAPI *PFN_vkCmdSaveAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer destBuffer, VkDeviceSize destOffset); typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin); @@ -2871,29 +2867,6 @@ void VKAPI vkCmdCopyQueryPoolResults( VkDeviceSize destStride, VkQueryResultFlags flags); -void VKAPI vkCmdInitAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - const uint32_t* pData); - -void VKAPI vkCmdLoadAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - VkBuffer srcBuffer, - VkDeviceSize srcOffset); - -void VKAPI vkCmdSaveAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - VkBuffer destBuffer, - VkDeviceSize destOffset); - VkResult VKAPI vkCreateFramebuffer( VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 74771e30031..437eb5cfa1a 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -237,7 +237,6 @@ VkResult anv_GetPhysicalDeviceInfo( queue_properties->queueFlags = 0; queue_properties->queueCount = 1; - queue_properties->maxAtomicCounters = 0; queue_properties->supportsTimestamps = true; queue_properties->maxMemReferences = 256; return VK_SUCCESS; @@ -3608,38 +3607,6 @@ void anv_CmdPipelineBarrier( GEN8_PIPE_CONTROL_pack(&cmd_buffer->batch, dw, &cmd); } -void anv_CmdInitAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - const uint32_t* pData) -{ - stub(); -} - -void anv_CmdLoadAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - VkBuffer srcBuffer, - VkDeviceSize srcOffset) -{ - stub(); -} - -void anv_CmdSaveAtomicCounters( - VkCmdBuffer cmdBuffer, - VkPipelineBindPoint pipelineBindPoint, - uint32_t startCounter, - uint32_t counterCount, - VkBuffer destBuffer, - VkDeviceSize destOffset) -{ - stub(); -} - static void anv_framebuffer_destroy(struct anv_device *device, struct anv_object *object, -- 2.30.2