Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c405 cbuf->res_bo = CALLOC(cbuf->nres, sizeof(struct virgl_hw_buf*)); in virgl_vtest_cmd_buf_create()
406 if (!cbuf->res_bo) { in virgl_vtest_cmd_buf_create()
419 FREE(cbuf->res_bo); in virgl_vtest_cmd_buf_destroy()
431 if (cbuf->res_bo[i] == res) in virgl_vtest_lookup_res()
435 if (cbuf->res_bo[i] == res) { in virgl_vtest_lookup_res()
450 p_atomic_dec(&cbuf->res_bo[i]->num_cs_references); in virgl_vtest_release_all_res()
451 virgl_vtest_resource_reference(vtws, &cbuf->res_bo[i], NULL); in virgl_vtest_release_all_res()
467 cbuf->res_bo[cbuf->cres] = NULL; in virgl_vtest_add_res()
468 virgl_vtest_resource_reference(vtws, &cbuf->res_bo[cbuf->cres], res); in virgl_vtest_add_res()
Dvirgl_vtest_winsys.h83 struct virgl_hw_res **res_bo; member
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c569 cbuf->res_bo = CALLOC(cbuf->nres, sizeof(struct virgl_hw_buf*)); in virgl_drm_cmd_buf_create()
570 if (!cbuf->res_bo) { in virgl_drm_cmd_buf_create()
576 FREE(cbuf->res_bo); in virgl_drm_cmd_buf_create()
590 FREE(cbuf->res_bo); in virgl_drm_cmd_buf_destroy()
603 if (cbuf->res_bo[i] == res) in virgl_drm_lookup_res()
607 if (cbuf->res_bo[i] == res) { in virgl_drm_lookup_res()
627 cbuf->res_bo[cbuf->cres] = NULL; in virgl_drm_add_res()
628 virgl_drm_resource_reference(qdws, &cbuf->res_bo[cbuf->cres], res); in virgl_drm_add_res()
643 p_atomic_dec(&cbuf->res_bo[i]->num_cs_references); in virgl_drm_release_all_res()
644 virgl_drm_resource_reference(qdws, &cbuf->res_bo[i], NULL); in virgl_drm_release_all_res()
Dvirgl_drm_winsys.h76 struct virgl_hw_res **res_bo; member