Home
last modified time | relevance | path

Searched refs:rscreen (Results 1 – 18 of 18) sorted by relevance

/external/mesa3d/src/gallium/drivers/r600/
Dr600_pipe.c41 struct r600_screen *rscreen = rctx->screen; in r600_create_fence() local
44 pipe_mutex_lock(rscreen->fences.mutex); in r600_create_fence()
46 if (!rscreen->fences.bo) { in r600_create_fence()
48 rscreen->fences.bo = (struct r600_resource*) in r600_create_fence()
49 pipe_buffer_create(&rscreen->screen, PIPE_BIND_CUSTOM, in r600_create_fence()
51 if (!rscreen->fences.bo) { in r600_create_fence()
55 rscreen->fences.data = rctx->ws->buffer_map(rscreen->fences.bo->cs_buf, in r600_create_fence()
60 if (!LIST_IS_EMPTY(&rscreen->fences.pool)) { in r600_create_fence()
64 LIST_FOR_EACH_ENTRY(entry, &rscreen->fences.pool, head) { in r600_create_fence()
65 if (rscreen->fences.data[entry->index] != 0) { in r600_create_fence()
[all …]
Dr600_texture.c68 static int r600_init_surface(struct r600_screen *rscreen, in r600_init_surface() argument
90 if (rscreen->chip_class >= EVERGREEN && in r600_init_surface()
165 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_setup_surface() local
169 r = rscreen->ws->surface_init(rscreen->ws, &rtex->surface); in r600_setup_surface()
212 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_texture_get_handle() local
214 rscreen->ws->buffer_set_tiling(resource->buf, in r600_texture_get_handle()
226 return rscreen->ws->buffer_get_handle(resource->buf, in r600_texture_get_handle()
256 void r600_texture_get_fmask_info(struct r600_screen *rscreen, in r600_texture_get_fmask_info() argument
288 if (rscreen->chip_class <= R700) { in r600_texture_get_fmask_info()
292 if (rscreen->chip_class >= EVERGREEN) { in r600_texture_get_fmask_info()
[all …]
Dr600_buffer.c197 bool r600_init_resource(struct r600_screen *rscreen, in r600_init_resource() argument
229 res->buf = rscreen->ws->buffer_create(rscreen->ws, size, alignment, bind, initial_domain); in r600_init_resource()
234 res->cs_buf = rscreen->ws->buffer_get_cs_handle(res->buf); in r600_init_resource()
243 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_buffer_create() local
253 if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) { in r600_buffer_create()
Dr600_resource.h122 void r600_texture_get_fmask_info(struct r600_screen *rscreen,
126 void r600_texture_get_cmask_info(struct r600_screen *rscreen,
Dcompute_memory_pool.h60 struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen); ///Creates a new …
Devergreen_compute.c762 struct r600_screen* rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_create() local
775 result->chunk = compute_memory_alloc(rscreen->global_pool, size_in_dw); in r600_compute_global_buffer_create()
794 struct r600_screen* rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_destroy() local
796 compute_memory_free(rscreen->global_pool, buffer->chunk->id); in r600_compute_global_buffer_destroy()
Dr600_pipe.h144 struct r600_screen *rscreen);
528 bool r600_init_resource(struct r600_screen *rscreen,
887 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_resource_va() local
890 return rscreen->ws->buffer_get_virtual_address(rresource->cs_buf); in r600_resource_va()
Devergreen_state.c623 struct r600_screen *rscreen = (struct r600_screen*)screen; in evergreen_is_format_supported() local
635 if (rscreen->info.drm_minor < 19) in evergreen_is_format_supported()
986 struct r600_screen *rscreen = (struct r600_screen*)ctx->screen; in evergreen_create_sampler_view() local
1061 if (rscreen->chip_class == CAYMAN) { in evergreen_create_sampler_view()
1065 nbanks = eg_num_banks(rscreen->tiling_info.num_banks); in evergreen_create_sampler_view()
1078 if (rscreen->chip_class == CAYMAN) in evergreen_create_sampler_view()
1098 if (rscreen->chip_class == CAYMAN) { in evergreen_create_sampler_view()
1242 struct r600_screen *rscreen = rctx->screen; in evergreen_init_color_surface() local
1303 if (rscreen->chip_class == CAYMAN) { in evergreen_init_color_surface()
1307 nbanks = eg_num_banks(rscreen->tiling_info.num_banks); in evergreen_init_color_surface()
[all …]
Dcompute_memory_pool.c77 struct r600_screen * rscreen) in compute_memory_pool_new() argument
84 pool->screen = rscreen; in compute_memory_pool_new()
Dr600_state.c575 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_is_format_supported() local
587 if (rscreen->info.drm_minor < 22) in r600_is_format_supported()
591 if (rscreen->chip_class == R600 && in r600_is_format_supported()
1234 static struct r600_resource *r600_buffer_create_helper(struct r600_screen *rscreen, in r600_buffer_create_helper() argument
1251 r600_buffer_create(&rscreen->screen, &buffer, alignment); in r600_buffer_create_helper()
1258 struct r600_screen *rscreen = rctx->screen; in r600_init_color_surface() local
1424 r600_texture_get_cmask_info(rscreen, rtex, &cmask); in r600_init_color_surface()
1425 r600_texture_get_fmask_info(rscreen, rtex, 8, &fmask); in r600_init_color_surface()
1435 rctx->dummy_cmask = r600_buffer_create_helper(rscreen, cmask.size, cmask.alignment); in r600_init_color_surface()
1450 rctx->dummy_fmask = r600_buffer_create_helper(rscreen, fmask.size, fmask.alignment); in r600_init_color_surface()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dradeonsi_pipe.c58 struct r600_screen *rscreen = rctx->screen; in r600_create_fence() local
61 pipe_mutex_lock(rscreen->fences.mutex); in r600_create_fence()
63 if (!rscreen->fences.bo) { in r600_create_fence()
65 rscreen->fences.bo = si_resource_create_custom(&rscreen->screen, in r600_create_fence()
68 if (!rscreen->fences.bo) { in r600_create_fence()
72 rscreen->fences.data = rctx->ws->buffer_map(rscreen->fences.bo->cs_buf, in r600_create_fence()
77 if (!LIST_IS_EMPTY(&rscreen->fences.pool)) { in r600_create_fence()
81 LIST_FOR_EACH_ENTRY(entry, &rscreen->fences.pool, head) { in r600_create_fence()
82 if (rscreen->fences.data[entry->index] != 0) { in r600_create_fence()
95 if ((rscreen->fences.next_index + 1) >= 1024) { in r600_create_fence()
[all …]
Dr600_buffer.c42 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_buffer_destroy() local
117 bool si_init_resource(struct r600_screen *rscreen, in si_init_resource() argument
149 res->buf = rscreen->ws->buffer_create(rscreen->ws, size, alignment, bind, initial_domain); in si_init_resource()
154 res->cs_buf = rscreen->ws->buffer_get_cs_handle(res->buf); in si_init_resource()
162 struct r600_screen *rscreen = (struct r600_screen*)screen; in si_buffer_create() local
174 if (!si_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) { in si_buffer_create()
Dr600_texture.c152 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_setup_surface() local
160 r = rscreen->ws->surface_init(rscreen->ws, &rtex->surface); in r600_setup_surface()
226 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_texture_get_handle() local
228 rscreen->ws->buffer_set_tiling(resource->buf, in r600_texture_get_handle()
240 return rscreen->ws->buffer_get_handle(resource->buf, in r600_texture_get_handle()
476 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_texture_create_object() local
508 if (!si_init_resource(rscreen, resource, size, base_align, base->bind, base->usage)) { in r600_texture_create_object()
514 resource->cs_buf = rscreen->ws->buffer_get_cs_handle(buf); in r600_texture_create_object()
524 struct r600_screen *rscreen = (struct r600_screen*)screen; in si_texture_create() local
542 r = rscreen->ws->surface_best(rscreen->ws, &surface); in si_texture_create()
[all …]
Dradeonsi_pipe.h196 bool si_init_resource(struct r600_screen *rscreen,
270 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_resource_va() local
273 return rscreen->ws->buffer_get_virtual_address(rresource->cs_buf); in r600_resource_va()
Dr600_blit.c272 struct r600_screen *rscreen = (struct r600_screen *)tex->screen; in r600_compressed_to_blittable() local
307 struct r600_screen *rscreen = (struct r600_screen *)tex->screen; in r600_reset_blittable_to_compressed() local
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c288 static void r300_setup_cbzb_flags(struct r300_screen *rscreen, in r300_setup_cbzb_flags() argument
304 if (SCREEN_DBG_ON(rscreen, DBG_NO_CBZB)) in r300_setup_cbzb_flags()
477 void r300_texture_desc_init(struct r300_screen *rscreen, in r300_texture_desc_init() argument
504 r300_setup_tiling(rscreen, tex); in r300_texture_desc_init()
507 r300_setup_cbzb_flags(rscreen, tex); in r300_texture_desc_init()
510 r300_setup_miptree(rscreen, tex, TRUE); in r300_texture_desc_init()
514 r300_setup_miptree(rscreen, tex, FALSE); in r300_texture_desc_init()
530 r300_setup_hyperz_properties(rscreen, tex); in r300_texture_desc_init()
532 if (SCREEN_DBG_ON(rscreen, DBG_TEX)) in r300_texture_desc_init()
Dr300_texture.c950 r300_texture_create_object(struct r300_screen *rscreen, in r300_texture_create_object() argument
957 struct radeon_winsys *rws = rscreen->rws; in r300_texture_create_object()
969 tex->b.b.screen = &rscreen->screen; in r300_texture_create_object()
982 r300_texture_desc_init(rscreen, tex, base); in r300_texture_create_object()
1009 struct r300_screen *rscreen = r300_screen(screen); in r300_texture_create() local
1023 r300_texture_create_object(rscreen, base, microtile, macrotile, in r300_texture_create()
1031 struct r300_screen *rscreen = r300_screen(screen); in r300_texture_from_handle() local
1032 struct radeon_winsys *rws = rscreen->rws; in r300_texture_from_handle()
1066 r300_texture_create_object(rscreen, base, microtile, macrotile, in r300_texture_from_handle()
Dr300_texture_desc.h46 void r300_texture_desc_init(struct r300_screen *rscreen,