mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 09:18:04 +02:00
amdgpu: Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially
Signed-off-by: David Mao <david.mao@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
aeab24aa9e
commit
1749d56ea0
2 changed files with 25 additions and 0 deletions
|
|
@ -1341,6 +1341,21 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem);
|
|||
*/
|
||||
const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
|
||||
|
||||
/**
|
||||
* Create kernel sync object
|
||||
*
|
||||
* \param dev - \c [in] device handle
|
||||
* \param flags - \c [in] flags that affect creation
|
||||
* \param syncobj - \c [out] sync object handle
|
||||
*
|
||||
* \return 0 on success\n
|
||||
* <0 - Negative POSIX Error code
|
||||
*
|
||||
*/
|
||||
int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
|
||||
uint32_t flags,
|
||||
uint32_t *syncobj);
|
||||
|
||||
/**
|
||||
* Create kernel sync object
|
||||
*
|
||||
|
|
|
|||
|
|
@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
|
|||
return amdgpu_cs_unreference_sem(sem);
|
||||
}
|
||||
|
||||
int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
|
||||
uint32_t flags,
|
||||
uint32_t *handle)
|
||||
{
|
||||
if (NULL == dev)
|
||||
return -EINVAL;
|
||||
|
||||
return drmSyncobjCreate(dev->fd, flags, handle);
|
||||
}
|
||||
|
||||
int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
|
||||
uint32_t *handle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue