Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ __pycache__
pve

# CMake build directories
build*
**/build*

# Data files and build outputs
*.log
Expand Down
6 changes: 3 additions & 3 deletions generator/vk_layer/source/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ class Device
VkCommandBuffer handle);

/**
* \brief Drop a device from the global store of dispatchable devices.
* @brief Drop a device from the global store of dispatchable devices.
*
* This must be called before the driver VkDevice has been destroyed, as
* we deference the native device handle to get the dispatch key.
*
* \param handle The dispatchable device handle to use as an indirect lookup.
* @param handle The dispatchable device handle to use as an indirect lookup.
*
* \return Returns the ownership of the Device object to the caller.
* @return Returns the ownership of the Device object to the caller.
*/
static std::unique_ptr<Device> destroy(
VkDevice handle);
Expand Down
6 changes: 3 additions & 3 deletions generator/vk_layer/source/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ class Instance
VkPhysicalDevice handle);

/**
* \brief Drop an instance from the global store of dispatchable instances.
* @brief Drop an instance from the global store of dispatchable instances.
*
* This must be called before the driver VkInstance has been destroyed, as
* we deference the native instance handle to get the dispatch key.
*
* \param handle The dispatchable instance handle to use as an indirect lookup.
* @param handle The dispatchable instance handle to use as an indirect lookup.
*
* \return Returns the ownership of the Instance object to the caller.
* @return Returns the ownership of the Instance object to the caller.
*/
static std::unique_ptr<Instance> destroy(
VkInstance handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_example/source/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ class Device
static Device* retrieve(VkCommandBuffer handle);

/**
* \brief Drop a device from the global store of dispatchable devices.
* @brief Drop a device from the global store of dispatchable devices.
*
* This must be called before the driver VkDevice has been destroyed, as
* we deference the native device handle to get the dispatch key.
*
* \param handle The dispatchable device handle to use as an indirect lookup.
* @param handle The dispatchable device handle to use as an indirect lookup.
*
* \return Returns the ownership of the Device object to the caller.
* @return Returns the ownership of the Device object to the caller.
*/
static std::unique_ptr<Device> destroy(
VkDevice handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_example/source/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ class Instance
static Instance* retrieve(VkPhysicalDevice handle);

/**
* \brief Drop an instance from the global store of dispatchable instances.
* @brief Drop an instance from the global store of dispatchable instances.
*
* This must be called before the driver VkInstance has been destroyed, as
* we deference the native instance handle to get the dispatch key.
*
* \param handle The dispatchable instance handle to use as an indirect lookup.
* @param handle The dispatchable instance handle to use as an indirect lookup.
*
* \return Returns the ownership of the Instance object to the caller.
* @return Returns the ownership of the Instance object to the caller.
*/
static std::unique_ptr<Instance> destroy(
VkInstance handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_profile/source/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ class Device
static Device* retrieve(VkCommandBuffer handle);

/**
* \brief Drop a device from the global store of dispatchable devices.
* @brief Drop a device from the global store of dispatchable devices.
*
* This must be called before the driver VkDevice has been destroyed, as
* we deference the native device handle to get the dispatch key.
*
* \param handle The dispatchable device handle to use as an indirect lookup.
* @param handle The dispatchable device handle to use as an indirect lookup.
*
* \return Returns the ownership of the Device object to the caller.
* @return Returns the ownership of the Device object to the caller.
*/
static std::unique_ptr<Device> destroy(
VkDevice handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_profile/source/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ class Instance
static Instance* retrieve(VkPhysicalDevice handle);

/**
* \brief Drop an instance from the global store of dispatchable instances.
* @brief Drop an instance from the global store of dispatchable instances.
*
* This must be called before the driver VkInstance has been destroyed, as
* we deference the native instance handle to get the dispatch key.
*
* \param handle The dispatchable instance handle to use as an indirect lookup.
* @param handle The dispatchable instance handle to use as an indirect lookup.
*
* \return Returns the ownership of the Instance object to the caller.
* @return Returns the ownership of the Instance object to the caller.
*/
static std::unique_ptr<Instance> destroy(
VkInstance handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_support/source/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ class Device
static Device* retrieve(VkCommandBuffer handle);

/**
* \brief Drop a device from the global store of dispatchable devices.
* @brief Drop a device from the global store of dispatchable devices.
*
* This must be called before the driver VkDevice has been destroyed, as
* we deference the native device handle to get the dispatch key.
*
* \param handle The dispatchable device handle to use as an indirect lookup.
* @param handle The dispatchable device handle to use as an indirect lookup.
*
* \return Returns the ownership of the Device object to the caller.
* @return Returns the ownership of the Device object to the caller.
*/
static std::unique_ptr<Device> destroy(
VkDevice handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_support/source/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ class Instance
static Instance* retrieve(VkPhysicalDevice handle);

/**
* \brief Drop an instance from the global store of dispatchable instances.
* @brief Drop an instance from the global store of dispatchable instances.
*
* This must be called before the driver VkInstance has been destroyed, as
* we deference the native instance handle to get the dispatch key.
*
* \param handle The dispatchable instance handle to use as an indirect lookup.
* @param handle The dispatchable instance handle to use as an indirect lookup.
*
* \return Returns the ownership of the Instance object to the caller.
* @return Returns the ownership of the Instance object to the caller.
*/
static std::unique_ptr<Instance> destroy(
VkInstance handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_timeline/source/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ class Device
static Device* retrieve(VkCommandBuffer handle);

/**
* \brief Drop a device from the global store of dispatchable devices.
* @brief Drop a device from the global store of dispatchable devices.
*
* This must be called before the driver VkDevice has been destroyed, as
* we deference the native device handle to get the dispatch key.
*
* \param handle The dispatchable device handle to use as an indirect lookup.
* @param handle The dispatchable device handle to use as an indirect lookup.
*
* \return Returns the ownership of the Device object to the caller.
* @return Returns the ownership of the Device object to the caller.
*/
static std::unique_ptr<Device> destroy(
VkDevice handle);
Expand Down
6 changes: 3 additions & 3 deletions layer_gpu_timeline/source/instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ class Instance
static Instance* retrieve(VkPhysicalDevice handle);

/**
* \brief Drop an instance from the global store of dispatchable instances.
* @brief Drop an instance from the global store of dispatchable instances.
*
* This must be called before the driver VkInstance has been destroyed, as
* we deference the native instance handle to get the dispatch key.
*
* \param handle The dispatchable instance handle to use as an indirect lookup.
* @param handle The dispatchable instance handle to use as an indirect lookup.
*
* \return Returns the ownership of the Instance object to the caller.
* @return Returns the ownership of the Instance object to the caller.
*/
static std::unique_ptr<Instance> destroy(
VkInstance handle);
Expand Down
2 changes: 1 addition & 1 deletion layer_gpu_timeline/source/timeline_protobuf_encoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* Methods for transforming layer command stream workloads into metadata messages
* for transmission to the host.
*
Expand Down
2 changes: 1 addition & 1 deletion source_common/comms/comms_transmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Transmitter::~Transmitter()
void Transmitter::runTransmitter()
{
// Keep looping until we are told to stop and message queue is empty
while (!stopRequested || !parent.messageQueue.is_empty())
while (!stopRequested || !parent.messageQueue.isEmpty())
{
auto message = parent.dequeueMessage();

Expand Down
4 changes: 2 additions & 2 deletions source_common/trackers/command_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* The declaration of Vulkan command pool and command buffer use trackers.
*
* Role summary
Expand Down Expand Up @@ -246,7 +246,7 @@ class CommandPool
*
* @param commandBuffer The Vulkan handle of the allocated command buffer.
*
* \return The layer wrapper object for the command buffer.
* @return The layer wrapper object for the command buffer.
*/
CommandBuffer& allocateCommandBuffer(VkCommandBuffer commandBuffer);

Expand Down
2 changes: 1 addition & 1 deletion source_common/trackers/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* This module implements basic tracking of Vulkan devices.
*
* Role summary
Expand Down
2 changes: 1 addition & 1 deletion source_common/trackers/layer_command_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* The declaration of a replayable layer command stream.
*
* Role summary
Expand Down
2 changes: 1 addition & 1 deletion source_common/trackers/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* The declaration of Vulkan queue use trackers.
*
* Role summary
Expand Down
2 changes: 1 addition & 1 deletion source_common/trackers/render_pass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* The declaration of Vulkan render pass use trackers.
*
* Role summary
Expand Down
2 changes: 1 addition & 1 deletion source_common/trackers/stats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/**
* \file
* @file
* This module implements basic counter tracking of Vulkan workloads.
*/

Expand Down
22 changes: 11 additions & 11 deletions source_common/utils/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,30 @@ class Task
*/
void wait()
{
std::unique_lock<std::mutex> lock(condition_lock);
complete_condition.wait(lock, [this]{ return complete.load(); });
std::unique_lock<std::mutex> lock(conditionLock);
completeCondition.wait(lock, [this]{ return complete.load(); });
}

/**
* @brief Notify that the task is complete.
*/
void notify()
{
std::unique_lock<std::mutex> lock(condition_lock);
std::unique_lock<std::mutex> lock(conditionLock);
complete = true;
lock.unlock();
complete_condition.notify_all();
completeCondition.notify_all();
}

private:
/** @brief Task completion status. */
std::atomic<bool> complete { false };

/** @brief Condition variable for notifications. */
std::condition_variable complete_condition;
std::condition_variable completeCondition;

/** @brief Lock for notifications. */
std::mutex condition_lock;
std::mutex conditionLock;
};


Expand All @@ -86,7 +86,7 @@ class TaskQueue
{
private:
/** @brief Lock for thread-safe access. */
std::mutex store_lock;
std::mutex storeLock;

/** @brief Condition variable for notifications. */
std::condition_variable condition;
Expand All @@ -103,7 +103,7 @@ class TaskQueue
void put(
T task
) {
std::lock_guard<std::mutex> lock(store_lock);
std::lock_guard<std::mutex> lock(storeLock);
store.push_back(task);
condition.notify_one();
}
Expand All @@ -117,7 +117,7 @@ class TaskQueue
*/
T get()
{
std::unique_lock<std::mutex> lock(store_lock);
std::unique_lock<std::mutex> lock(storeLock);

// Release lock until we have data, and then reacquire
while(store.empty())
Expand All @@ -138,9 +138,9 @@ class TaskQueue
*
* @return @c true if the queue is empty, @c false otherwise.
*/
bool is_empty()
bool isEmpty()
{
std::unique_lock<std::mutex> lock(store_lock);
std::lock_guard<std::mutex> lock(storeLock);
return store.empty();
}
};