Home
last modified time | relevance | path

Searched refs:svga (Results 1 – 25 of 121) sorted by relevance

12345

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_context.c61 struct svga_context *svga = svga_context(pipe); in svga_destroy() local
65 for (i = 0; i < ARRAY_SIZE(svga->rasterizer_no_cull); i++) { in svga_destroy()
66 if (svga->rasterizer_no_cull[i]) { in svga_destroy()
67 pipe->delete_rasterizer_state(pipe, svga->rasterizer_no_cull[i]); in svga_destroy()
72 if (svga->depthstencil_disable) { in svga_destroy()
73 pipe->delete_depth_stencil_alpha_state(pipe, svga->depthstencil_disable); in svga_destroy()
77 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { in svga_destroy()
78 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) { in svga_destroy()
79 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL); in svga_destroy()
83 pipe->delete_blend_state(pipe, svga->noop_blend); in svga_destroy()
[all …]
Dsvga_state_rss.c48 #define EMIT_RS(svga, value, token) \ argument
50 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
51 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
53 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
57 #define EMIT_RS_FLOAT(svga, fvalue, token) \ argument
60 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
61 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
63 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
100 emit_rss_vgpu9(struct svga_context *svga, uint64_t dirty) in emit_rss_vgpu9() argument
102 struct svga_screen *screen = svga_screen(svga->pipe.screen); in emit_rss_vgpu9()
[all …]
Dsvga_state_ts.c40 compile_tcs(struct svga_context *svga, in compile_tcs() argument
48 variant = svga_tgsi_vgpu10_translate(svga, &tcs->base, key, in compile_tcs()
53 ret = svga_define_shader(svga, variant); in compile_tcs()
55 svga_destroy_shader_variant(svga, variant); in compile_tcs()
66 make_tcs_key(struct svga_context *svga, struct svga_compile_key *key) in make_tcs_key() argument
68 struct svga_tcs_shader *tcs = svga->curr.tcs; in make_tcs_key()
75 svga_init_shader_key_common(svga, PIPE_SHADER_TESS_CTRL, &tcs->base, key); in make_tcs_key()
78 key->tcs.vertices_per_patch = svga->curr.vertices_per_patch; in make_tcs_key()
86 struct svga_tes_variant *tes = svga_tes_variant(svga->state.hw_draw.tes); in make_tcs_key()
100 if (svga->tcs.passthrough) in make_tcs_key()
[all …]
Dsvga_swtnl_draw.c40 svga_swtnl_draw_vbo(struct svga_context *svga, in svga_swtnl_draw_vbo() argument
46 struct draw_context *draw = svga->swtnl.draw; in svga_swtnl_draw_vbo()
52 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_SWTNLDRAWVBO); in svga_swtnl_draw_vbo()
54 assert(!svga->dirty); in svga_swtnl_draw_vbo()
55 assert(svga->state.sw.need_swtnl); in svga_swtnl_draw_vbo()
59 svga->state.sw.in_swtnl_draw = TRUE; in svga_swtnl_draw_vbo()
61 SVGA_RETRY_CHECK(svga, svga_update_state(svga, SVGA_STATE_SWTNL_DRAW), retried); in svga_swtnl_draw_vbo()
63 svga->swtnl.new_vbuf = TRUE; in svga_swtnl_draw_vbo()
69 for (i = 0; i < svga->curr.num_vertex_buffers; i++) { in svga_swtnl_draw_vbo()
70 if (svga->curr.vb[i].buffer.resource) { in svga_swtnl_draw_vbo()
[all …]
Dsvga_state_fs.c84 translate_fragment_program(struct svga_context *svga, in translate_fragment_program() argument
88 if (svga_have_vgpu10(svga)) { in translate_fragment_program()
89 return svga_tgsi_vgpu10_translate(svga, &fs->base, key, in translate_fragment_program()
93 return svga_tgsi_vgpu9_translate(svga, &fs->base, key, in translate_fragment_program()
104 get_compiled_dummy_shader(struct svga_context *svga, in get_compiled_dummy_shader() argument
122 variant = translate_fragment_program(svga, fs, key); in get_compiled_dummy_shader()
131 compile_fs(struct svga_context *svga, in compile_fs() argument
139 variant = translate_fragment_program(svga, fs, key); in compile_fs()
143 variant = get_compiled_dummy_shader(svga, fs, key); in compile_fs()
145 else if (svga_shader_too_large(svga, variant)) { in compile_fs()
[all …]
Dsvga_pipe_streamout.c53 svga_define_stream_output(struct svga_context *svga, in svga_define_stream_output() argument
82 if (svga_have_sm5(svga) && in svga_define_stream_output()
88 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_define_stream_output()
91 declBuf = svga_winsys_buffer_create(svga, 1, SVGA_BUFFER_USAGE_PINNED, in svga_define_stream_output()
108 SVGA_RETRY(svga, SVGA3D_sm5_DefineAndBindStreamOutput in svga_define_stream_output()
109 (svga->swc, soid, in svga_define_stream_output()
117 SVGA_RETRY(svga, SVGA3D_vgpu10_DefineStreamOutput(svga->swc, soid, in svga_define_stream_output()
131 svga_create_stream_output(struct svga_context *svga, in svga_create_stream_output() argument
151 if (!svga_have_vgpu10(svga)) in svga_create_stream_output()
154 if (svga_have_sm5(svga)) in svga_create_stream_output()
[all …]
Dsvga_pipe_query.c92 define_query_vgpu9(struct svga_context *svga, in define_query_vgpu9() argument
95 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_query_vgpu9()
97 sq->hwbuf = svga_winsys_buffer_create(svga, 1, in define_query_vgpu9()
123 begin_query_vgpu9(struct svga_context *svga, struct svga_query *sq) in begin_query_vgpu9() argument
125 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in begin_query_vgpu9()
136 svga_get_query_result(&svga->pipe, &sq->base, TRUE, (void*)&result); in begin_query_vgpu9()
143 SVGA_RETRY(svga, SVGA3D_BeginQuery(svga->swc, sq->svga_type)); in begin_query_vgpu9()
147 end_query_vgpu9(struct svga_context *svga, struct svga_query *sq) in end_query_vgpu9() argument
152 SVGA_RETRY(svga, SVGA3D_EndQuery(svga->swc, sq->svga_type, sq->hwbuf)); in end_query_vgpu9()
156 get_query_result_vgpu9(struct svga_context *svga, struct svga_query *sq, in get_query_result_vgpu9() argument
[all …]
Dsvga_pipe_draw.c46 retry_draw_range_elements(struct svga_context *svga, in retry_draw_range_elements() argument
50 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_DRAWELEMENTS); in retry_draw_range_elements()
52 SVGA_RETRY(svga, svga_hwtnl_draw_range_elements(svga->hwtnl, info, count)); in retry_draw_range_elements()
54 SVGA_STATS_TIME_POP(svga_sws(svga)); in retry_draw_range_elements()
60 retry_draw_arrays( struct svga_context *svga, in retry_draw_arrays() argument
67 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_DRAWARRAYS); in retry_draw_arrays()
69 SVGA_RETRY_OOM(svga, ret, svga_hwtnl_draw_arrays(svga->hwtnl, prim, start, in retry_draw_arrays()
73 SVGA_STATS_TIME_POP(svga_sws(svga)); in retry_draw_arrays()
82 retry_draw_auto(struct svga_context *svga, in retry_draw_auto() argument
85 assert(svga_have_sm5(svga)); in retry_draw_auto()
[all …]
Dsvga_state_need_swtnl.c36 update_need_swvfetch(struct svga_context *svga, uint64_t dirty) in update_need_swvfetch() argument
38 if (!svga->curr.velems) { in update_need_swvfetch()
43 if (svga->state.sw.need_swvfetch != svga->curr.velems->need_swvfetch) { in update_need_swvfetch()
44 svga->state.sw.need_swvfetch = svga->curr.velems->need_swvfetch; in update_need_swvfetch()
45 svga->dirty |= SVGA_NEW_NEED_SWVFETCH; in update_need_swvfetch()
61 update_need_pipeline(struct svga_context *svga, uint64_t dirty) in update_need_pipeline() argument
64 struct svga_vertex_shader *vs = svga->curr.vs; in update_need_pipeline()
69 if (svga->curr.rast && in update_need_pipeline()
70 (svga->curr.rast->need_pipeline & (1 << svga->curr.reduced_prim))) { in update_need_pipeline()
73 svga->curr.rast->need_pipeline, in update_need_pipeline()
[all …]
Dsvga_state_constants.c66 svga_get_extra_constants_common(const struct svga_context *svga, in svga_get_extra_constants_common() argument
75 const struct pipe_sampler_view *sv = svga->curr.sampler_views[shader][i]; in svga_get_extra_constants_common()
117 svga_get_extra_fs_constants(const struct svga_context *svga, float *dest) in svga_get_extra_fs_constants() argument
119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs; in svga_get_extra_fs_constants()
122 count += svga_get_extra_constants_common(svga, variant, in svga_get_extra_fs_constants()
136 svga_get_prescale_constants(const struct svga_context *svga, float **dest, in svga_get_prescale_constants() argument
152 svga_get_pt_sprite_constants(const struct svga_context *svga, float **dest) in svga_get_pt_sprite_constants() argument
154 const struct svga_screen *screen = svga_screen(svga->pipe.screen); in svga_get_pt_sprite_constants()
157 dst[0] = 1.0 / (svga->curr.viewport[0].scale[0] * 2); in svga_get_pt_sprite_constants()
158 dst[1] = 1.0 / (svga->curr.viewport[0].scale[1] * 2); in svga_get_pt_sprite_constants()
[all …]
Dsvga_pipe_clear.c42 begin_blit(struct svga_context *svga) in begin_blit() argument
44 util_blitter_save_vertex_buffer_slot(svga->blitter, svga->curr.vb); in begin_blit()
45 util_blitter_save_vertex_elements(svga->blitter, (void*)svga->curr.velems); in begin_blit()
46 util_blitter_save_vertex_shader(svga->blitter, svga->curr.vs); in begin_blit()
47 util_blitter_save_geometry_shader(svga->blitter, svga->curr.gs); in begin_blit()
48 util_blitter_save_tessctrl_shader(svga->blitter, svga->curr.tcs); in begin_blit()
49 util_blitter_save_tesseval_shader(svga->blitter, svga->curr.tes); in begin_blit()
50 util_blitter_save_so_targets(svga->blitter, svga->num_so_targets, in begin_blit()
51 (struct pipe_stream_output_target**)svga->so_targets); in begin_blit()
52 util_blitter_save_rasterizer(svga->blitter, (void*)svga->curr.rast); in begin_blit()
[all …]
Dsvga_pipe_misc.c44 struct svga_context *svga = svga_context(pipe); in svga_set_scissor_states() local
50 svga->curr.scissor[num_sc++] = scissors[i]; /* struct copy */ in svga_set_scissor_states()
53 svga->dirty |= SVGA_NEW_SCISSOR; in svga_set_scissor_states()
61 struct svga_context *svga = svga_context(pipe); in svga_set_polygon_stipple() local
64 pipe_resource_reference(&svga->polygon_stipple.texture, NULL); in svga_set_polygon_stipple()
67 if (svga->polygon_stipple.sampler_view) { in svga_set_polygon_stipple()
69 &svga->polygon_stipple.sampler_view->base); in svga_set_polygon_stipple()
73 svga->polygon_stipple.texture = in svga_set_polygon_stipple()
77 svga->polygon_stipple.sampler_view = in svga_set_polygon_stipple()
80 svga->polygon_stipple.texture); in svga_set_polygon_stipple()
[all …]
Dsvga_state_tss.c44 svga_cleanup_tss_binding(struct svga_context *svga) in svga_cleanup_tss_binding() argument
49 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.views); i++) { in svga_cleanup_tss_binding()
50 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i]; in svga_cleanup_tss_binding()
53 pipe_sampler_view_reference(&svga->curr.sampler_views[shader][i], in svga_cleanup_tss_binding()
76 emit_tex_binding_unit(struct svga_context *svga, in emit_tex_binding_unit() argument
118 view->v = svga_get_tex_sampler_view(&svga->pipe, in emit_tex_binding_unit()
136 svga_validate_sampler_view(svga, view->v); in emit_tex_binding_unit()
142 update_tss_binding(struct svga_context *svga, uint64_t dirty ) in update_tss_binding() argument
145 boolean reemit = svga->rebind.flags.texture_samplers; in update_tss_binding()
147 unsigned count = MAX2(svga->curr.num_sampler_views[shader], in update_tss_binding()
[all …]
Dsvga_state_vs.c74 translate_vertex_program(struct svga_context *svga, in translate_vertex_program() argument
78 if (svga_have_vgpu10(svga)) { in translate_vertex_program()
79 return svga_tgsi_vgpu10_translate(svga, &vs->base, key, in translate_vertex_program()
83 return svga_tgsi_vgpu9_translate(svga, &vs->base, key, in translate_vertex_program()
94 get_compiled_dummy_vertex_shader(struct svga_context *svga, in get_compiled_dummy_vertex_shader() argument
111 variant = translate_vertex_program(svga, vs, key); in get_compiled_dummy_vertex_shader()
120 compile_vs(struct svga_context *svga, in compile_vs() argument
128 variant = translate_vertex_program(svga, vs, key); in compile_vs()
132 variant = get_compiled_dummy_vertex_shader(svga, vs, key); in compile_vs()
134 else if (svga_shader_too_large(svga, variant)) { in compile_vs()
[all …]
Dsvga_swtnl_backend.c51 struct svga_context *svga = svga_render->svga; in svga_vbuf_render_get_vertex_info() local
53 svga_swtnl_update_vdecl(svga); in svga_vbuf_render_get_vertex_info()
65 struct svga_context *svga = svga_render->svga; in svga_vbuf_render_allocate_vertices() local
66 struct pipe_screen *screen = svga->pipe.screen; in svga_vbuf_render_allocate_vertices()
71 SVGA_STATS_TIME_PUSH(svga_sws(svga), in svga_vbuf_render_allocate_vertices()
75 svga->swtnl.new_vdecl = TRUE; in svga_vbuf_render_allocate_vertices()
78 if (svga->swtnl.new_vbuf) in svga_vbuf_render_allocate_vertices()
80 svga->swtnl.new_vbuf = FALSE; in svga_vbuf_render_allocate_vertices()
98 svga_retry_enter(svga); in svga_vbuf_render_allocate_vertices()
99 svga_context_flush(svga, NULL); in svga_vbuf_render_allocate_vertices()
[all …]
Dsvga_pipe_ts.c38 struct svga_context *svga = svga_context(pipe); in svga_set_tess_state() local
42 svga->curr.default_tesslevels[i] = default_outer_level[i]; in svga_set_tess_state()
45 svga->curr.default_tesslevels[i + 4] = default_inner_level[i]; in svga_set_tess_state()
54 struct svga_context *svga = svga_context(pipe); in svga_create_tcs_state() local
61 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CREATETCS); in svga_create_tcs_state()
69 tcs->base.id = svga->debug.shader_id++; in svga_create_tcs_state()
73 SVGA_STATS_TIME_POP(svga_sws(svga)); in svga_create_tcs_state()
82 struct svga_context *svga = svga_context(pipe); in svga_bind_tcs_state() local
84 if (tcs == svga->curr.tcs) in svga_bind_tcs_state()
87 svga->curr.tcs = tcs; in svga_bind_tcs_state()
[all …]
Dsvga_pipe_sampler.c160 define_sampler_state_object(struct svga_context *svga, in define_sampler_state_object() argument
171 assert(svga_have_vgpu10(svga)); in define_sampler_state_object()
207 ss->id[i] = util_bitmask_add(svga->sampler_object_id_bm); in define_sampler_state_object()
209 SVGA_RETRY(svga, SVGA3D_vgpu10_DefineSamplerState in define_sampler_state_object()
210 (svga->swc, in define_sampler_state_object()
233 struct svga_context *svga = svga_context(pipe); in svga_create_sampler_state() local
270 if (svga->debug.use_min_mipmap) { in svga_create_sampler_state()
279 if (svga_have_vgpu10(svga)) { in svga_create_sampler_state()
280 define_sampler_state_object(svga, cso, sampler); in svga_create_sampler_state()
288 svga->hud.num_sampler_objects++; in svga_create_sampler_state()
[all …]
Dsvga_state_gs.c52 translate_geometry_program(struct svga_context *svga, in translate_geometry_program() argument
56 assert(svga_have_vgpu10(svga)); in translate_geometry_program()
57 return svga_tgsi_vgpu10_translate(svga, &gs->base, key, in translate_geometry_program()
66 compile_gs(struct svga_context *svga, in compile_gs() argument
74 variant = translate_geometry_program(svga, gs, key); in compile_gs()
84 variant = translate_geometry_program(svga, gs, key); in compile_gs()
90 ret = svga_define_shader(svga, variant); in compile_gs()
92 svga_destroy_shader_variant(svga, variant); in compile_gs()
103 make_gs_key(struct svga_context *svga, struct svga_compile_key *key) in make_gs_key() argument
105 struct svga_geometry_shader *gs = svga->curr.gs; in make_gs_key()
[all …]
Dsvga_swtnl_state.c52 set_draw_viewport(struct svga_context *svga) in set_draw_viewport() argument
54 struct pipe_viewport_state vp = svga->curr.viewport[0]; in set_draw_viewport()
58 if (svga_have_vgpu10(svga)) { in set_draw_viewport()
59 if (svga->curr.reduced_prim == PIPE_PRIM_TRIANGLES) { in set_draw_viewport()
64 switch (svga->curr.reduced_prim) { in set_draw_viewport()
74 if (svga->curr.rast->need_pipeline & SVGA_PIPELINE_FLAG_LINES) in set_draw_viewport()
97 draw_set_viewport_states(svga->swtnl.draw, 0, 1, &vp); in set_draw_viewport()
101 update_swtnl_draw(struct svga_context *svga, uint64_t dirty) in update_swtnl_draw() argument
103 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_SWTNLUPDATEDRAW); in update_swtnl_draw()
105 draw_flush(svga->swtnl.draw); in update_swtnl_draw()
[all …]
Dsvga_state_tgsi_transform.c47 bind_gs_state(struct svga_context *svga, in bind_gs_state() argument
50 svga->curr.gs = gs; in bind_gs_state()
51 svga->dirty |= SVGA_NEW_GS; in bind_gs_state()
68 bind_shader(struct svga_context *svga, in bind_shader() argument
74 svga->pipe.bind_vs_state(&svga->pipe, shader); in bind_shader()
82 svga_bind_fs_state(&svga->pipe, shader); in bind_shader()
85 svga->pipe.bind_gs_state(&svga->pipe, shader); in bind_shader()
88 svga->pipe.bind_tcs_state(&svga->pipe, shader); in bind_shader()
91 svga->pipe.bind_tes_state(&svga->pipe, shader); in bind_shader()
104 create_shader(struct svga_context *svga, in create_shader() argument
[all …]
Dsvga_state_framebuffer.c54 emit_fb_vgpu9(struct svga_context *svga) in emit_fb_vgpu9() argument
56 struct svga_screen *svgascreen = svga_screen(svga->pipe.screen); in emit_fb_vgpu9()
57 const struct pipe_framebuffer_state *curr = &svga->curr.framebuffer; in emit_fb_vgpu9()
58 struct pipe_framebuffer_state *hw = &svga->state.hw_clear.framebuffer; in emit_fb_vgpu9()
59 boolean reemit = svga->rebind.flags.rendertargets; in emit_fb_vgpu9()
63 assert(!svga_have_vgpu10(svga)); in emit_fb_vgpu9()
72 if (svga->curr.nr_fbs++ > MAX_RT_PER_BATCH) in emit_fb_vgpu9()
77 svga_propagate_surface(svga, hw->cbufs[i], TRUE); in emit_fb_vgpu9()
79 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()
[all …]
Dsvga_pipe_blit.c77 intra_surface_copy(struct svga_context *svga, struct pipe_resource *tex, in intra_surface_copy() argument
90 svga_surfaces_flush(svga); in intra_surface_copy()
104 SVGA_RETRY(svga, SVGA3D_vgpu10_IntraSurfaceCopy(svga->swc, stex->handle, in intra_surface_copy()
114 copy_region_vgpu10(struct svga_context *svga, struct pipe_resource *src_tex, in copy_region_vgpu10() argument
128 svga_surfaces_flush(svga); in copy_region_vgpu10()
133 svga_texture_copy_region(svga, stex->handle, srcSubResource, in copy_region_vgpu10()
151 copy_region_fallback(struct svga_context *svga, in copy_region_fallback() argument
157 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in copy_region_fallback()
160 util_resource_copy_region(&svga->pipe, dst_tex, dst_level, dstx, in copy_region_fallback()
226 is_blending_enabled(struct svga_context *svga, in is_blending_enabled() argument
[all …]
Dsvga_pipe_vs.c101 struct svga_context *svga = svga_context(pipe); in svga_create_vs_state() local
107 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CREATEVS); in svga_create_vs_state()
111 vs->base.tokens = tgsi_dup_tokens(substitute_vs(svga->debug.shader_id, in svga_create_vs_state()
124 vs->draw_shader = draw_create_vertex_shader(svga->swtnl.draw, &tmp2); in svga_create_vs_state()
127 vs->base.id = svga->debug.shader_id++; in svga_create_vs_state()
133 vs->base.stream_output = svga_create_stream_output(svga, &vs->base, in svga_create_vs_state()
137 SVGA_STATS_TIME_POP(svga_sws(svga)); in svga_create_vs_state()
146 struct svga_context *svga = svga_context(pipe); in svga_bind_vs_state() local
148 if (vs == svga->curr.vs) in svga_bind_vs_state()
156 if (svga->curr.vs != NULL && svga->curr.vs->gs != NULL) in svga_bind_vs_state()
[all …]
Dsvga_draw.c49 svga_hwtnl_create(struct svga_context *svga) in svga_hwtnl_create() argument
55 hwtnl->svga = svga; in svga_hwtnl_create()
57 hwtnl->cmd.swc = svga->swc; in svga_hwtnl_create()
91 struct svga_screen *svgascreen = svga_screen(hwtnl->svga->pipe.screen); in svga_hwtnl_set_flatshade()
194 struct svga_context *svga = hwtnl->svga; in draw_vgpu9() local
211 if (svga->state.hw_draw.num_backed_views) { in draw_vgpu9()
212 for (i = 0; i < svga->state.hw_draw.num_views; i++) { in draw_vgpu9()
213 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i]; in draw_vgpu9()
217 svga_validate_sampler_view(svga, view->v); in draw_vgpu9()
223 handle = svga_buffer_handle(svga, hwtnl->cmd.vbufs[j].buffer.resource, in draw_vgpu9()
[all …]
Dsvga_pipe_vertex.c48 struct svga_context *svga = svga_context(pipe); in svga_set_vertex_buffers() local
50 util_set_vertex_buffers_count(svga->curr.vb, in svga_set_vertex_buffers()
51 &svga->curr.num_vertex_buffers, in svga_set_vertex_buffers()
54 svga->dirty |= SVGA_NEW_VBUFFER; in svga_set_vertex_buffers()
119 define_input_element_object(struct svga_context *svga, in define_input_element_object() argument
126 assert(svga_have_vgpu10(svga)); in define_input_element_object()
186 velems->id = util_bitmask_add(svga->input_element_object_id_bm); in define_input_element_object()
188 SVGA_RETRY(svga, SVGA3D_vgpu10_DefineElementLayout(svga->swc, velems->count, in define_input_element_object()
198 translate_vertex_decls(struct svga_context *svga, in translate_vertex_decls() argument
203 assert(!svga_have_vgpu10(svga)); in translate_vertex_decls()
[all …]

12345