Home
last modified time | relevance | path

Searched refs:hwtnl (Results 1 – 14 of 14) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw.c51 struct svga_hwtnl *hwtnl = CALLOC_STRUCT(svga_hwtnl); in svga_hwtnl_create() local
52 if (!hwtnl) in svga_hwtnl_create()
55 hwtnl->svga = svga; in svga_hwtnl_create()
57 hwtnl->cmd.swc = svga->swc; in svga_hwtnl_create()
59 return hwtnl; in svga_hwtnl_create()
67 svga_hwtnl_destroy(struct svga_hwtnl *hwtnl) in svga_hwtnl_destroy() argument
73 pipe_resource_reference(&hwtnl->index_cache[i][j].buffer, NULL); in svga_hwtnl_destroy()
77 for (i = 0; i < hwtnl->cmd.vbuf_count; i++) in svga_hwtnl_destroy()
78 pipe_vertex_buffer_unreference(&hwtnl->cmd.vbufs[i]); in svga_hwtnl_destroy()
80 for (i = 0; i < hwtnl->cmd.prim_count; i++) in svga_hwtnl_destroy()
[all …]
Dsvga_draw_arrays.c43 generate_indices(struct svga_hwtnl *hwtnl, in generate_indices() argument
48 struct pipe_context *pipe = &hwtnl->svga->pipe; in generate_indices()
92 retrieve_or_generate_indices(struct svga_hwtnl *hwtnl, in retrieve_or_generate_indices() argument
103 SVGA_STATS_TIME_PUSH(svga_sws(hwtnl->svga), SVGA_STATS_TIME_GENERATEINDICES); in retrieve_or_generate_indices()
106 if (hwtnl->index_cache[prim][i].buffer != NULL && in retrieve_or_generate_indices()
107 hwtnl->index_cache[prim][i].generate == generate) { in retrieve_or_generate_indices()
108 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) { in retrieve_or_generate_indices()
110 hwtnl->index_cache[prim][i].buffer); in retrieve_or_generate_indices()
118 pipe_resource_reference(&hwtnl->index_cache[prim][i].buffer, in retrieve_or_generate_indices()
123 i, hwtnl->index_cache[prim][i].gen_nr); in retrieve_or_generate_indices()
[all …]
Dsvga_draw.h42 void svga_hwtnl_destroy(struct svga_hwtnl *hwtnl);
44 void svga_hwtnl_set_flatshade(struct svga_hwtnl *hwtnl,
47 void svga_hwtnl_set_fillmode(struct svga_hwtnl *hwtnl, unsigned mode);
50 svga_hwtnl_vertex_decls(struct svga_hwtnl *hwtnl,
57 svga_hwtnl_vertex_buffers(struct svga_hwtnl *hwtnl,
61 svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl,
67 svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl,
73 svga_hwtnl_is_buffer_referred(struct svga_hwtnl *hwtnl,
76 enum pipe_error svga_hwtnl_flush(struct svga_hwtnl *hwtnl);
78 void svga_hwtnl_set_index_bias(struct svga_hwtnl *hwtnl, int index_bias);
Dsvga_draw_elements.c62 translate_indices(struct svga_hwtnl *hwtnl, in translate_indices() argument
72 struct pipe_context *pipe = &hwtnl->svga->pipe; in translate_indices()
183 svga_hwtnl_simple_draw_range_elements(struct svga_hwtnl *hwtnl, in svga_hwtnl_simple_draw_range_elements() argument
209 return svga_hwtnl_prim(hwtnl, &range, count, in svga_hwtnl_simple_draw_range_elements()
217 svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl, in svga_hwtnl_draw_range_elements() argument
222 struct pipe_context *pipe = &hwtnl->svga->pipe; in svga_hwtnl_draw_range_elements()
229 SVGA_STATS_TIME_PUSH(svga_sws(hwtnl->svga), in svga_hwtnl_draw_range_elements()
232 if (svga_need_unfilled_fallback(hwtnl, info->mode)) { in svga_hwtnl_draw_range_elements()
236 hwtnl->api_fillmode, in svga_hwtnl_draw_range_elements()
247 hw_pv = info->mode == PIPE_PRIM_PATCHES ? hwtnl->api_pv : in svga_hwtnl_draw_range_elements()
[all …]
Dsvga_swtnl_backend.c233 SVGA_RETRY_CHECK(svga, svga_hwtnl_flush(svga->hwtnl), retried); in svga_vbuf_submit_state()
243 svga_hwtnl_vertex_decls(svga->hwtnl, in svga_vbuf_submit_state()
256 svga_hwtnl_vertex_buffers(svga->hwtnl, 1, &vb); in svga_vbuf_submit_state()
263 svga_hwtnl_set_flatshade(svga->hwtnl, FALSE, FALSE); in svga_vbuf_submit_state()
264 svga_hwtnl_set_fillmode(svga->hwtnl, PIPE_POLYGON_MODE_FILL); in svga_vbuf_submit_state()
267 svga_hwtnl_set_flatshade(svga->hwtnl, in svga_vbuf_submit_state()
272 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); in svga_vbuf_submit_state()
304 (svga->hwtnl, svga_render->prim, start + bias, in svga_vbuf_render_draw_arrays()
355 SVGA_RETRY_CHECK(svga, svga_hwtnl_draw_range_elements(svga->hwtnl, &info, in svga_vbuf_render_draw_elements()
Dsvga_pipe_draw.c53 SVGA_RETRY(svga, svga_hwtnl_draw_range_elements(svga->hwtnl, info, draw, count)); in retry_draw_range_elements()
70 SVGA_RETRY_OOM(svga, ret, svga_hwtnl_draw_arrays(svga->hwtnl, prim, start, in retry_draw_arrays()
114 (svga->hwtnl, &range, in retry_draw_auto()
163 (svga->hwtnl, &range, in retry_draw_indirect()
314 svga_hwtnl_set_index_bias(svga->hwtnl, 0); in svga_draw_vbo()
324 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); in svga_draw_vbo()
331 svga_hwtnl_set_flatshade(svga->hwtnl, in svga_draw_vbo()
Dsvga_draw_private.h200 svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl, in svga_need_unfilled_fallback() argument
211 hwtnl->api_fillmode == PIPE_POLYGON_MODE_LINE) { in svga_need_unfilled_fallback()
224 svga_hwtnl_prim(struct svga_hwtnl *hwtnl,
235 svga_hwtnl_simple_draw_range_elements(struct svga_hwtnl *hwtnl,
Dsvga_state_vdecl.c123 svga_hwtnl_vertex_decls(svga->hwtnl, in emit_hw_vs_vdecl()
129 svga_hwtnl_vertex_buffers(svga->hwtnl, in emit_hw_vs_vdecl()
133 svga_hwtnl_set_index_bias( svga->hwtnl, -(int) neg_bias ); in emit_hw_vs_vdecl()
Dsvga_context.c97 svga_hwtnl_destroy(svga->hwtnl); in svga_destroy()
251 svga->hwtnl = svga_hwtnl_create(svga); in svga_context_create()
252 if (svga->hwtnl == NULL) in svga_context_create()
378 if (svga->hwtnl) in svga_context_create()
379 svga_hwtnl_destroy(svga->hwtnl); in svga_context_create()
520 SVGA_RETRY_OOM(svga, ret, svga_hwtnl_flush(svga->hwtnl)); in svga_hwtnl_flush_retry()
534 if (svga_hwtnl_is_buffer_referred(svga->hwtnl, buffer)) { in svga_hwtnl_flush_buffer()
Dsvga_state.c227 ret = svga_hwtnl_flush( svga->hwtnl ); in update_state()
Dsvga_context.h686 struct svga_hwtnl *hwtnl; member
Dsvga_resource_texture.c555 !svga_hwtnl_has_pending_prim(svga->hwtnl))) { in svga_texture_transfer_map()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_context.h212 nv30_state_validate(struct nv30_context *nv30, uint32_t mask, bool hwtnl);
Dnv30_state_validate.c464 nv30_state_validate(struct nv30_context *nv30, uint32_t mask, bool hwtnl) in nv30_state_validate() argument
475 if (hwtnl) { in nv30_state_validate()