/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_draw.c | 49 struct svga_hwtnl *hwtnl = CALLOC_STRUCT(svga_hwtnl); local 50 if (hwtnl == NULL) 53 hwtnl->svga = svga; 54 hwtnl->upload_ib = upload_ib; 56 hwtnl->cmd.swc = swc; 58 return hwtnl; 64 void svga_hwtnl_destroy( struct svga_hwtnl *hwtnl ) 70 pipe_resource_reference( &hwtnl->index_cache[i][j].buffer, 75 for (i = 0; i < hwtnl->cmd.vdecl_count; i++) 76 pipe_resource_reference(&hwtnl 86 svga_hwtnl_set_flatshade( struct svga_hwtnl *hwtnl, boolean flatshade, boolean flatshade_first ) argument 94 svga_hwtnl_set_unfilled( struct svga_hwtnl *hwtnl, unsigned mode ) argument 100 svga_hwtnl_reset_vdecl( struct svga_hwtnl *hwtnl, unsigned count ) argument 116 svga_hwtnl_vdecl( struct svga_hwtnl *hwtnl, unsigned i, const SVGA3dVertexDecl *decl, struct pipe_resource *vb) argument 136 svga_hwtnl_is_buffer_referred( struct svga_hwtnl *hwtnl, struct pipe_resource *buffer) argument 278 svga_hwtnl_set_index_bias( struct svga_hwtnl *hwtnl, int index_bias) argument 290 svga_hwtnl_prim( struct svga_hwtnl *hwtnl, const SVGA3dPrimitiveRange *range, unsigned min_index, unsigned max_index, struct pipe_resource *ib ) argument [all...] |
H A 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, [all...] |
H A D | svga_draw_arrays.c | 42 static enum pipe_error generate_indices( struct svga_hwtnl *hwtnl, argument 48 struct pipe_context *pipe = &hwtnl->svga->pipe; 94 static enum pipe_error retrieve_or_generate_indices( struct svga_hwtnl *hwtnl, argument 106 if (hwtnl->index_cache[prim][i].buffer != NULL && 107 hwtnl->index_cache[prim][i].generate == generate) 109 if (compare(hwtnl->index_cache[prim][i].gen_nr, gen_nr, gen_type)) 112 hwtnl->index_cache[prim][i].buffer ); 121 pipe_resource_reference( &hwtnl->index_cache[prim][i].buffer, 126 i, hwtnl->index_cache[prim][i].gen_nr); 139 if (hwtnl 188 simple_draw_arrays( struct svga_hwtnl *hwtnl, unsigned prim, unsigned start, unsigned count ) argument 225 svga_hwtnl_draw_arrays( struct svga_hwtnl *hwtnl, unsigned prim, unsigned start, unsigned count) argument [all...] |
H A D | svga_draw_elements.c | 41 translate_indices( struct svga_hwtnl *hwtnl, argument 49 struct pipe_context *pipe = &hwtnl->svga->pipe; 100 svga_hwtnl_simple_draw_range_elements( struct svga_hwtnl *hwtnl, argument 126 ret = u_upload_buffer( hwtnl->upload_ib, 150 ret = svga_hwtnl_prim( hwtnl, &range, min_index, max_index, index_buffer ); 165 svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, argument 177 if (hwtnl->api_fillmode != PIPE_POLYGON_MODE_FILL && 183 hwtnl->api_fillmode, 195 hwtnl->api_pv, 196 hwtnl [all...] |
H A D | svga_swtnl_backend.c | 187 ret = svga_hwtnl_flush(svga->hwtnl); 190 ret = svga_hwtnl_flush(svga->hwtnl); 196 svga_hwtnl_reset_vdecl(svga->hwtnl, svga_render->vdecl_count); 201 svga_hwtnl_vdecl( svga->hwtnl, 207 /* We have already taken care of flatshading, so let the hwtnl 211 svga_hwtnl_set_flatshade(svga->hwtnl, FALSE, FALSE); 212 svga_hwtnl_set_unfilled(svga->hwtnl, PIPE_POLYGON_MODE_FILL); 215 svga_hwtnl_set_flatshade( svga->hwtnl, 219 svga_hwtnl_set_unfilled( svga->hwtnl, 245 ret = svga_hwtnl_draw_arrays(svga->hwtnl, svga_rende [all...] |
H A D | svga_draw_private.h | 149 svga_hwtnl_prim( struct svga_hwtnl *hwtnl, 156 svga_hwtnl_simple_draw_range_elements( struct svga_hwtnl *hwtnl,
|
H A D | svga_context.c | 62 svga_hwtnl_destroy( svga->hwtnl ); 151 svga->hwtnl = svga_hwtnl_create( svga, 154 if (svga->hwtnl == NULL) 183 svga_hwtnl_destroy( svga->hwtnl ); 251 ret = svga_hwtnl_flush( svga->hwtnl ); 254 ret = svga_hwtnl_flush( svga->hwtnl ); 269 if (svga_hwtnl_is_buffer_referred(svga->hwtnl, buffer)) {
|
H A D | svga_state_vdecl.c | 56 svga_hwtnl_reset_vdecl( svga->hwtnl, 123 svga_hwtnl_vdecl( svga->hwtnl, 130 svga_hwtnl_set_index_bias( svga->hwtnl, -neg_bias ); 149 "hw vertex decl state (hwtnl version)",
|
H A D | svga_pipe_draw.c | 233 svga_hwtnl_set_unfilled( svga->hwtnl, 236 svga_hwtnl_set_flatshade( svga->hwtnl, 249 ret = svga_hwtnl_draw_range_elements( svga->hwtnl, 284 svga_hwtnl_set_unfilled( svga->hwtnl, 287 svga_hwtnl_set_flatshade( svga->hwtnl, 300 ret = svga_hwtnl_draw_arrays( svga->hwtnl, prim, 373 /* Avoid leaking the previous hwtnl bias to swtnl */ 374 svga_hwtnl_set_index_bias( svga->hwtnl, 0 );
|
H A D | svga_state.c | 130 ret = svga_hwtnl_flush( svga->hwtnl );
|
H A D | svga_context.h | 366 struct svga_hwtnl *hwtnl; member in struct:svga_context
|
/external/mesa3d/src/gallium/drivers/nv30/ |
H A D | nv30_context.h | 193 nv30_state_validate(struct nv30_context *nv30, boolean hwtnl);
|
H A D | nv30_state_validate.c | 459 nv30_state_validate(struct nv30_context *nv30, boolean hwtnl) argument 470 if (hwtnl) {
|