• Home
  • Raw
  • Download

Lines Matching refs:sscreen

100 void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res, uint64_t size,  in si_init_resource_fields()  argument
124 if (!sscreen->info.kernel_flushes_hdp_before_ib) { in si_init_resource_fields()
152 if (!sscreen->info.kernel_flushes_hdp_before_ib || !sscreen->info.is_amdgpu) in si_init_resource_fields()
171 (sscreen->debug_flags & DBG(TMZ) && in si_init_resource_fields()
178 if (sscreen->debug_flags & DBG(NO_WC)) in si_init_resource_fields()
194 if (sscreen->info.chip_class >= GFX9 && in si_init_resource_fields()
208 sscreen->info.has_dedicated_vram && size >= sscreen->info.vram_vis_size / 4 ? 1 : 0; in si_init_resource_fields()
214 bool si_alloc_resource(struct si_screen *sscreen, struct si_resource *res) in si_alloc_resource() argument
219 new_buf = sscreen->ws->buffer_create(sscreen->ws, res->bo_size, res->bo_alignment, res->domains, in si_alloc_resource()
231 res->gpu_address = sscreen->ws->buffer_get_virtual_address(res->buf); in si_alloc_resource()
239 assert((start >> 32) == sscreen->info.address32_hi); in si_alloc_resource()
240 assert((last >> 32) == sscreen->info.address32_hi); in si_alloc_resource()
249 if (sscreen->debug_flags & DBG(VM) && res->b.b.target == PIPE_BUFFER) { in si_alloc_resource()
255 si_screen_clear_buffer(sscreen, &res->b.b, 0, res->bo_size, 0); in si_alloc_resource()
665 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_create() local
671 si_init_resource_fields(sscreen, buf, templ->width0, alignment); in si_buffer_create()
676 if (!si_alloc_resource(sscreen, buf)) { in si_buffer_create()
711 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_from_user_memory() local
712 struct radeon_winsys *ws = sscreen->ws; in si_buffer_from_user_memory()
740 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_from_winsys_buffer() local
747 res->gpu_address = sscreen->ws->buffer_get_virtual_address(res->buf); in si_buffer_from_winsys_buffer()
750 res->domains = sscreen->ws->buffer_get_initial_domain(res->buf); in si_buffer_from_winsys_buffer()
757 if (sscreen->ws->buffer_get_flags) in si_buffer_from_winsys_buffer()
758 res->flags = sscreen->ws->buffer_get_flags(res->buf); in si_buffer_from_winsys_buffer()
809 void si_init_screen_buffer_functions(struct si_screen *sscreen) in si_init_screen_buffer_functions() argument
811 sscreen->b.resource_create = si_resource_create; in si_init_screen_buffer_functions()
812 sscreen->b.resource_destroy = u_resource_destroy_vtbl; in si_init_screen_buffer_functions()
813 sscreen->b.resource_from_user_memory = si_buffer_from_user_memory; in si_init_screen_buffer_functions()