Searched refs:global_bo_list (Results 1 – 8 of 8) sorted by relevance
320 u_rwlock_wrlock(&ws->global_bo_list.lock); in radv_amdgpu_global_bo_list_add()321 if (ws->global_bo_list.count == ws->global_bo_list.capacity) { in radv_amdgpu_global_bo_list_add()322 unsigned capacity = MAX2(4, ws->global_bo_list.capacity * 2); in radv_amdgpu_global_bo_list_add()324 realloc(ws->global_bo_list.bos, capacity * sizeof(struct radv_amdgpu_winsys_bo *)); in radv_amdgpu_global_bo_list_add()326 u_rwlock_wrunlock(&ws->global_bo_list.lock); in radv_amdgpu_global_bo_list_add()330 ws->global_bo_list.bos = (struct radv_amdgpu_winsys_bo **)data; in radv_amdgpu_global_bo_list_add()331 ws->global_bo_list.capacity = capacity; in radv_amdgpu_global_bo_list_add()334 ws->global_bo_list.bos[ws->global_bo_list.count++] = bo; in radv_amdgpu_global_bo_list_add()336 u_rwlock_wrunlock(&ws->global_bo_list.lock); in radv_amdgpu_global_bo_list_add()343 u_rwlock_wrlock(&ws->global_bo_list.lock); in radv_amdgpu_global_bo_list_del()[all …]
671 handles = malloc(sizeof(handles[0]) * ws->global_bo_list.count); in radv_amdgpu_get_bo_list()676 for (uint32_t i = 0; i < ws->global_bo_list.count; i++) { in radv_amdgpu_get_bo_list()677 handles[i].bo_handle = ws->global_bo_list.bos[i]->bo_handle; in radv_amdgpu_get_bo_list()678 handles[i].bo_priority = ws->global_bo_list.bos[i]->priority; in radv_amdgpu_get_bo_list()682 !radv_amdgpu_cs(cs_array[0])->num_virtual_buffers && !ws->global_bo_list.count) { in radv_amdgpu_get_bo_list()707 total_buffer_count += ws->global_bo_list.count; in radv_amdgpu_get_bo_list()773 for (unsigned i = 0; i < ws->global_bo_list.count; ++i) { in radv_amdgpu_get_bo_list()774 struct radv_amdgpu_winsys_bo *bo = ws->global_bo_list.bos[i]; in radv_amdgpu_get_bo_list()841 u_rwlock_rdlock(&aws->global_bo_list.lock); in radv_amdgpu_winsys_cs_submit_chained()877 u_rwlock_rdunlock(&aws->global_bo_list.lock); in radv_amdgpu_winsys_cs_submit_chained()[all …]
170 u_rwlock_destroy(&ws->global_bo_list.lock); in radv_amdgpu_winsys_destroy()171 free(ws->global_bo_list.bos); in radv_amdgpu_winsys_destroy()238 u_rwlock_init(&ws->global_bo_list.lock); in radv_amdgpu_winsys_create()
63 } global_bo_list; member
108 struct list_head global_bo_list; member
499 list_inithead(&aws->global_bo_list); in amdgpu_winsys_create()
449 list_addtail(&bo->u.real.global_list_item, &ws->global_bo_list); in amdgpu_add_buffer_to_global_list()
1415 LIST_FOR_EACH_ENTRY(bo, &ws->global_bo_list, u.real.global_list_item) { in amdgpu_cs_submit_ib()