/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_draw.c | 49 struct svga_hwtnl *hwtnl = CALLOC_STRUCT(svga_hwtnl); in svga_hwtnl_create() local 50 if (hwtnl == NULL) in svga_hwtnl_create() 53 hwtnl->svga = svga; in svga_hwtnl_create() 54 hwtnl->upload_ib = upload_ib; in svga_hwtnl_create() 56 hwtnl->cmd.swc = swc; in svga_hwtnl_create() 58 return hwtnl; in svga_hwtnl_create() 64 void svga_hwtnl_destroy( struct svga_hwtnl *hwtnl ) in svga_hwtnl_destroy() argument 70 pipe_resource_reference( &hwtnl->index_cache[i][j].buffer, in svga_hwtnl_destroy() 75 for (i = 0; i < hwtnl->cmd.vdecl_count; i++) in svga_hwtnl_destroy() 76 pipe_resource_reference(&hwtnl->cmd.vdecl_vb[i], NULL); in svga_hwtnl_destroy() [all …]
|
D | svga_draw_arrays.c | 42 static enum pipe_error generate_indices( struct svga_hwtnl *hwtnl, in generate_indices() argument 48 struct pipe_context *pipe = &hwtnl->svga->pipe; in generate_indices() 94 static enum pipe_error retrieve_or_generate_indices( struct svga_hwtnl *hwtnl, in retrieve_or_generate_indices() argument 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() 109 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) in retrieve_or_generate_indices() 112 hwtnl->index_cache[prim][i].buffer ); in retrieve_or_generate_indices() 121 pipe_resource_reference( &hwtnl->index_cache[prim][i].buffer, in retrieve_or_generate_indices() 126 i, hwtnl->index_cache[prim][i].gen_nr); in retrieve_or_generate_indices() 139 if (hwtnl->index_cache[prim][i].buffer == NULL) in retrieve_or_generate_indices() [all …]
|
D | svga_draw.h | 44 void svga_hwtnl_destroy( struct svga_hwtnl *hwtnl ); 46 void svga_hwtnl_set_flatshade( struct svga_hwtnl *hwtnl, 50 void svga_hwtnl_set_unfilled( struct svga_hwtnl *hwtnl, 53 void svga_hwtnl_vdecl( struct svga_hwtnl *hwtnl, 58 void svga_hwtnl_reset_vdecl( struct svga_hwtnl *hwtnl, 63 svga_hwtnl_draw_arrays( struct svga_hwtnl *hwtnl, 69 svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, 80 svga_hwtnl_is_buffer_referred( struct svga_hwtnl *hwtnl, 84 svga_hwtnl_flush( struct svga_hwtnl *hwtnl ); 86 void svga_hwtnl_set_index_bias( struct svga_hwtnl *hwtnl,
|
D | svga_draw_elements.c | 41 translate_indices( struct svga_hwtnl *hwtnl, in translate_indices() argument 49 struct pipe_context *pipe = &hwtnl->svga->pipe; in translate_indices() 100 svga_hwtnl_simple_draw_range_elements( struct svga_hwtnl *hwtnl, in svga_hwtnl_simple_draw_range_elements() argument 126 ret = u_upload_buffer( hwtnl->upload_ib, in svga_hwtnl_simple_draw_range_elements() 150 ret = svga_hwtnl_prim( hwtnl, &range, min_index, max_index, index_buffer ); in svga_hwtnl_simple_draw_range_elements() 165 svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, in svga_hwtnl_draw_range_elements() argument 177 if (hwtnl->api_fillmode != PIPE_POLYGON_MODE_FILL && in svga_hwtnl_draw_range_elements() 183 hwtnl->api_fillmode, in svga_hwtnl_draw_range_elements() 195 hwtnl->api_pv, in svga_hwtnl_draw_range_elements() 196 hwtnl->hw_pv, in svga_hwtnl_draw_range_elements() [all …]
|
D | svga_swtnl_backend.c | 187 ret = svga_hwtnl_flush(svga->hwtnl); in svga_vbuf_submit_state() 190 ret = svga_hwtnl_flush(svga->hwtnl); in svga_vbuf_submit_state() 196 svga_hwtnl_reset_vdecl(svga->hwtnl, svga_render->vdecl_count); in svga_vbuf_submit_state() 201 svga_hwtnl_vdecl( svga->hwtnl, in svga_vbuf_submit_state() 211 svga_hwtnl_set_flatshade(svga->hwtnl, FALSE, FALSE); in svga_vbuf_submit_state() 212 svga_hwtnl_set_unfilled(svga->hwtnl, PIPE_POLYGON_MODE_FILL); in svga_vbuf_submit_state() 215 svga_hwtnl_set_flatshade( svga->hwtnl, in svga_vbuf_submit_state() 219 svga_hwtnl_set_unfilled( svga->hwtnl, in svga_vbuf_submit_state() 245 ret = svga_hwtnl_draw_arrays(svga->hwtnl, svga_render->prim, start + bias, nr); in svga_vbuf_render_draw_arrays() 248 ret = svga_hwtnl_draw_arrays(svga->hwtnl, svga_render->prim, start + bias, nr); in svga_vbuf_render_draw_arrays() [all …]
|
D | svga_context.c | 62 svga_hwtnl_destroy( svga->hwtnl ); in svga_destroy() 151 svga->hwtnl = svga_hwtnl_create( svga, in svga_context_create() 154 if (svga->hwtnl == NULL) in svga_context_create() 183 svga_hwtnl_destroy( svga->hwtnl ); in svga_context_create() 251 ret = svga_hwtnl_flush( svga->hwtnl ); in svga_hwtnl_flush_retry() 254 ret = svga_hwtnl_flush( svga->hwtnl ); in svga_hwtnl_flush_retry() 269 if (svga_hwtnl_is_buffer_referred(svga->hwtnl, buffer)) { in svga_hwtnl_flush_buffer()
|
D | svga_pipe_draw.c | 233 svga_hwtnl_set_unfilled( svga->hwtnl, in retry_draw_range_elements() 236 svga_hwtnl_set_flatshade( svga->hwtnl, in retry_draw_range_elements() 249 ret = svga_hwtnl_draw_range_elements( svga->hwtnl, in retry_draw_range_elements() 284 svga_hwtnl_set_unfilled( svga->hwtnl, in retry_draw_arrays() 287 svga_hwtnl_set_flatshade( svga->hwtnl, in retry_draw_arrays() 300 ret = svga_hwtnl_draw_arrays( svga->hwtnl, prim, in retry_draw_arrays() 374 svga_hwtnl_set_index_bias( svga->hwtnl, 0 ); in svga_draw_vbo()
|
D | svga_state_vdecl.c | 56 svga_hwtnl_reset_vdecl( svga->hwtnl, in emit_hw_vs_vdecl() 123 svga_hwtnl_vdecl( svga->hwtnl, in emit_hw_vs_vdecl() 130 svga_hwtnl_set_index_bias( svga->hwtnl, -neg_bias ); in emit_hw_vs_vdecl()
|
D | svga_draw_private.h | 149 svga_hwtnl_prim( struct svga_hwtnl *hwtnl, 156 svga_hwtnl_simple_draw_range_elements( struct svga_hwtnl *hwtnl,
|
D | svga_state.c | 130 ret = svga_hwtnl_flush( svga->hwtnl ); in update_state()
|
D | svga_context.h | 366 struct svga_hwtnl *hwtnl; member
|
/external/mesa3d/src/gallium/drivers/nv30/ |
D | nv30_context.h | 193 nv30_state_validate(struct nv30_context *nv30, boolean hwtnl);
|
D | nv30_state_validate.c | 459 nv30_state_validate(struct nv30_context *nv30, boolean hwtnl) in nv30_state_validate() argument 470 if (hwtnl) { in nv30_state_validate()
|