Searched refs:sim_bo (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_simulator.c | 165 struct vc5_simulator_bo *sim_bo = rzalloc(file, in vc5_create_simulator_bo() local 169 sim_bo->file = file; in vc5_create_simulator_bo() 170 sim_bo->handle = handle; in vc5_create_simulator_bo() 173 sim_bo->block = u_mmAllocMem(sim_state.heap, size + 4, GMP_ALIGN2, 0); in vc5_create_simulator_bo() 175 assert(sim_bo->block); in vc5_create_simulator_bo() 177 set_gmp_flags(file, sim_bo->block->ofs, size, 0x3); in vc5_create_simulator_bo() 179 sim_bo->size = size; in vc5_create_simulator_bo() 180 sim_bo->vaddr = sim_state.mem + sim_bo->block->ofs - sim_state.mem_base; in vc5_create_simulator_bo() 181 memset(sim_bo->vaddr, 0xd0, size); in vc5_create_simulator_bo() 183 *(uint32_t *)(sim_bo->vaddr + sim_bo->size) = BO_SENTINEL; in vc5_create_simulator_bo() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_simulator.c | 137 struct vc4_simulator_bo *sim_bo = rzalloc(file, in vc4_create_simulator_bo() local 139 struct drm_vc4_bo *bo = &sim_bo->base; in vc4_create_simulator_bo() 143 sim_bo->file = file; in vc4_create_simulator_bo() 144 sim_bo->handle = handle; in vc4_create_simulator_bo() 147 sim_bo->block = u_mmAllocMem(sim_state.heap, size + 4, PAGE_ALIGN2, 0); in vc4_create_simulator_bo() 149 assert(sim_bo->block); in vc4_create_simulator_bo() 153 obj->vaddr = sim_state.mem + sim_bo->block->ofs; in vc4_create_simulator_bo() 167 return sim_bo; in vc4_create_simulator_bo() 171 vc4_free_simulator_bo(struct vc4_simulator_bo *sim_bo) in vc4_free_simulator_bo() argument 173 struct vc4_simulator_file *sim_file = sim_bo->file; in vc4_free_simulator_bo() [all …]
|