Home
last modified time | relevance | path

Searched refs:rws (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c45 radeon_winsys_bo_create(struct radeon_winsys *rws,
67 return drmCommandWriteRead(bo->rws->fd, DRM_RADEON_GEM_BUSY, in radeon_real_bo_is_busy()
79 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_is_busy()
90 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_is_busy()
100 while (drmCommandWrite(bo->rws->fd, DRM_RADEON_GEM_WAIT_IDLE, in radeon_real_bo_wait_idle()
109 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
113 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
118 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
127 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
131 static bool radeon_bo_wait(struct radeon_winsys *rws, in radeon_bo_wait() argument
[all …]
Dradeon_drm_winsys.c589 static void radeon_winsys_destroy(struct radeon_winsys *rws) in radeon_winsys_destroy() argument
591 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_winsys_destroy()
618 FREE(rws); in radeon_winsys_destroy()
621 static void radeon_query_info(struct radeon_winsys *rws, in radeon_query_info() argument
626 *info = ((struct radeon_drm_winsys *)rws)->info; in radeon_query_info()
660 static uint64_t radeon_query_value(struct radeon_winsys *rws, in radeon_query_value() argument
663 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_query_value()
730 static bool radeon_read_registers(struct radeon_winsys *rws, in radeon_read_registers() argument
734 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_read_registers()
751 struct radeon_drm_winsys *rws = (struct radeon_drm_winsys*)ws; in radeon_winsys_unref() local
[all …]
Dradeon_drm_bo.h56 struct radeon_drm_winsys *rws; member
Dradeon_drm_surface.c345 static int radeon_winsys_surface_init(struct radeon_winsys *rws, in radeon_winsys_surface_init() argument
351 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_winsys_surface_init()
394 if (radeon_winsys_surface_init(rws, &templ, fmask_flags, bpe, in radeon_winsys_surface_init()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_screen_buffer.c90 struct radeon_winsys *rws = r300->screen->rws; in r300_buffer_transfer_map() local
113 if (r300->rws->cs_is_buffer_referenced(&r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map()
114 !r300->rws->buffer_wait(r300->rws, rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map()
119 new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.width0, in r300_buffer_transfer_map()
145 map = rws->buffer_map(rws, rbuf->buf, &r300->cs, usage); in r300_buffer_transfer_map()
190 r300screen->rws->buffer_create(r300screen->rws, rbuf->b.width0, in r300_buffer_create()
Dr300_screen.c777 struct radeon_winsys *rws = radeon_winsys(pscreen); in r300_destroy_screen() local
779 if (rws && !rws->unref(rws)) in r300_destroy_screen()
787 if (rws) in r300_destroy_screen()
788 rws->destroy(rws); in r300_destroy_screen()
797 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_fence_reference() local
799 rws->fence_reference(ptr, fence); in r300_fence_reference()
807 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_fence_finish() local
809 return rws->fence_wait(rws, fence, timeout); in r300_fence_finish()
812 struct pipe_screen* r300_screen_create(struct radeon_winsys *rws, in r300_screen_create() argument
822 rws->query_info(rws, &r300screen->info, false, false); in r300_screen_create()
[all …]
Dr300_query.c61 q->buf = r300->rws->buffer_create(r300->rws, in r300_create_query()
152 r300->rws->buffer_wait(r300->rws, q->buf, PIPE_TIMEOUT_INFINITE, in r300_get_query_result()
156 vresult->b = r300->rws->buffer_wait(r300->rws, q->buf, 0, RADEON_USAGE_READWRITE); in r300_get_query_result()
161 map = r300->rws->buffer_map(r300->rws, q->buf, &r300->cs, in r300_get_query_result()
Dr300_flush.c55 r300->rws->cs_flush(&r300->cs, flags, fence); in r300_flush_and_cleanup()
88 r300->rws->cs_flush(&r300->cs, flags, fence); in r300_flush()
92 r300->rws->cs_flush(&r300->cs, flags, NULL); in r300_flush()
115 r300->rws->fence_reference(fence, NULL); in r300_flush()
120 r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_HYPERZ_ACCESS, in r300_flush()
Dr300_transfer.c115 r300->rws->cs_is_buffer_referenced(&r300->cs, tex->buf, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
120 !r300->rws->buffer_wait(r300->rws, tex->buf, 0, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
218 map = r300->rws->buffer_map(r300->rws, trans->linear_texture->buf, in r300_texture_transfer_map()
230 map = r300->rws->buffer_map(r300->rws, tex->buf, &r300->cs, usage); in r300_texture_transfer_map()
Dr300_context.c77 r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_HYPERZ_ACCESS, FALSE); in r300_destroy_context()
80 r300->rws->cs_request_feature(&r300->cs, RADEON_FID_R300_CMASK_ACCESS, FALSE); in r300_destroy_context()
96 r300->rws->cs_destroy(&r300->cs); in r300_destroy_context()
98 r300->rws->ctx_destroy(r300->ctx); in r300_destroy_context()
387 struct radeon_winsys *rws = r300screen->rws; local
392 r300->rws = rws;
403 r300->ctx = rws->ctx_create(rws, RADEON_CTX_PRIORITY_MEDIUM);
408 if (!rws->cs_create(&r300->cs, r300->ctx, AMD_IP_GFX, r300_flush_callback, r300, false))
Dr300_texture.c1028 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_resource_get_handle() local
1038 return rws->buffer_get_handle(rws, tex->buf, whandle); in r300_resource_get_handle()
1050 struct radeon_winsys *rws = rscreen->rws; in r300_texture_create_object() local
1097 tex->buf = rws->buffer_create(rws, tex->tex.size_in_bytes, 2048, in r300_texture_create_object()
1117 rws->buffer_set_metadata(rws, tex->buf, &tiling, NULL); in r300_texture_create_object()
1156 struct radeon_winsys *rws = rscreen->rws; in r300_texture_from_handle() local
1168 buffer = rws->buffer_from_handle(rws, whandle, 0, false); in r300_texture_from_handle()
1172 rws->buffer_get_metadata(rws, buffer, &tiling, NULL); in r300_texture_from_handle()
Dr300_render.c220 if (!r300->rws->cs_check_space(&r300->cs, cs_dwords)) { in r300_reserve_cs_dwords()
378 map[vbi] = (uint32_t*)r300->rws->buffer_map(r300->rws, in r300_draw_arrays_immediate()
615 uint16_t *ptr = r300->rws->buffer_map(r300->rws, r300_resource(orgIndexBuffer)->buf, in r300_draw_elements()
949 struct radeon_winsys *rws = r300->rws; in r300_render_allocate_vertices() local
959 r300->vbo = rws->buffer_create(rws, in r300_render_allocate_vertices()
968 r300render->vbo_ptr = rws->buffer_map(rws, r300->vbo, &r300->cs, in r300_render_allocate_vertices()
Dr300_screen.h39 struct radeon_winsys *rws; member
65 return r300_screen(screen)->rws; in radeon_winsys()
Dr300_emit.c1054 OUT_CS(r300->rws->cs_lookup_buffer(&r300->cs, r300->vbo) * 4); in r300_emit_vertex_arrays_swtcl()
1324 r300->rws->cs_add_buffer(&r300->cs, tex->buf, in r300_emit_buffer_validate()
1335 r300->rws->cs_add_buffer(&r300->cs, tex->buf, in r300_emit_buffer_validate()
1346 r300->rws->cs_add_buffer(&r300->cs, aa->dest->buf, in r300_emit_buffer_validate()
1360 r300->rws->cs_add_buffer(&r300->cs, tex->buf, in r300_emit_buffer_validate()
1368 r300->rws->cs_add_buffer(&r300->cs, r300->query_current->buf, in r300_emit_buffer_validate()
1374 r300->rws->cs_add_buffer(&r300->cs, r300->vbo, in r300_emit_buffer_validate()
1390 r300->rws->cs_add_buffer(&r300->cs, r300_resource(buf)->buf, in r300_emit_buffer_validate()
1398 r300->rws->cs_add_buffer(&r300->cs, r300_resource(index_buffer)->buf, in r300_emit_buffer_validate()
1404 if (!r300->rws->cs_validate(&r300->cs)) { in r300_emit_buffer_validate()
Dr300_public.h12 struct pipe_screen* r300_screen_create(struct radeon_winsys *rws,
Dr300_cs.h43 struct radeon_winsys *cs_winsys = (context)->rws; \
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_winsys.c67 radv_amdgpu_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info) in radv_amdgpu_winsys_query_info() argument
69 *info = ((struct radv_amdgpu_winsys *)rws)->info; in radv_amdgpu_winsys_query_info()
73 radv_amdgpu_winsys_query_value(struct radeon_winsys *rws, enum radeon_value_id value) in radv_amdgpu_winsys_query_value() argument
75 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys *)rws; in radv_amdgpu_winsys_query_value()
125 radv_amdgpu_winsys_read_registers(struct radeon_winsys *rws, unsigned reg_offset, in radv_amdgpu_winsys_read_registers() argument
128 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys *)rws; in radv_amdgpu_winsys_read_registers()
134 radv_amdgpu_winsys_get_chip_name(struct radeon_winsys *rws) in radv_amdgpu_winsys_get_chip_name() argument
136 amdgpu_device_handle dev = ((struct radv_amdgpu_winsys *)rws)->dev; in radv_amdgpu_winsys_get_chip_name()
145 radv_amdgpu_winsys_destroy(struct radeon_winsys *rws) in radv_amdgpu_winsys_destroy() argument
147 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys *)rws; in radv_amdgpu_winsys_destroy()
[all …]
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c159 static void amdgpu_winsys_destroy_locked(struct radeon_winsys *rws, bool locked) in amdgpu_winsys_destroy_locked() argument
161 struct amdgpu_screen_winsys *sws = amdgpu_screen_winsys(rws); in amdgpu_winsys_destroy_locked()
190 FREE(rws); in amdgpu_winsys_destroy_locked()
193 static void amdgpu_winsys_destroy(struct radeon_winsys *rws) in amdgpu_winsys_destroy() argument
195 amdgpu_winsys_destroy_locked(rws, false); in amdgpu_winsys_destroy()
198 static void amdgpu_winsys_query_info(struct radeon_winsys *rws, in amdgpu_winsys_query_info() argument
203 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_winsys_query_info()
220 static uint64_t amdgpu_query_value(struct radeon_winsys *rws, in amdgpu_query_value() argument
223 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_query_value()
289 static bool amdgpu_read_registers(struct radeon_winsys *rws, in amdgpu_read_registers() argument
[all …]
Damdgpu_bo.c50 static bool amdgpu_bo_wait(struct radeon_winsys *rws, in amdgpu_bo_wait() argument
54 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_bo_wait()
227 static void amdgpu_bo_destroy_or_cache(struct radeon_winsys *rws, struct pb_buffer *_buf) in amdgpu_bo_destroy_or_cache() argument
229 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_bo_destroy_or_cache()
248 static bool amdgpu_bo_do_map(struct radeon_winsys *rws, struct amdgpu_winsys_bo *bo, void **cpu) in amdgpu_bo_do_map() argument
250 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_bo_do_map()
273 void *amdgpu_bo_map(struct radeon_winsys *rws, in amdgpu_bo_map() argument
278 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_bo_map()
304 if (!amdgpu_bo_wait(rws, (struct pb_buffer*)bo, 0, in amdgpu_bo_map()
315 if (!amdgpu_bo_wait(rws, (struct pb_buffer*)bo, 0, in amdgpu_bo_map()
[all …]
Damdgpu_bo.h127 void *amdgpu_bo_map(struct radeon_winsys *rws,
131 void amdgpu_bo_unmap(struct radeon_winsys *rws, struct pb_buffer *buf);
Damdgpu_surface.c63 static int amdgpu_surface_init(struct radeon_winsys *rws, in amdgpu_surface_init() argument
69 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_surface_init()
Damdgpu_cs.c55 amdgpu_fence_import_syncobj(struct radeon_winsys *rws, int fd) in amdgpu_fence_import_syncobj() argument
57 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_fence_import_syncobj()
80 amdgpu_fence_import_sync_file(struct radeon_winsys *rws, int fd) in amdgpu_fence_import_sync_file() argument
82 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_fence_import_sync_file()
111 static int amdgpu_fence_export_sync_file(struct radeon_winsys *rws, in amdgpu_fence_export_sync_file() argument
114 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_fence_export_sync_file()
137 static int amdgpu_export_signalled_sync_file(struct radeon_winsys *rws) in amdgpu_export_signalled_sync_file() argument
139 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_export_signalled_sync_file()
244 static bool amdgpu_fence_wait_rel_timeout(struct radeon_winsys *rws, in amdgpu_fence_wait_rel_timeout() argument
1236 static void amdgpu_cs_add_fence_dependency(struct radeon_cmdbuf *rws, in amdgpu_cs_add_fence_dependency() argument
[all …]
/third_party/mesa3d/src/amd/vulkan/winsys/null/
Dradv_null_winsys.c75 radv_null_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info) in radv_null_winsys_query_info() argument
159 radv_null_winsys_get_chip_name(struct radeon_winsys *rws) in radv_null_winsys_get_chip_name() argument
165 radv_null_winsys_destroy(struct radeon_winsys *rws) in radv_null_winsys_destroy() argument
167 FREE(rws); in radv_null_winsys_destroy()
171 radv_null_winsys_get_fd(struct radeon_winsys *rws) in radv_null_winsys_get_fd() argument
177 radv_null_winsys_get_sync_types(struct radeon_winsys *rws) in radv_null_winsys_get_sync_types() argument
179 return radv_null_winsys(rws)->sync_types; in radv_null_winsys_get_sync_types()
/third_party/pcre2/pcre2/src/
Dpcre2_dfa_match.c415 RWS_anchor *rws = *rwsptr; in more_workspace() local
418 if (rws->next != NULL) in more_workspace()
420 new = rws->next; in more_workspace()
429 uint32_t newsize = (rws->size >= UINT32_MAX/2)? UINT32_MAX/2 : rws->size * 2; in more_workspace()
443 rws->next = new; in more_workspace()
2752 RWS_anchor *rws = (RWS_anchor *)RWS; in internal_dfa_match() local
2754 if (rws->free < RWS_RSIZE + RWS_OVEC_OSIZE) in internal_dfa_match()
2756 rc = more_workspace(&rws, RWS_OVEC_OSIZE, mb); in internal_dfa_match()
2758 RWS = (int *)rws; in internal_dfa_match()
2761 local_offsets = (PCRE2_SIZE *)(RWS + rws->size - rws->free); in internal_dfa_match()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_fence.c241 static bool si_fine_fence_signaled(struct radeon_winsys *rws, const struct si_fine_fence *fine) in si_fine_fence_signaled() argument
244 rws->buffer_map(rws, fine->buf->buf, NULL, PIPE_MAP_READ | PIPE_MAP_UNSYNCHRONIZED); in si_fine_fence_signaled()
285 struct radeon_winsys *rws = ((struct si_screen *)screen)->ws; in si_fence_finish() local
325 if (sfence->fine.buf && si_fine_fence_signaled(rws, &sfence->fine)) { in si_fence_finish()
326 rws->fence_reference(&sfence->gfx, NULL); in si_fence_finish()
370 if (rws->fence_wait(rws, sfence->gfx, timeout)) in si_fence_finish()
375 if (sfence->fine.buf && si_fine_fence_signaled(rws, &sfence->fine)) in si_fence_finish()

12