Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/gallium/drivers/svga/
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.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.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.c431 ret = SVGA3D_BindGBShader(svga->swc, variant->gb_shader); in define_gb_shader_vgpu9()
444 struct svga_winsys_context *swc = svga->swc; in define_gb_shader_vgpu10() local
459 variant->gb_shader = swc->shader_create(swc, in define_gb_shader_vgpu10()
481 ret = SVGA3D_vgpu10_DefineAndBindShader(swc, variant->gb_shader, in define_gb_shader_vgpu10()
491 swc->shader_destroy(swc, variant->gb_shader); in define_gb_shader_vgpu10()
532 ret = SVGA3D_DefineShader(svga->swc, in svga_define_shader()
575 ret = SVGA3D_vgpu10_SetShader(svga->swc, type, gbshader, id); in svga_set_shader()
577 ret = SVGA3D_SetGBShader(svga->swc, type, gbshader); in svga_set_shader()
580 ret = SVGA3D_SetShader(svga->swc, type, id); in svga_set_shader()
626 struct svga_winsys_context *swc = svga->swc; in svga_destroy_shader_variant() local
[all …]
Dsvga_resource_buffer.h290 struct svga_winsys_context *swc = svga->swc; in svga_buffer_hw_storage_map() local
294 if (swc->force_coherent) { in svga_buffer_hw_storage_map()
297 map = swc->surface_map(swc, sbuf->handle, flags, retry, &rebind); in svga_buffer_hw_storage_map()
301 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_map()
304 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_map()
326 struct svga_winsys_context *swc = svga->swc; in svga_buffer_hw_storage_unmap() local
329 swc->surface_unmap(swc, sbuf->handle, &rebind); in svga_buffer_hw_storage_unmap()
331 SVGA_RETRY(svga, SVGA3D_BindGBSurface(swc, sbuf->handle)); in svga_buffer_hw_storage_unmap()
Dsvga_winsys.h266 (*destroy)(struct svga_winsys_context *swc);
269 (*reserve)(struct svga_winsys_context *swc,
276 (*get_command_buffer_size)(struct svga_winsys_context *swc);
287 (*surface_relocation)(struct svga_winsys_context *swc,
302 (*region_relocation)(struct svga_winsys_context *swc,
315 (*shader_relocation)(struct svga_winsys_context *swc,
329 (*context_relocation)(struct svga_winsys_context *swc, uint32 *cid);
343 (*mob_relocation)(struct svga_winsys_context *swc,
357 (*query_relocation)(struct svga_winsys_context *swc,
371 (*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()
396 ret = svga->swc->resource_rebind(svga->swc, in validate_sampler_resources()
427 ret = svga->swc->resource_rebind(svga->swc, in validate_constant_buffers()
458 ret = svga->swc->resource_rebind(svga->swc, in validate_constant_buffers()
486 switch (SVGA3D_GetLastCommand(svga->swc)) { in last_command_was_draw()
[all …]
Dsvga_resource_buffer_upload.c266 SVGA_RETRY(svga, SVGA3D_vgpu10_BufferCopy(svga->swc, old_handle, in svga_buffer_recreate_host_surface()
358 SVGA_RETRY(svga, SVGA3D_vgpu10_BufferCopy(svga->swc, sbuf->handle, in svga_buffer_bind_host_surface()
453 struct svga_winsys_context *swc = svga->swc; in svga_buffer_upload_gb_command() local
460 if (swc->force_coherent || sbuf->key.coherent) in svga_buffer_upload_gb_command()
478 invalidate_cmd = SVGA3D_FIFOReserve(swc, in svga_buffer_upload_gb_command()
486 swc->surface_relocation(swc, &invalidate_cmd->image.sid, NULL, in svga_buffer_upload_gb_command()
507 update_cmd = SVGA3D_FIFOReserve(swc, in svga_buffer_upload_gb_command()
521 swc->surface_relocation(swc, &update_cmd->image.sid, NULL, sbuf->handle, in svga_buffer_upload_gb_command()
539 swc->surface_relocation(swc, &whole_update_cmd->body.image.sid, NULL, in svga_buffer_upload_gb_command()
548 SVGA_FIFOCommitAll(swc); in svga_buffer_upload_gb_command()
[all …]
Dsvga_context.c105 svga->swc->destroy(svga->swc); in svga_destroy()
168 svga->swc = svgascreen->sws->context_create(svgascreen->sws); in svga_context_create()
169 if (!svga->swc) in svga_context_create()
342 if (svga->swc) in svga_context_create()
343 svga->swc->destroy(svga->swc); in svga_context_create()
392 svga->swc->get_command_buffer_size(svga->swc); in svga_context_flush()
397 svga->swc->flush(svga->swc, &fence); in svga_context_flush()
404 SVGA3D_ResetLastCommand(svga->swc); in svga_context_flush()
516 return svga_context(pipe)->swc; in svga_winsys_context()
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()
262 ret = SVGA3D_vgpu10_SetRenderTargets(svga->swc, num_color, rtv, dsv); in emit_fb_vgpu10()
366 ret = svga->swc->resource_rebind(svga->swc, in svga_rebind_framebuffer_bindings()
[all …]
Dsvga_pipe_query.c143 SVGA_RETRY(svga, SVGA3D_BeginQuery(svga->swc, sq->svga_type)); in begin_query_vgpu9()
152 SVGA_RETRY(svga, SVGA3D_EndQuery(svga->swc, sq->svga_type, sq->hwbuf)); in end_query_vgpu9()
167 SVGA_RETRY(svga, SVGA3D_WaitForQuery(svga->swc, sq->svga_type, in get_query_result_vgpu9()
495 SVGA_RETRY(svga, svga->swc->query_bind(svga->swc, svga->gb_query, in define_query_vgpu10()
517 SVGA_RETRY_OOM(svga, ret, SVGA3D_vgpu10_DefineQuery(svga->swc, sq->id, in define_query_vgpu10()
523 SVGA_RETRY(svga, SVGA3D_vgpu10_BindQuery(svga->swc, sq->gb_query, sq->id)); in define_query_vgpu10()
524 SVGA_RETRY(svga, SVGA3D_vgpu10_SetQueryOffset(svga->swc, sq->id, in define_query_vgpu10()
533 SVGA_RETRY(svga, SVGA3D_vgpu10_DestroyQuery(svga->swc, sq->id)); in destroy_query_vgpu10()
546 SVGA_RETRY(svga, svga->swc->query_bind(svga->swc, svga->gb_query, in rebind_vgpu10_query()
570 SVGA_RETRY(svga, SVGA3D_vgpu10_BeginQuery(svga->swc, sq->id)); in begin_query_vgpu10()
[all …]
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()
274 ret = SVGA3D_BeginSetTextureState(svga->swc, &ts, queue.bind_count); in svga_reemit_tss_bindings()
287 svga->swc->surface_relocation(svga->swc, in svga_reemit_tss_bindings()
294 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_resource_texture.c89 SVGA_RETRY(svga, SVGA3D_SurfaceDMA(svga->swc, st, transfer, &box, 1, flags)); in svga_transfer_dma_band()
248 SVGA_RETRY(svga, SVGA3D_ReadbackGBImage(svga->swc, surf, slice, level)); in readback_image_vgpu9()
262 SVGA_RETRY(svga, SVGA3D_vgpu10_ReadbackSubResource(svga->swc, surf, in readback_image_vgpu10()
355 if (!svga->swc->force_coherent || tex->imported) { in svga_texture_transfer_map_direct()
410 struct svga_winsys_context *swc = svga->swc; in svga_texture_transfer_map_direct() local
412 if (swc->force_coherent) { in svga_texture_transfer_map_direct()
416 map = SVGA_TRY_MAP(svga->swc->surface_map in svga_texture_transfer_map_direct()
417 (svga->swc, surf, usage, &retry, &rebind), retry); in svga_texture_transfer_map_direct()
427 map = svga->swc->surface_map(svga->swc, surf, usage, &retry, &rebind); in svga_texture_transfer_map_direct()
434 ret = SVGA3D_BindGBSurface(swc, surf); in svga_texture_transfer_map_direct()
[all …]
Dsvga_pipe_streamout.c109 (svga->swc, soid, in svga_define_stream_output()
117 SVGA_RETRY(svga, SVGA3D_vgpu10_DefineStreamOutput(svga->swc, soid, in svga_define_stream_output()
321 enum pipe_error ret = SVGA3D_vgpu10_SetStreamOutput(svga->swc, id); in svga_set_stream_output()
350 SVGA_RETRY(svga, SVGA3D_vgpu10_DestroyStreamOutput(svga->swc, in svga_delete_stream_output()
487 SVGA_RETRY(svga, SVGA3D_vgpu10_SetSOTargets(svga->swc, num_so_targets, in svga_set_stream_output_targets()
511 struct svga_winsys_context *swc = svga->swc; in svga_rebind_stream_output_targets() local
516 ret = swc->resource_rebind(swc, svga->so_surfaces[i], NULL, SVGA_RELOC_WRITE); in svga_rebind_stream_output_targets()
Dsvga_pipe_clear.c169 ret = SVGA3D_SetViewport(svga->swc, &rect); in try_clear()
197 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, in try_clear()
210 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, flags, in try_clear()
217 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui[0], (float) depth, stencil, in try_clear()
224 ret = SVGA3D_SetViewport(svga->swc, &svga->state.hw_clear.viewport); in try_clear()
330 SVGA_RETRY(svga, SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, in svga_clear_texture()
378 SVGA_RETRY(svga, SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, in svga_clear_texture()
449 return SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, color->f); in svga_try_clear_render_target()
Dsvga_state.c332 ret = SVGA3D_vgpu10_DefineRasterizerState(svga->swc, in svga_emit_initial_state()
353 ret = SVGA3D_vgpu10_SetRasterizerState(svga->swc, id); in svga_emit_initial_state()
362 ret = SVGA3D_BeginSetRenderState( svga->swc, &rs, COUNT ); in svga_emit_initial_state()
374 SVGA_FIFOCommitAll( svga->swc ); in svga_emit_initial_state()
Dsvga_pipe_flush.c46 svga->swc->hints |= SVGA_HINT_FLAG_EXPORT_FENCE_FD; in svga_flush()
111 sws->fence_server_sync(sws, &svga->swc->imported_fence_fd, fence); in svga_fence_server_sync()
Dsvga_state_sampler.c223 ret = SVGA3D_vgpu10_DefineShaderResourceView(svga->swc, in svga_validate_pipe_sampler_view()
323 svga->swc, in update_sampler_resources()
370 svga->swc, in update_sampler_resources()
439 ret = SVGA3D_vgpu10_SetSamplers(svga->swc, in update_samplers()
466 ret = SVGA3D_vgpu10_SetSamplers(svga->swc, in update_samplers()
Dsvga_screen_cache.c376 if (SVGA_TRY(SVGA3D_InvalidateGBSurface(svga->swc, entry->handle)) in svga_screen_cache_flush()
389 svga->swc->flush(svga->swc, NULL); in svga_screen_cache_flush()
391 ret = SVGA3D_InvalidateGBSurface(svga->swc, entry->handle); in svga_screen_cache_flush()
415 svga->swc->flush(svga->swc, NULL); in svga_screen_cache_flush()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_context.c158 vmw_svga_winsys_context(struct svga_winsys_context *swc) in vmw_svga_winsys_context() argument
160 assert(swc); in vmw_svga_winsys_context()
161 return (struct vmw_svga_winsys_context *)swc; in vmw_svga_winsys_context()
179 vmw_swc_flush(struct svga_winsys_context *swc, in vmw_swc_flush() argument
182 struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc); in vmw_swc_flush()
285 swc->hints &= ~SVGA_HINT_FLAG_CAN_PRE_FLUSH; in vmw_swc_flush()
286 swc->hints &= ~SVGA_HINT_FLAG_EXPORT_FENCE_FD; in vmw_swc_flush()
307 vmw_swc_reserve(struct svga_winsys_context *swc, in vmw_swc_reserve() argument
310 struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc); in vmw_swc_reserve()
356 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,
95 vmw_svga_winsys_surface_unmap(struct svga_winsys_context *swc,
/third_party/mindspore/tests/ut/cpp/parallel/ops_info/
Dactivation_test.cc77 for (const auto& swc : sc) { in TEST_F() local
78 ASSERT_NE(swc, nullptr); in TEST_F()
79 ASSERT_GT(swc->cost_list.size(), 0); in TEST_F()
80 StrategyPtr sp = swc->strategy_ptr; in TEST_F()
82 Cost cost = *(swc->cost_list[0]); in TEST_F()
97 for (const auto& swc : sc) { in TEST_F() local
98 ASSERT_NE(swc, nullptr); in TEST_F()
99 ASSERT_GT(swc->cost_list.size(), 0); in TEST_F()
100 StrategyPtr sp = swc->strategy_ptr; in TEST_F()
102 Cost cost = *(swc->cost_list[0]); in TEST_F()
Dtensor_add_info_test.cc185 for (auto& swc : sc) { in TEST_F() local
186 StrategyPtr sp = swc->strategy_ptr; in TEST_F()
187 Cost cost = *(swc->cost_list[0]); in TEST_F()
207 for (auto& swc : sc) { in TEST_F() local
208 StrategyPtr sp = swc->strategy_ptr; in TEST_F()
209 Cost cost = *(swc->cost_list[0]); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/
Dedge_costmodel.cc35 for (auto &swc : prev_op_->GetStrategyCost()) { in InitEdgeCost() local
36 MS_EXCEPTION_IF_NULL(swc); in InitEdgeCost()
37 pre_op_output_.emplace_back(std::make_pair(swc->strategy_ptr, swc->outputs_ptr)); in InitEdgeCost()
39 for (auto &swc : next_op_->GetStrategyCost()) { in InitEdgeCost() local
40 MS_EXCEPTION_IF_NULL(swc); in InitEdgeCost()
41 next_op_input_.emplace_back(std::make_pair(swc->strategy_ptr, swc->inputs_ptr)); in InitEdgeCost()
Dcostmodel.h86 StrategyWithCost(const StrategyWithCost &swc) = delete;
87 StrategyWithCost(StrategyWithCost &&swc) in StrategyWithCost() argument
88 : strategy_ptr(swc.strategy_ptr), in StrategyWithCost()
89 inputs_ptr(swc.inputs_ptr), in StrategyWithCost()
90 outputs_ptr(swc.outputs_ptr), in StrategyWithCost()
91 cost_list(swc.cost_list) {} in StrategyWithCost()

123