Home
last modified time | relevance | path

Searched refs:swc (Results 1 – 25 of 55) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_cmd.c61 surface_to_surfaceid(struct svga_winsys_context *swc, // IN in surface_to_surfaceid() argument
68 swc->surface_relocation(swc, &id->sid, NULL, s->handle, flags); in surface_to_surfaceid()
73 swc->surface_relocation(swc, &id->sid, NULL, NULL, flags); in surface_to_surfaceid()
108 SVGA3D_FIFOReserve(struct svga_winsys_context *swc, in SVGA3D_FIFOReserve() argument
115 header = swc->reserve(swc, sizeof *header + cmdSize, nr_relocs); in SVGA3D_FIFOReserve()
122 swc->last_command = cmd; in SVGA3D_FIFOReserve()
124 swc->num_commands++; in SVGA3D_FIFOReserve()
131 SVGA_FIFOCommitAll(struct svga_winsys_context *swc) in SVGA_FIFOCommitAll() argument
133 swc->commit(swc); in SVGA_FIFOCommitAll()
166 SVGA3D_DefineContext(struct svga_winsys_context *swc) // IN in SVGA3D_DefineContext() argument
[all …]
Dsvga_cmd_vgpu10.c47 view_relocation(struct svga_winsys_context *swc, // IN in view_relocation() argument
55 swc->surface_relocation(swc, id, NULL, s->handle, flags); in view_relocation()
58 swc->surface_relocation(swc, id, NULL, NULL, flags); in view_relocation()
67 surface_to_resourceid(struct svga_winsys_context *swc, // IN in surface_to_resourceid() argument
73 swc->surface_relocation(swc, sid, NULL, surface, flags); in surface_to_resourceid()
76 swc->surface_relocation(swc, sid, NULL, NULL, flags); in surface_to_resourceid()
84 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_##CommandCode, \
94 cmd = SVGA3D_FIFOReserve(swc, SVGA_3D_CMD_DX_##CommandCode, \
170 SVGA3D_vgpu10_PredCopyRegion(struct svga_winsys_context *swc, in SVGA3D_vgpu10_PredCopyRegion() argument
178 SVGA3D_FIFOReserve(swc, in SVGA3D_vgpu10_PredCopyRegion()
[all …]
Dsvga_cmd.h59 SVGA3D_FIFOReserve(struct svga_winsys_context *swc, uint32 cmd, uint32 cmdSize, uint32 nr_relocs);
62 SVGA_FIFOCommitAll(struct svga_winsys_context *swc);
68 SVGA3D_GetLastCommand(const struct svga_winsys_context *swc) in SVGA3D_GetLastCommand() argument
70 return swc->last_command; in SVGA3D_GetLastCommand()
78 SVGA3D_ResetLastCommand(struct svga_winsys_context *swc) in SVGA3D_ResetLastCommand() argument
80 swc->last_command = 0; in SVGA3D_ResetLastCommand()
89 SVGA3D_DefineContext(struct svga_winsys_context *swc);
92 SVGA3D_DestroyContext(struct svga_winsys_context *swc);
100 SVGA3D_BeginDefineSurface(struct svga_winsys_context *swc,
108 SVGA3D_DefineSurface2D(struct svga_winsys_context *swc,
[all …]
Dsvga_shader.c315 ret = SVGA3D_BindGBShader(svga->swc, variant->gb_shader); in define_gb_shader_vgpu9()
329 struct svga_winsys_context *swc = svga->swc; in define_gb_shader_vgpu10() local
343 variant->gb_shader = swc->shader_create(swc, in define_gb_shader_vgpu10()
361 ret = SVGA3D_vgpu10_DefineAndBindShader(swc, variant->gb_shader, in define_gb_shader_vgpu10()
370 swc->shader_destroy(swc, variant->gb_shader); in define_gb_shader_vgpu10()
412 ret = SVGA3D_DefineShader(svga->swc, in svga_define_shader()
452 ret = SVGA3D_vgpu10_SetShader(svga->swc, type, gbshader, id); in svga_set_shader()
454 ret = SVGA3D_SetGBShader(svga->swc, type, gbshader); in svga_set_shader()
457 ret = SVGA3D_SetShader(svga->swc, type, id); in svga_set_shader()
481 struct svga_winsys_context *swc = svga->swc; in svga_destroy_shader_variant() local
[all …]
Dsvga_winsys.h253 (*destroy)(struct svga_winsys_context *swc);
256 (*reserve)(struct svga_winsys_context *swc,
263 (*get_command_buffer_size)(struct svga_winsys_context *swc);
274 (*surface_relocation)(struct svga_winsys_context *swc,
289 (*region_relocation)(struct svga_winsys_context *swc,
302 (*shader_relocation)(struct svga_winsys_context *swc,
316 (*context_relocation)(struct svga_winsys_context *swc, uint32 *cid);
330 (*mob_relocation)(struct svga_winsys_context *swc,
344 (*query_relocation)(struct svga_winsys_context *swc,
358 (*commit)(struct svga_winsys_context *swc);
[all …]
Dsvga_draw.c57 hwtnl->cmd.swc = svga->swc; in svga_hwtnl_create()
193 struct svga_winsys_context *swc = hwtnl->cmd.swc; in draw_vgpu9() local
277 ret = SVGA3D_BeginDrawPrimitives(swc, in draw_vgpu9()
306 swc->surface_relocation(swc, in draw_vgpu9()
315 swc->surface_relocation(swc, in draw_vgpu9()
321 SVGA_FIFOCommitAll(swc); in draw_vgpu9()
395 ret = svga->swc->resource_rebind(svga->swc, in validate_sampler_resources()
428 ret = svga->swc->resource_rebind(svga->swc, in validate_constant_buffers()
450 ret = svga->swc->resource_rebind(svga->swc, in validate_constant_buffers()
479 switch (SVGA3D_GetLastCommand(svga->swc)) { in last_command_was_draw()
[all …]
Dsvga_resource_buffer.h288 return svga->swc->surface_map(svga->swc, sbuf->handle, flags, retry); in svga_buffer_hw_storage_map()
305 struct svga_winsys_context *swc = svga->swc; in svga_buffer_hw_storage_unmap() local
307 swc->surface_unmap(swc, sbuf->handle, &rebind); in svga_buffer_hw_storage_unmap()
310 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_unmap()
314 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_unmap()
Dsvga_pipe_streamout.c138 ret = SVGA3D_vgpu10_DefineStreamOutput(svga->swc, id, in svga_create_stream_output()
144 ret = SVGA3D_vgpu10_DefineStreamOutput(svga->swc, id, in svga_create_stream_output()
171 enum pipe_error ret = SVGA3D_vgpu10_SetStreamOutput(svga->swc, id); in svga_set_stream_output()
193 ret = SVGA3D_vgpu10_DestroyStreamOutput(svga->swc, streamout->id); in svga_delete_stream_output()
196 ret = SVGA3D_vgpu10_DestroyStreamOutput(svga->swc, streamout->id); in svga_delete_stream_output()
302 ret = SVGA3D_vgpu10_SetSOTargets(svga->swc, num_so_targets, in svga_set_stream_output_targets()
306 ret = SVGA3D_vgpu10_SetSOTargets(svga->swc, num_so_targets, in svga_set_stream_output_targets()
319 struct svga_winsys_context *swc = svga->swc; in svga_rebind_stream_output_targets() local
324 ret = swc->resource_rebind(swc, svga->so_surfaces[i], NULL, SVGA_RELOC_WRITE); in svga_rebind_stream_output_targets()
Dsvga_pipe_query.c143 ret = SVGA3D_BeginQuery(svga->swc, sq->svga_type); in begin_query_vgpu9()
146 ret = SVGA3D_BeginQuery(svga->swc, sq->svga_type); in begin_query_vgpu9()
159 ret = SVGA3D_EndQuery(svga->swc, sq->svga_type, sq->hwbuf); in end_query_vgpu9()
162 ret = SVGA3D_EndQuery(svga->swc, sq->svga_type, sq->hwbuf); in end_query_vgpu9()
180 ret = SVGA3D_WaitForQuery(svga->swc, sq->svga_type, sq->hwbuf); in get_query_result_vgpu9()
183 ret = SVGA3D_WaitForQuery(svga->swc, sq->svga_type, sq->hwbuf); in get_query_result_vgpu9()
501 if (svga->swc->query_bind(svga->swc, svga->gb_query, in define_query_vgpu10()
504 svga->swc->query_bind(svga->swc, svga->gb_query, in define_query_vgpu10()
528 ret = SVGA3D_vgpu10_DefineQuery(svga->swc, sq->id, sq->svga_type, sq->flags); in define_query_vgpu10()
531 ret = SVGA3D_vgpu10_DefineQuery(svga->swc, sq->id, sq->svga_type, sq->flags); in define_query_vgpu10()
[all …]
Dsvga_resource_buffer_upload.c244 ret = SVGA3D_vgpu10_BufferCopy(svga->swc, old_handle, sbuf->handle, in svga_buffer_recreate_host_surface()
248 ret = SVGA3D_vgpu10_BufferCopy(svga->swc, old_handle, sbuf->handle, in svga_buffer_recreate_host_surface()
340 ret = SVGA3D_vgpu10_BufferCopy(svga->swc, sbuf->handle, bufsurf->handle, in svga_buffer_bind_host_surface()
344 ret = SVGA3D_vgpu10_BufferCopy(svga->swc, sbuf->handle, bufsurf->handle, in svga_buffer_bind_host_surface()
440 struct svga_winsys_context *swc = svga->swc; in svga_buffer_upload_gb_command() local
462 invalidate_cmd = SVGA3D_FIFOReserve(swc, in svga_buffer_upload_gb_command()
470 swc->surface_relocation(swc, &invalidate_cmd->image.sid, NULL, in svga_buffer_upload_gb_command()
491 update_cmd = SVGA3D_FIFOReserve(swc, in svga_buffer_upload_gb_command()
505 swc->surface_relocation(swc, &update_cmd->image.sid, NULL, sbuf->handle, in svga_buffer_upload_gb_command()
523 swc->surface_relocation(swc, &whole_update_cmd->body.image.sid, NULL, in svga_buffer_upload_gb_command()
[all …]
Dsvga_state_framebuffer.c79 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_COLOR0 + i, in emit_fb_vgpu9()
96 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_DEPTH, curr->zsbuf); in emit_fb_vgpu9()
106 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, in emit_fb_vgpu9()
112 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, NULL); in emit_fb_vgpu9()
151 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_COLOR0 + i, in svga_reemit_framebuffer_bindings_vgpu9()
160 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_DEPTH, hw->zsbuf); in svga_reemit_framebuffer_bindings_vgpu9()
167 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, hw->zsbuf); in svga_reemit_framebuffer_bindings_vgpu9()
173 ret = SVGA3D_SetRenderTarget(svga->swc, SVGA3D_RT_STENCIL, NULL); in svga_reemit_framebuffer_bindings_vgpu9()
254 ret = SVGA3D_vgpu10_SetRenderTargets(svga->swc, num_color, rtv, dsv); in emit_fb_vgpu10()
349 ret = svga->swc->resource_rebind(svga->swc, in svga_rebind_framebuffer_bindings()
[all …]
Dsvga_context.c98 svga->swc->destroy(svga->swc); in svga_destroy()
157 svga->swc = svgascreen->sws->context_create(svgascreen->sws); in svga_context_create()
158 if (!svga->swc) in svga_context_create()
317 if (svga->swc) in svga_context_create()
318 svga->swc->destroy(svga->swc); in svga_context_create()
367 svga->swc->get_command_buffer_size(svga->swc); in svga_context_flush()
372 svga->swc->flush(svga->swc, &fence); in svga_context_flush()
379 SVGA3D_ResetLastCommand(svga->swc); in svga_context_flush()
491 return svga_context(pipe)->swc; in svga_winsys_context()
Dsvga_state_tss.c184 if (SVGA3D_BeginSetTextureState(svga->swc, &ts, in update_tss_binding()
207 svga->swc->surface_relocation(svga->swc, in update_tss_binding()
216 SVGA_FIFOCommitAll(svga->swc); in update_tss_binding()
273 ret = SVGA3D_BeginSetTextureState(svga->swc, &ts, queue.bind_count); in svga_reemit_tss_bindings()
286 svga->swc->surface_relocation(svga->swc, in svga_reemit_tss_bindings()
293 SVGA_FIFOCommitAll(svga->swc); in svga_reemit_tss_bindings()
411 if (SVGA3D_BeginSetTextureState(svga->swc, &ts, queue.ts_count) != PIPE_OK) in update_tss()
416 SVGA_FIFOCommitAll(svga->swc); in update_tss()
Dsvga_pipe_clear.c166 ret = SVGA3D_SetViewport(svga->swc, &rect); in try_clear()
194 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, in try_clear()
207 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, flags, in try_clear()
214 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui[0], (float) depth, stencil, in try_clear()
221 ret = SVGA3D_SetViewport(svga->swc, &svga->state.hw_clear.viewport); in try_clear()
336 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, in svga_clear_texture()
342 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, in svga_clear_texture()
403 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, in svga_clear_texture()
407 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, in svga_clear_texture()
479 return SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, color->f); in svga_try_clear_render_target()
Dsvga_resource_texture.c90 ret = SVGA3D_SurfaceDMA(svga->swc, st, transfer, &box, 1, flags); in svga_transfer_dma_band()
93 ret = SVGA3D_SurfaceDMA(svga->swc, st, transfer, &box, 1, flags); in svga_transfer_dma_band()
306 ret = SVGA3D_ReadbackGBImage(svga->swc, surf, slice, level); in readback_image_vgpu9()
309 ret = SVGA3D_ReadbackGBImage(svga->swc, surf, slice, level); in readback_image_vgpu9()
326 ret = SVGA3D_vgpu10_ReadbackSubResource(svga->swc, surf, subResource); in readback_image_vgpu10()
329 ret = SVGA3D_vgpu10_ReadbackSubResource(svga->swc, surf, subResource); in readback_image_vgpu10()
482 map = svga->swc->surface_map(svga->swc, surf, usage, &retry); in svga_texture_transfer_map_direct()
490 map = svga->swc->surface_map(svga->swc, surf, usage, &retry); in svga_texture_transfer_map_direct()
681 struct svga_winsys_context *swc = svga->swc; in svga_texture_surface_unmap() local
686 swc->surface_unmap(swc, surf, &rebind); in svga_texture_surface_unmap()
[all …]
Dsvga_swtnl_state.c211 ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, num_decls, id, elements); in svga_vdecl_to_input_element()
214 ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, num_decls, in svga_vdecl_to_input_element()
316 ret = SVGA3D_vgpu10_DestroyElementLayout(svga->swc, in svga_swtnl_update_vdecl()
320 ret = SVGA3D_vgpu10_DestroyElementLayout(svga->swc, in svga_swtnl_update_vdecl()
342 ret = SVGA3D_vgpu10_SetInputLayout(svga->swc, svga_render->layout_id); in svga_swtnl_update_vdecl()
345 ret = SVGA3D_vgpu10_SetInputLayout(svga->swc, in svga_swtnl_update_vdecl()
Dsvga_state.c276 ret = SVGA3D_vgpu10_DefineRasterizerState(svga->swc, in svga_emit_initial_state()
297 ret = SVGA3D_vgpu10_SetRasterizerState(svga->swc, id); in svga_emit_initial_state()
306 ret = SVGA3D_BeginSetRenderState( svga->swc, &rs, COUNT ); in svga_emit_initial_state()
318 SVGA_FIFOCommitAll( svga->swc ); in svga_emit_initial_state()
Dsvga_surface.c89 ret = SVGA3D_BeginSurfaceCopy(svga->swc, in svga_texture_copy_handle()
95 ret = SVGA3D_BeginSurfaceCopy(svga->swc, in svga_texture_copy_handle()
102 SVGA_FIFOCommitAll(svga->swc); in svga_texture_copy_handle()
540 if (svga->swc->surface_invalidate(svga->swc, stex->handle) != PIPE_OK) { in svga_validate_surface_view()
542 ret = svga->swc->surface_invalidate(svga->swc, stex->handle); in svga_validate_surface_view()
558 ret = SVGA3D_vgpu10_DefineDepthStencilView(svga->swc, in svga_validate_surface_view()
579 ret = SVGA3D_vgpu10_DefineRenderTargetView(svga->swc, in svga_validate_surface_view()
643 ret = SVGA3D_vgpu10_DestroyDepthStencilView(svga->swc, s->view_id); in svga_surface_destroy()
646 ret = SVGA3D_vgpu10_DestroyRenderTargetView(svga->swc, s->view_id); in svga_surface_destroy()
Dsvga_pipe_vertex.c189 ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, velems->count, in define_input_element_object()
193 ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, velems->count, in define_input_element_object()
300 ret = SVGA3D_vgpu10_DestroyElementLayout(svga->swc, velems->id); in svga_delete_vertex_elements_state()
303 ret = SVGA3D_vgpu10_DestroyElementLayout(svga->swc, velems->id); in svga_delete_vertex_elements_state()
Dsvga_state_sampler.c211 ret = SVGA3D_vgpu10_DefineShaderResourceView(svga->swc, in svga_validate_pipe_sampler_view()
312 svga->swc, in update_sampler_resources()
358 svga->swc, in update_sampler_resources()
427 ret = SVGA3D_vgpu10_SetSamplers(svga->swc, in update_samplers()
453 ret = SVGA3D_vgpu10_SetSamplers(svga->swc, in update_samplers()
Dsvga_screen_cache.c366 if (svga->swc->surface_invalidate(svga->swc, entry->handle) != PIPE_OK) { in svga_screen_cache_flush()
377 svga->swc->flush(svga->swc, NULL); in svga_screen_cache_flush()
378 ret = svga->swc->surface_invalidate(svga->swc, entry->handle); in svga_screen_cache_flush()
Dsvga_pipe_flush.c46 svga->swc->hints |= SVGA_HINT_FLAG_EXPORT_FENCE_FD; in svga_flush()
109 sws->fence_server_sync(sws, &svga->swc->imported_fence_fd, fence); in svga_fence_server_sync()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_context.c157 vmw_svga_winsys_context(struct svga_winsys_context *swc) in vmw_svga_winsys_context() argument
159 assert(swc); in vmw_svga_winsys_context()
160 return (struct vmw_svga_winsys_context *)swc; in vmw_svga_winsys_context()
178 vmw_swc_flush(struct svga_winsys_context *swc, in vmw_swc_flush() argument
181 struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc); in vmw_swc_flush()
284 swc->hints &= ~SVGA_HINT_FLAG_CAN_PRE_FLUSH; in vmw_swc_flush()
285 swc->hints &= ~SVGA_HINT_FLAG_EXPORT_FENCE_FD; in vmw_swc_flush()
306 vmw_swc_reserve(struct svga_winsys_context *swc, in vmw_swc_reserve() argument
309 struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc); in vmw_swc_reserve()
355 vmw_swc_get_command_buffer_size(struct svga_winsys_context *swc) in vmw_swc_get_command_buffer_size() argument
[all …]
Dvmw_surface.h90 vmw_svga_winsys_surface_map(struct svga_winsys_context *swc,
94 vmw_svga_winsys_surface_unmap(struct svga_winsys_context *swc,
98 vmw_svga_winsys_surface_invalidate(struct svga_winsys_context *swc,
Dvmw_surface.c39 vmw_svga_winsys_surface_map(struct svga_winsys_context *swc, in vmw_svga_winsys_surface_map() argument
126 vmw_swc_surface_clear_reference(swc, vsrf); in vmw_svga_winsys_surface_map()
163 vmw_svga_winsys_surface_unmap(struct svga_winsys_context *swc, in vmw_svga_winsys_surface_unmap() argument
180 vmw_svga_winsys_surface_invalidate(struct svga_winsys_context *swc, in vmw_svga_winsys_surface_invalidate() argument

123