anv: Add support to create protected bo and protected exec_queue in Xe KMD

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30723>
This commit is contained in:
José Roberto de Souza
2024-07-15 12:53:06 -07:00
committed by Marge Bot
parent a99d90d015
commit e146e573f7
5 changed files with 47 additions and 6 deletions
+9
View File
@@ -94,3 +94,12 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd,
return true;
}
void
intel_xe_gem_add_ext(uint64_t *ptr, uint32_t ext_name, void *data)
{
struct drm_xe_user_extension *ext = data;
ext->next_extension = *ptr;
ext->name = ext_name;
*ptr = (uintptr_t)ext;
}
+2
View File
@@ -39,3 +39,5 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd,
uint64_t *gpu_timestamp,
uint64_t *cpu_delta);
bool xe_gem_can_render_on_fd(int fd);
void intel_xe_gem_add_ext(uint64_t *ptr, uint32_t ext_name, void *data);