amdgpu: add amdgpu_va_get_start_addr
for Mesa Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>main
parent
02a41cf302
commit
85343095fd
|
@ -73,6 +73,7 @@ amdgpu_query_video_caps_info
|
||||||
amdgpu_read_mm_registers
|
amdgpu_read_mm_registers
|
||||||
amdgpu_va_range_alloc
|
amdgpu_va_range_alloc
|
||||||
amdgpu_va_range_free
|
amdgpu_va_range_free
|
||||||
|
amdgpu_va_get_start_addr
|
||||||
amdgpu_va_range_query
|
amdgpu_va_range_query
|
||||||
amdgpu_vm_reserve_vmid
|
amdgpu_vm_reserve_vmid
|
||||||
amdgpu_vm_unreserve_vmid
|
amdgpu_vm_unreserve_vmid
|
||||||
|
|
|
@ -1384,6 +1384,11 @@ int amdgpu_va_range_alloc(amdgpu_device_handle dev,
|
||||||
*/
|
*/
|
||||||
int amdgpu_va_range_free(amdgpu_va_handle va_range_handle);
|
int amdgpu_va_range_free(amdgpu_va_handle va_range_handle);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the starting address of the allocated virtual address range.
|
||||||
|
*/
|
||||||
|
uint64_t amdgpu_va_get_start_addr(amdgpu_va_handle va_handle);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query virtual address range
|
* Query virtual address range
|
||||||
*
|
*
|
||||||
|
|
|
@ -295,3 +295,8 @@ drm_public int amdgpu_va_range_free(amdgpu_va_handle va_range_handle)
|
||||||
free(va_range_handle);
|
free(va_range_handle);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drm_public uint64_t amdgpu_va_get_start_addr(amdgpu_va_handle va_handle)
|
||||||
|
{
|
||||||
|
return va_handle->address;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue