/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_draw.c | 51 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 …]
|
D | svga_draw_arrays.c | 43 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 …]
|
D | svga_draw.h | 42 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, 66 svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl, 76 svga_hwtnl_is_buffer_referred(struct svga_hwtnl *hwtnl, 79 enum pipe_error svga_hwtnl_flush(struct svga_hwtnl *hwtnl); 81 void svga_hwtnl_set_index_bias(struct svga_hwtnl *hwtnl, int index_bias);
|
D | svga_draw_elements.c | 62 translate_indices(struct svga_hwtnl *hwtnl, struct pipe_resource *src, in translate_indices() argument 69 struct pipe_context *pipe = &hwtnl->svga->pipe; in translate_indices() 150 svga_hwtnl_simple_draw_range_elements(struct svga_hwtnl *hwtnl, in svga_hwtnl_simple_draw_range_elements() argument 175 return svga_hwtnl_prim(hwtnl, &range, count, in svga_hwtnl_simple_draw_range_elements() 182 svga_hwtnl_draw_range_elements(struct svga_hwtnl *hwtnl, in svga_hwtnl_draw_range_elements() argument 195 SVGA_STATS_TIME_PUSH(svga_sws(hwtnl->svga), in svga_hwtnl_draw_range_elements() 198 if (svga_need_unfilled_fallback(hwtnl, prim)) { in svga_hwtnl_draw_range_elements() 202 hwtnl->api_fillmode, in svga_hwtnl_draw_range_elements() 211 hwtnl->api_pv, in svga_hwtnl_draw_range_elements() 212 hwtnl->hw_pv, in svga_hwtnl_draw_range_elements() [all …]
|
D | svga_draw_private.h | 191 svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl, in svga_need_unfilled_fallback() argument 194 const struct svga_context *svga = hwtnl->svga; in svga_need_unfilled_fallback() 206 hwtnl->api_fillmode == PIPE_POLYGON_MODE_LINE) { in svga_need_unfilled_fallback() 214 return hwtnl->api_fillmode == PIPE_POLYGON_MODE_POINT; in svga_need_unfilled_fallback() 217 return hwtnl->api_fillmode != PIPE_POLYGON_MODE_FILL; in svga_need_unfilled_fallback() 223 svga_hwtnl_prim(struct svga_hwtnl *hwtnl, 232 svga_hwtnl_simple_draw_range_elements(struct svga_hwtnl *hwtnl,
|
D | svga_swtnl_backend.c | 231 ret = svga_hwtnl_flush(svga->hwtnl); in svga_vbuf_submit_state() 234 ret = svga_hwtnl_flush(svga->hwtnl); in svga_vbuf_submit_state() 244 svga_hwtnl_vertex_decls(svga->hwtnl, in svga_vbuf_submit_state() 257 svga_hwtnl_vertex_buffers(svga->hwtnl, 1, &vb); in svga_vbuf_submit_state() 264 svga_hwtnl_set_flatshade(svga->hwtnl, FALSE, FALSE); in svga_vbuf_submit_state() 265 svga_hwtnl_set_fillmode(svga->hwtnl, PIPE_POLYGON_MODE_FILL); in svga_vbuf_submit_state() 268 svga_hwtnl_set_flatshade(svga->hwtnl, in svga_vbuf_submit_state() 273 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); in svga_vbuf_submit_state() 305 ret = svga_hwtnl_draw_arrays(svga->hwtnl, svga_render->prim, start + bias, in svga_vbuf_render_draw_arrays() 309 ret = svga_hwtnl_draw_arrays(svga->hwtnl, svga_render->prim, in svga_vbuf_render_draw_arrays() [all …]
|
D | svga_pipe_draw.c | 75 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); in retry_draw_range_elements() 84 svga_hwtnl_set_flatshade(svga->hwtnl, in retry_draw_range_elements() 89 ret = svga_hwtnl_draw_range_elements( svga->hwtnl, in retry_draw_range_elements() 127 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); in retry_draw_arrays() 136 svga_hwtnl_set_flatshade(svga->hwtnl, in retry_draw_arrays() 141 ret = svga_hwtnl_draw_arrays(svga->hwtnl, prim, start, count, in retry_draw_arrays() 260 svga_hwtnl_set_index_bias( svga->hwtnl, 0 ); in svga_draw_vbo()
|
D | svga_context.c | 96 svga_hwtnl_destroy(svga->hwtnl); in svga_destroy() 220 svga->hwtnl = svga_hwtnl_create(svga); in svga_context_create() 221 if (svga->hwtnl == NULL) in svga_context_create() 315 if (svga->hwtnl) in svga_context_create() 316 svga_hwtnl_destroy(svga->hwtnl); in svga_context_create() 443 ret = svga_hwtnl_flush(svga->hwtnl); in svga_hwtnl_flush_retry() 446 ret = svga_hwtnl_flush(svga->hwtnl); in svga_hwtnl_flush_retry() 462 if (svga_hwtnl_is_buffer_referred(svga->hwtnl, buffer)) { in svga_hwtnl_flush_buffer()
|
D | svga_state_vdecl.c | 123 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()
|
D | svga_state.c | 138 ret = svga_hwtnl_flush( svga->hwtnl ); in update_state()
|
D | svga_context.h | 528 struct svga_hwtnl *hwtnl; member
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_context.h | 207 nv30_state_validate(struct nv30_context *nv30, uint32_t mask, bool hwtnl);
|
D | nv30_state_validate.c | 464 nv30_state_validate(struct nv30_context *nv30, uint32_t mask, bool hwtnl) in nv30_state_validate() argument 475 if (hwtnl) { in nv30_state_validate()
|