[Mesa-dev] [PATCH] anv: Document anv_event::semaphore

Chad Versace chadversary at chromium.org
Thu Nov 3 17:29:42 UTC 2016


Explain why it's 64-bit and its valid values.
---
 src/intel/vulkan/anv_private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 8f5a95b..0924ccf 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -1252,7 +1252,11 @@ struct anv_fence {
 };
 
 struct anv_event {
+   /* One of VK_EVENT_SET or VK_EVENT_RESET.  The value is 64-bit because
+    * PIPE_CONTROL::PostSyncOperation::WriteImmediateData writes a QWord.
+    */
    uint64_t                                     semaphore;
+
    struct anv_state                             state;
 };
 
-- 
2.10.1



More information about the mesa-dev mailing list