Searched refs:sim_bo (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/broadcom/simulator/ |
D | v3d_simulator.c | 176 struct v3d_simulator_bo *sim_bo = rzalloc(file, in v3d_create_simulator_bo() local 180 sim_bo->file = file; in v3d_create_simulator_bo() 183 sim_bo->block = u_mmAllocMem(sim_state.heap, size + 4, GMP_ALIGN2, 0); in v3d_create_simulator_bo() 185 assert(sim_bo->block); in v3d_create_simulator_bo() 187 set_gmp_flags(file, sim_bo->block->ofs, size, 0x3); in v3d_create_simulator_bo() 189 sim_bo->size = size; in v3d_create_simulator_bo() 192 sim_bo->sim_vaddr = sim_state.mem + sim_bo->block->ofs - sim_state.mem_base; in v3d_create_simulator_bo() 193 memset(sim_bo->sim_vaddr, 0xd0, size); in v3d_create_simulator_bo() 195 *(uint32_t *)(sim_bo->sim_vaddr + sim_bo->size) = BO_SENTINEL; in v3d_create_simulator_bo() 197 return sim_bo; in v3d_create_simulator_bo() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_simulator.c | 140 struct vc4_simulator_bo *sim_bo = rzalloc(file, in vc4_create_simulator_bo() local 142 struct drm_vc4_bo *bo = &sim_bo->base; in vc4_create_simulator_bo() 146 sim_bo->file = file; in vc4_create_simulator_bo() 147 sim_bo->handle = handle; in vc4_create_simulator_bo() 151 sim_bo->block = u_mmAllocMem(sim_state.heap, size + 4, PAGE_ALIGN2, 0); in vc4_create_simulator_bo() 153 assert(sim_bo->block); in vc4_create_simulator_bo() 157 obj->vaddr = sim_state.mem + sim_bo->block->ofs; in vc4_create_simulator_bo() 180 sim_bo->gem_vaddr = mmap(NULL, obj->base.size, in vc4_create_simulator_bo() 183 if (sim_bo->gem_vaddr == MAP_FAILED) { in vc4_create_simulator_bo() 190 return sim_bo; in vc4_create_simulator_bo() [all …]
|