Skip to content

Commit da35965

Browse files
jorgep31415facebook-github-bot
authored andcommitted
Delete unused functions in Adapter.* (#4118)
Summary: Pull Request resolved: #4118 TSIA ghstack-source-id: 232319223 exported-using-ghexport Reviewed By: SS-JIA Differential Revision: D59281549 fbshipit-source-id: 541daffe32f43c92a6c78ee1bf90bd06585322b9
1 parent 9013030 commit da35965

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

backends/vulkan/runtime/api/Adapter.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -362,25 +362,6 @@ void Adapter::submit_cmd(
362362
VK_CHECK(vkQueueSubmit(device_queue.handle, 1u, &submit_info, fence));
363363
}
364364

365-
void Adapter::submit_cmds(
366-
const Adapter::Queue& device_queue,
367-
const std::vector<VkCommandBuffer>& cmds,
368-
VkFence fence) {
369-
const VkSubmitInfo submit_info{
370-
VK_STRUCTURE_TYPE_SUBMIT_INFO, // sType
371-
nullptr, // pNext
372-
0u, // waitSemaphoreCount
373-
nullptr, // pWaitSemaphores
374-
nullptr, // pWaitDstStageMask
375-
utils::safe_downcast<uint32_t>(cmds.size()), // commandBufferCount
376-
cmds.data(), // pCommandBuffers
377-
0u, // signalSemaphoreCount
378-
nullptr, // pSignalSemaphores
379-
};
380-
381-
VK_CHECK(vkQueueSubmit(device_queue.handle, 1u, &submit_info, fence));
382-
}
383-
384365
std::string Adapter::stringize() const {
385366
std::stringstream ss;
386367

backends/vulkan/runtime/api/Adapter.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -234,21 +234,6 @@ class Adapter final {
234234
void
235235
submit_cmd(const Queue&, VkCommandBuffer, VkFence fence = VK_NULL_HANDLE);
236236

237-
void submit_cmds(
238-
const Adapter::Queue&,
239-
const std::vector<VkCommandBuffer>&,
240-
VkFence fence = VK_NULL_HANDLE);
241-
242-
// Miscellaneous
243-
244-
inline utils::uvec3 local_work_group_size() const {
245-
return {
246-
4u,
247-
4u,
248-
4u,
249-
};
250-
}
251-
252237
std::string stringize() const;
253238
friend std::ostream& operator<<(std::ostream&, const Adapter&);
254239
};

0 commit comments

Comments
 (0)