Skip to contentSkip to conversation

drm/amdgpu: define amdgpu_syncobj_handle type for vulkan usage

PATCH In review Seth Zhu 2 participants 2 messages Jan 24, 2018 1 message not in the archive

lore
Share & tools
lore

Seth Zhu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: define amdgpu_syncobj_handle type for vulkan usage

Vulkan Fence and Semaphore(AMDVLK) will add implementation based on sync object. Semantic syncobj handle type is required instead of using uint32_t directly.

Change-Id Idbd2b2b161818fa58fe0bb3d1ac46453847ae626
---
 amdgpu/amdgpu.h | 4 ++++
 1 file changed, 4 insertions(+)
amdgpu/amdgpu.h +4 -0
index 9ef55e5..31fc201 100644
@@ -145,6 +145,10 @@ typedef struct amdgpu_semaphore *amdgpu_semaphore_handle;
  * Define handle for sem file
  */
 typedef uint32_t amdgpu_sem_handle;
+/**
+ * Define handle for syncobj
+ */
+typedef uint32_t amdgpu_syncobj_handle;
 
 
 /*--------------------------------------------------------------------------*/
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1516774761-32653-1-git-send-email-seth.zhu-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 24.01.2018 um 07:19 schrieb Seth Zhu:

Quoted 3 lines

Vulkan Fence and Semaphore(AMDVLK) will add implementation based on sync object. Semantic syncobj handle type is required instead of using uint32_t directly.

As I already wrote to David I don't think that this is a good idea.

The sync object is a general DRM object and nothing amdgpu specific.

Regards,
Christian.

Quoted 12 lines
Change-Id Idbd2b2b161818fa58fe0bb3d1ac46453847ae626
---
  amdgpu/amdgpu.h | 4 ++++
  1 file changed, 4 insertions(+)
amdgpu/amdgpu.h +0 -0
index 9ef55e5..31fc201 100644

amdgpu/amdgpu.h typedef struct amdgpu_semaphore *amdgpu_semaphore_handle; · line 154

Quoted 10 lines
amdgpu/amdgpu.h +4 -0
@@ -145,6 +145,10 @@ typedef struct amdgpu_semaphore *amdgpu_semaphore_handle;
   * Define handle for sem file
   */
  typedef uint32_t amdgpu_sem_handle;
+/**
+ * Define handle for syncobj
+ */
+typedef uint32_t amdgpu_syncobj_handle;
 
 
  /*--------------------------------------------------------------------------*/

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx