Home
last modified time | relevance | path

Searched refs:sws (Results 1 – 25 of 66) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_screen.c116 get_float_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_float_cap() argument
120 if (sws->get_cap(sws, cap, &result)) in get_float_cap()
129 get_uint_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_uint_cap() argument
133 if (sws->get_cap(sws, cap, &result)) in get_uint_cap()
142 get_bool_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_bool_cap() argument
146 if (sws->get_cap(sws, cap, &result)) in get_bool_cap()
157 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_paramf() local
179 return (float) get_uint_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY, 4); in svga_get_paramf()
202 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_param() local
216 return sws->have_vgpu10 ? 1 : 0; in svga_get_param()
[all …]
Dsvga_screen_cache.c98 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_lookup() local
127 sws->fence_signalled(sws, entry->fence, 0) == 0) { in svga_screen_cache_lookup()
130 assert(sws->surface_is_flushed(sws, entry->handle)); in svga_screen_cache_lookup()
180 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_shrink() local
193 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_shrink()
219 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_add() local
236 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add()
254 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add()
281 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_add()
299 if (sws->have_gb_objects) { in svga_screen_cache_add()
[all …]
Dsvga_winsys.h103 struct svga_winsys_screen *sws; member
380 (*query_bind)(struct svga_winsys_context *sws,
503 (*destroy)(struct svga_winsys_screen *sws);
506 (*get_hw_version)(struct svga_winsys_screen *sws);
509 (*get_cap)(struct svga_winsys_screen *sws,
524 (*context_create)(struct svga_winsys_screen *sws);
565 (*surface_create)(struct svga_winsys_screen *sws,
579 (*surface_from_handle)(struct svga_winsys_screen *sws,
588 (*surface_get_handle)(struct svga_winsys_screen *sws,
597 (*surface_is_flushed)(struct svga_winsys_screen *sws,
[all …]
Dsvga_resource_texture.c101 struct svga_winsys_screen *sws = screen->sws; in svga_transfer_dma() local
125 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma()
126 sws->fence_reference(sws, &fence, NULL); in svga_transfer_dma()
163 hw = sws->buffer_map(sws, st->hwbuf, usage); in svga_transfer_dma()
167 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma()
184 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma()
186 hw = sws->buffer_map(sws, st->hwbuf, PIPE_MAP_READ); in svga_transfer_dma()
190 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma()
206 struct svga_winsys_screen *sws = svga_winsys_screen(texture->screen); in svga_resource_get_handle() local
218 return sws->surface_get_handle(sws, svga_texture(texture)->handle, in svga_resource_get_handle()
[all …]
Dsvga_pipe_query.c95 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_query_vgpu9() local
104 sws->buffer_map(sws, sq->hwbuf, PIPE_MAP_WRITE); in define_query_vgpu9()
106 sws->buffer_destroy(sws, sq->hwbuf); in define_query_vgpu9()
117 sws->buffer_unmap(sws, sq->hwbuf); in define_query_vgpu9()
125 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in begin_query_vgpu9() local
141 sws->fence_reference(sws, &sq->fence, NULL); in begin_query_vgpu9()
159 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in get_query_result_vgpu9() local
177 sws->fence_finish(sws, sq->fence, PIPE_TIMEOUT_INFINITE, in get_query_result_vgpu9()
448 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in destroy_gb_query_obj() local
464 sws->query_destroy(sws, svga->gb_query); in destroy_gb_query_obj()
[all …]
Dsvga_resource_buffer_upload.c75 struct svga_winsys_screen *sws = svgascreen->sws; in svga_winsys_buffer_create() local
79 buf = SVGA_TRY_PTR(sws->buffer_create(sws, alignment, usage, size)); in svga_winsys_buffer_create()
87 buf = sws->buffer_create(sws, alignment, usage, size); in svga_winsys_buffer_create()
103 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_destroy_hw_storage() local
108 sws->buffer_destroy(sws, sbuf->hwbuf); in svga_buffer_destroy_hw_storage()
127 if (ss->sws->have_gb_objects) { in svga_buffer_create_hw_storage()
132 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_create_hw_storage() local
137 sbuf->hwbuf = sws->buffer_create(sws, alignment, usage, size); in svga_buffer_create_hw_storage()
184 assert(ss->sws->have_sm5); in svga_buffer_create_host_surface()
196 if (ss->sws->have_gl43 && in svga_buffer_create_host_surface()
[all …]
Dsvga_resource_buffer.h264 return svga_screen(sbuf->b.screen)->sws; in svga_buffer_winsys_screen()
290 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_map() local
294 if (sws->have_gb_objects) { in svga_buffer_hw_storage_map()
317 return sws->buffer_map(sws, sbuf->hwbuf, flags); in svga_buffer_hw_storage_map()
328 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_unmap() local
330 if (sws->have_gb_objects) { in svga_buffer_hw_storage_unmap()
339 sws->buffer_unmap(sws, sbuf->hwbuf); in svga_buffer_hw_storage_unmap()
Dsvga_pipe_flush.c91 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_create_fence_fd() local
94 sws->fence_create_fd(sws, fence, fd); in svga_create_fence_fd()
108 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_fence_server_sync() local
111 sws->fence_server_sync(sws, &svga->swc->imported_fence_fd, fence); in svga_fence_server_sync()
Dsvga_pipe_blit.c157 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in copy_region_fallback() local
159 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_COPYREGIONFALLBACK); in copy_region_fallback()
162 SVGA_STATS_TIME_POP(sws); in copy_region_fallback()
163 (void) sws; in copy_region_fallback()
345 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in can_blit_via_intra_surface_copy() local
355 if (!sws->have_intra_surface_copy) in can_blit_via_intra_surface_copy()
558 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in try_blit() local
568 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_BLITBLITTER); in try_blit()
669 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit()
718 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit()
[all …]
Dsvga_pipe_streamout.c88 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_define_stream_output() local
95 map = sws->buffer_map(sws, declBuf, PIPE_MAP_WRITE); in svga_define_stream_output()
97 sws->buffer_destroy(sws, declBuf); in svga_define_stream_output()
105 sws->buffer_unmap(sws, declBuf); in svga_define_stream_output()
343 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_delete_stream_output() local
354 sws->buffer_destroy(sws, streamout->declBuf); in svga_delete_stream_output()
Dsvga_resource.c83 struct svga_winsys_screen *sws = svgascreen->sws; in svga_can_create_resource() local
115 return sws->surface_can_create(sws, format, base_level_size, in svga_can_create_resource()
Dsvga_format.c297 if (ss->sws->have_vgpu10) { in svga_translate_format()
312 !ss->sws->have_sm5) in svga_translate_format()
347 assert(!ss->sws->have_vgpu10); in svga_translate_format()
350 assert(!ss->sws->have_vgpu10); in svga_translate_format()
353 assert(!ss->sws->have_vgpu10); in svga_translate_format()
1677 struct svga_winsys_screen *sws = ss->sws; in svga_get_format_cap() local
1691 if (entry->devcap && sws->get_cap(sws, entry->devcap, &result)) { in svga_get_format_cap()
1709 struct svga_winsys_screen *sws = ss->sws; in svga_get_dx_format_cap() local
1718 assert(sws->have_vgpu10); in svga_get_dx_format_cap()
1726 sws->get_cap(sws, entry->devcap, caps); in svga_get_dx_format_cap()
[all …]
/third_party/ffmpeg/tests/fate/
Dlibswscale.mak1 FATE_LIBSWSCALE += fate-sws-pixdesc-query
2 fate-sws-pixdesc-query: libswscale/tests/pixdesc_query$(EXESUF)
3 fate-sws-pixdesc-query: CMD = run libswscale/tests/pixdesc_query$(EXESUF)
5 FATE_LIBSWSCALE += fate-sws-floatimg-cmp
6 fate-sws-floatimg-cmp: libswscale/tests/floatimg_cmp$(EXESUF)
7 fate-sws-floatimg-cmp: CMD = run libswscale/tests/floatimg_cmp$(EXESUF)
9 SWS_SLICE_TEST-$(call DEMDEC, MATROSKA, VP9) += fate-sws-slice-yuv422-12bit-rgb48
10 fate-sws-slice-yuv422-12bit-rgb48: CMD = run tools/scale_slice_test$(EXESUF) $(TARGET_SAMPLES)/vp9-…
12 SWS_SLICE_TEST-$(call DEMDEC, IMAGE_BMP_PIPE, BMP) += fate-sws-slice-bgr0-nv12
13 fate-sws-slice-bgr0-nv12: CMD = run tools/scale_slice_test$(EXESUF) $(TARGET_SAMPLES)/bmp/test32bf.…
[all …]
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_shader.c53 struct svga_winsys_screen *sws = &dst->screen->base; in vmw_svga_winsys_shader_reference() local
55 if (!sws->have_vgpu10) in vmw_svga_winsys_shader_reference()
62 sws->buffer_destroy(sws, dst->buf); in vmw_svga_winsys_shader_reference()
75 vmw_svga_shader_create(struct svga_winsys_screen *sws, in vmw_svga_shader_create() argument
91 shader->screen = vmw_winsys_screen(sws); in vmw_svga_shader_create()
92 shader->buf = sws->buffer_create(sws, 64, in vmw_svga_shader_create()
100 map = sws->buffer_map(sws, shader->buf, PIPE_MAP_WRITE); in vmw_svga_shader_create()
111 assert(sws->have_sm5); in vmw_svga_shader_create()
115 sws->buffer_unmap(sws, shader->buf); in vmw_svga_shader_create()
Dvmw_screen_svga.c315 if (mksstat_tls_global && vmw_winsys_screen(mksstat_tls_global->sws) == vws) { in vmw_winsys_screen_mksstat_acq_slot()
368 vmw_svga_winsys_buffer_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_create() argument
373 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create()
412 vmw_svga_winsys_fence_reference(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_reference() argument
416 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference()
423 vmw_svga_winsys_fence_signalled(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_signalled() argument
427 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled()
434 vmw_svga_winsys_fence_finish(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_finish() argument
439 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_finish()
446 vmw_svga_winsys_fence_get_fd(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_get_fd() argument
[all …]
Dvmw_query.c36 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_create() argument
39 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_query_create()
66 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_destroy() argument
69 vmw_svga_winsys_buffer_destroy(sws, query->buf); in vmw_svga_winsys_query_destroy()
76 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_init() argument
83 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_init()
95 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_init()
103 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_get_result() argument
111 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_get_result()
132 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_get_result()
Dvmw_screen_dri.c54 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws,
59 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws,
63 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws,
142 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_gb_surface_from_handle() argument
148 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_gb_surface_from_handle()
214 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_from_handle() argument
220 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_from_handle()
325 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_get_handle() argument
330 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_get_handle()
Dvmw_query.h41 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws,
45 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws,
49 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws,
55 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws,
Dvmw_buffer.c342 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_destroy() argument
346 (void)sws; in vmw_svga_winsys_buffer_destroy()
355 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_map() argument
362 (void)sws; in vmw_svga_winsys_buffer_map()
391 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_unmap() argument
394 (void)sws; in vmw_svga_winsys_buffer_unmap()
Dvmw_buffer.h79 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws,
82 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws,
87 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws,
/third_party/ffmpeg/libavfilter/
Dvf_zoompan.c92 struct SwsContext *sws; member
208 s->sws = sws_alloc_context(); in output_single_frame()
209 if (!s->sws) { in output_single_frame()
217 av_opt_set_int(s->sws, "srcw", w, 0); in output_single_frame()
218 av_opt_set_int(s->sws, "srch", h, 0); in output_single_frame()
219 av_opt_set_int(s->sws, "src_format", in->format, 0); in output_single_frame()
220 av_opt_set_int(s->sws, "dstw", outlink->w, 0); in output_single_frame()
221 av_opt_set_int(s->sws, "dsth", outlink->h, 0); in output_single_frame()
222 av_opt_set_int(s->sws, "dst_format", outlink->format, 0); in output_single_frame()
223 av_opt_set_int(s->sws, "sws_flags", SWS_BICUBIC, 0); in output_single_frame()
[all …]
/third_party/ffmpeg/libswscale/tests/
Dfloatimg_cmp.c86 struct SwsContext *sws = NULL; in main() local
215 sws = sws_getContext(w, h, inFormat, w, h, in main()
217 if (!sws) { in main()
222 res = sws_scale(sws, (const uint8_t *const *)rgbIn, rgbStride, 0, h, dst, dstStride); in main()
228 sws_freeContext(sws); in main()
231 sws = sws_getContext(w, h, dstFormat, w, h, in main()
233 if(!sws) { in main()
238 res = sws_scale(sws, (const uint8_t *const *)dst, dstStride, 0, h, rgbOut, rgbStride); in main()
244 sws_freeContext(sws); in main()
245 sws = NULL; in main()
[all …]
/third_party/curl/tests/server/
DMakefile.in117 sockfilt$(EXEEXT) sws$(EXEEXT) tftpd$(EXEEXT) \
309 am__objects_22 = ../../lib/sws-mprintf.$(OBJEXT) \
310 ../../lib/sws-nonblock.$(OBJEXT) \
311 ../../lib/sws-strtoofft.$(OBJEXT) \
312 ../../lib/sws-warnless.$(OBJEXT) \
313 ../../lib/sws-timediff.$(OBJEXT) \
314 ../../lib/sws-dynbuf.$(OBJEXT) ../../lib/sws-strdup.$(OBJEXT) \
315 ../../lib/sws-strcase.$(OBJEXT) \
316 ../../lib/sws-curl_multibyte.$(OBJEXT)
317 am__objects_23 = sws-getpart.$(OBJEXT) ../../lib/sws-base64.$(OBJEXT) \
[all …]
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c143 dt_map = vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_transfer_get_internal()
150 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_transfer_get_internal()
179 vtws->sws->displaytarget_destroy(vtws->sws, res->dt); in virgl_hw_res_destroy()
259 res->dt = vtws->sws->displaytarget_create(vtws->sws, bind, format, in virgl_vtest_winsys_resource_create()
308 void *dt_map = vtws->sws->displaytarget_map(vtws->sws, res->dt, PIPE_MAP_READ_WRITE); in virgl_vtest_winsys_resource_create()
341 return vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_resource_map()
353 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_resource_unmap()
661 vtws->sws->displaytarget_display(vtws->sws, res->dt, winsys_drawable_handle, in virgl_vtest_flush_frontbuffer()
697 virgl_vtest_winsys_wrap(struct sw_winsys *sws) in virgl_vtest_winsys_wrap() argument
707 vtws->sws = sws; in virgl_vtest_winsys_wrap()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c161 struct amdgpu_screen_winsys *sws = amdgpu_screen_winsys(rws); in amdgpu_winsys_destroy_locked() local
162 struct amdgpu_winsys *ws = sws->aws; in amdgpu_winsys_destroy_locked()
189 close(sws->fd); in amdgpu_winsys_destroy_locked()
301 struct amdgpu_screen_winsys *sws = amdgpu_screen_winsys(rws); in amdgpu_winsys_unref() local
302 struct amdgpu_winsys *aws = sws->aws; in amdgpu_winsys_unref()
307 ret = pipe_reference(&sws->reference, NULL); in amdgpu_winsys_unref()
310 struct amdgpu_winsys *aws = sws->aws; in amdgpu_winsys_unref()
316 if (*sws_iter == sws) { in amdgpu_winsys_unref()
317 *sws_iter = sws->next; in amdgpu_winsys_unref()
325 if (ret && sws->kms_handles) { in amdgpu_winsys_unref()
[all …]

123