Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/drivers/svga/
H A 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 in retrieve_or_generate_indices()
176 simple_draw_arrays(struct svga_hwtnl *hwtnl, enum pipe_prim_type prim, unsigned start, unsigned count, unsigned start_instance, unsigned instance_count, ubyte vertices_per_patch) simple_draw_arrays() argument
210 svga_hwtnl_draw_arrays(struct svga_hwtnl *hwtnl, enum pipe_prim_type prim, unsigned start, unsigned count, unsigned start_instance, unsigned instance_count, ubyte vertices_per_patch) svga_hwtnl_draw_arrays() argument
[all...]
H A 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 in svga_hwtnl_destroy()
88 svga_hwtnl_set_flatshade(struct svga_hwtnl *hwtnl, boolean flatshade, boolean flatshade_first) svga_hwtnl_set_flatshade() argument
109 svga_hwtnl_set_fillmode(struct svga_hwtnl *hwtnl, unsigned mode) svga_hwtnl_set_fillmode() argument
116 svga_hwtnl_vertex_decls(struct svga_hwtnl *hwtnl, unsigned count, const SVGA3dVertexDecl * decls, const unsigned *buffer_indexes, SVGA3dElementLayoutId layout_id) svga_hwtnl_vertex_decls() argument
135 svga_hwtnl_vertex_buffers(struct svga_hwtnl *hwtnl, unsigned count, struct pipe_vertex_buffer *buffers) svga_hwtnl_vertex_buffers() argument
161 svga_hwtnl_is_buffer_referred(struct svga_hwtnl *hwtnl, struct pipe_resource *buffer) svga_hwtnl_is_buffer_referred() argument
191 draw_vgpu9(struct svga_hwtnl *hwtnl) draw_vgpu9() argument
666 validate_vertex_buffers(struct svga_hwtnl *hwtnl, const struct pipe_stream_output_target *so_vertex_count) validate_vertex_buffers() argument
928 validate_index_buffer(struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, struct pipe_resource *ib) validate_index_buffer() argument
997 draw_vgpu10(struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, unsigned vcount, unsigned min_index, unsigned max_index, struct pipe_resource *ib, unsigned start_instance, unsigned instance_count, const struct pipe_draw_indirect_info *indirect, const struct pipe_stream_output_target *so_vertex_count) draw_vgpu10() argument
1175 svga_hwtnl_flush(struct svga_hwtnl *hwtnl) svga_hwtnl_flush() argument
1192 svga_hwtnl_set_index_bias(struct svga_hwtnl *hwtnl, int index_bias) svga_hwtnl_set_index_bias() argument
1207 check_draw_params(struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, unsigned min_index, unsigned max_index, struct pipe_resource *ib) check_draw_params() argument
1356 svga_hwtnl_prim(struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, unsigned vcount, unsigned min_index, unsigned max_index, struct pipe_resource *ib, unsigned start_instance, unsigned instance_count, const struct pipe_draw_indirect_info *indirect, const struct pipe_stream_output_target *so_vertex_count) svga_hwtnl_prim() argument
1414 svga_hwtnl_has_pending_prim(struct svga_hwtnl *hwtnl) svga_hwtnl_has_pending_prim() argument
[all...]
H A 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, in
[all...]
H A 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 in svga_hwtnl_draw_range_elements()
[all...]
H A 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()
259 /* We have already taken care of flatshading, so let the hwtnl 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, in svga_vbuf_render_draw_elements()
[all...]
H A 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()
313 /* Avoid leaking the previous hwtnl bias to swtnl */ in svga_draw_vbo()
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()
H A 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,
H A 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()
152 "hw vertex decl state (hwtnl version)",
H A 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()
H A Dsvga_state.c227 ret = svga_hwtnl_flush( svga->hwtnl ); in update_state()
H A Dsvga_context.h686 struct svga_hwtnl *hwtnl; member
H A Dsvga_resource_texture.c555 !svga_hwtnl_has_pending_prim(svga->hwtnl))) { in svga_texture_transfer_map()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_context.h212 nv30_state_validate(struct nv30_context *nv30, uint32_t mask, bool hwtnl);
H A 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()

Completed in 10 milliseconds