Home
last modified time | relevance | path

Searched refs:gpu_context (Results 1 – 1 of 1) sorted by relevance

/external/libdrm/amdgpu/
Damdgpu_cs.c57 struct amdgpu_context *gpu_context; in amdgpu_cs_ctx_create() local
67 gpu_context = calloc(1, sizeof(struct amdgpu_context)); in amdgpu_cs_ctx_create()
68 if (NULL == gpu_context) in amdgpu_cs_ctx_create()
71 gpu_context->dev = dev; in amdgpu_cs_ctx_create()
73 r = pthread_mutex_init(&gpu_context->sequence_mutex, NULL); in amdgpu_cs_ctx_create()
84 gpu_context->id = args.out.alloc.ctx_id; in amdgpu_cs_ctx_create()
88 list_inithead(&gpu_context->sem_list[i][j][k]); in amdgpu_cs_ctx_create()
89 *context = (amdgpu_context_handle)gpu_context; in amdgpu_cs_ctx_create()
94 pthread_mutex_destroy(&gpu_context->sequence_mutex); in amdgpu_cs_ctx_create()
95 free(gpu_context); in amdgpu_cs_ctx_create()