/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_clear.c | 54 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 56 if (!llvmpipe_check_render_cond(llvmpipe)) 62 lp_setup_clear( llvmpipe->setup, color, depth, stencil, buffers );
|
H A D | lp_state_derived.c | 49 compute_vertex_info(struct llvmpipe_context *llvmpipe) argument 51 const struct tgsi_shader_info *fsInfo = &llvmpipe->fs->info.base; 52 struct vertex_info *vinfo = &llvmpipe->vertex_info; 56 draw_prepare_shader_outputs(llvmpipe->draw); 63 llvmpipe->color_slot[0] = -1; 64 llvmpipe->color_slot[1] = -1; 65 llvmpipe->bcolor_slot[0] = -1; 66 llvmpipe->bcolor_slot[1] = -1; 67 llvmpipe->viewport_index_slot = -1; 68 llvmpipe [all...] |
H A D | lp_state_gs.c | 46 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 55 debug_printf("llvmpipe: Create geometry shader %p:\n", (void *)state); 64 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); 82 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 84 llvmpipe->gs = (struct lp_geometry_shader *)gs; 86 draw_bind_geometry_shader(llvmpipe->draw, 87 (llvmpipe->gs ? llvmpipe->gs->dgs : NULL)); 89 llvmpipe->dirty |= LP_NEW_GS; 96 struct llvmpipe_context *llvmpipe local 111 llvmpipe_init_gs_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_state_vs.c | 45 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 48 vs = draw_create_vertex_shader(llvmpipe->draw, templ); 54 debug_printf("llvmpipe: Create vertex shader %p:\n", (void *) vs); 65 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 68 if (llvmpipe->vs == vs) 71 draw_bind_vertex_shader(llvmpipe->draw, vs); 73 llvmpipe->vs = vs; 75 llvmpipe->dirty |= LP_NEW_VS; 82 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 85 draw_delete_vertex_shader(llvmpipe 91 llvmpipe_init_vs_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_context.c | 56 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); local 61 if (llvmpipe->blitter) { 62 util_blitter_destroy(llvmpipe->blitter); 65 /* This will also destroy llvmpipe->setup: 67 if (llvmpipe->draw) 68 draw_destroy( llvmpipe->draw ); 71 pipe_surface_reference(&llvmpipe->framebuffer.cbufs[i], NULL); 74 pipe_surface_reference(&llvmpipe->framebuffer.zsbuf, NULL); 76 for (i = 0; i < ARRAY_SIZE(llvmpipe->sampler_views[0]); i++) { 77 pipe_sampler_view_reference(&llvmpipe 123 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); local 134 struct llvmpipe_context *llvmpipe; local [all...] |
H A D | lp_draw_arrays.c | 163 llvmpipe_init_draw_funcs(struct llvmpipe_context *llvmpipe) argument 165 llvmpipe->pipe.draw_vbo = llvmpipe_draw_vbo;
|
H A D | lp_flush.c | 51 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 53 draw_flush(llvmpipe->draw); 56 lp_setup_flush(llvmpipe->setup, fence, reason); 64 for (i = 0; i < llvmpipe->framebuffer.nr_cbufs; i++) { 66 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.cbufs[i]); 71 debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.zsbuf);
|
H A D | lp_state_clip.c | 39 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 42 draw_set_clip_state(llvmpipe->draw, clip); 52 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 55 draw_set_viewport_states(llvmpipe->draw, start_slot, num_viewports, 58 memcpy(llvmpipe->viewports + start_slot, viewports, 60 llvmpipe->dirty |= LP_NEW_VIEWPORT; 70 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 72 draw_flush(llvmpipe->draw); 77 memcpy(llvmpipe->scissors + start_slot, scissors, 80 llvmpipe 88 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 99 llvmpipe_init_clip_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_state_rasterizer.c | 104 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 109 llvmpipe->rasterizer = &state->lp_state; 110 draw_set_rasterizer_state(llvmpipe->draw, &state->draw_state, handle); 114 lp_setup_set_triangle_state( llvmpipe->setup, 120 lp_setup_set_flatshade_first( llvmpipe->setup, 122 lp_setup_set_line_state( llvmpipe->setup, 124 lp_setup_set_point_state( llvmpipe->setup, 131 llvmpipe->rasterizer = NULL; 132 draw_set_rasterizer_state(llvmpipe->draw, NULL, handle); 135 llvmpipe 149 llvmpipe_init_rasterizer_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_state_so.c | 69 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 82 pipe_so_target_reference((struct pipe_stream_output_target **)&llvmpipe->so_targets[i], targets[i]); 85 if (!append && llvmpipe->so_targets[i]) { 86 llvmpipe->so_targets[i]->internal_offset = offsets[i]; 90 for (; i < llvmpipe->num_so_targets; i++) { 91 pipe_so_target_reference((struct pipe_stream_output_target **)&llvmpipe->so_targets[i], NULL); 93 llvmpipe->num_so_targets = num_targets;
|
H A D | lp_state_vertex.c | 60 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 63 llvmpipe->velems = lp_velems; 65 llvmpipe->dirty |= LP_NEW_VERTEX; 68 draw_set_vertex_elements(llvmpipe->draw, lp_velems->count, lp_velems->velem); 82 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 86 util_set_vertex_buffers_count(llvmpipe->vertex_buffer, 87 &llvmpipe->num_vertex_buffers, 90 llvmpipe->dirty |= LP_NEW_VERTEX; 92 draw_set_vertex_buffers(llvmpipe->draw, start_slot, count, buffers); 100 struct llvmpipe_context *llvmpipe local 109 llvmpipe_init_vertex_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_state_blend.c | 64 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 66 if (llvmpipe->blend == blend) 69 draw_flush(llvmpipe->draw); 71 llvmpipe->blend = blend; 73 llvmpipe->dirty |= LP_NEW_BLEND; 88 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 93 if(memcmp(&llvmpipe->blend_color, blend_color, sizeof *blend_color) == 0) 96 draw_flush(llvmpipe->draw); 98 memcpy(&llvmpipe->blend_color, blend_color, sizeof *blend_color); 100 llvmpipe 136 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 160 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 180 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 190 llvmpipe_init_blend_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_query.c | 190 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); local 204 lp_setup_begin_query(llvmpipe->setup, pq); 208 pq->num_primitives_written = llvmpipe->so_stats.num_primitives_written; 211 pq->num_primitives_generated = llvmpipe->so_stats.primitives_storage_needed; 214 pq->num_primitives_written = llvmpipe->so_stats.num_primitives_written; 215 pq->num_primitives_generated = llvmpipe->so_stats.primitives_storage_needed; 218 pq->num_primitives_written = llvmpipe->so_stats.num_primitives_written; 219 pq->num_primitives_generated = llvmpipe->so_stats.primitives_storage_needed; 223 if (llvmpipe->active_statistics_queries == 0) { 224 memset(&llvmpipe 245 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); local [all...] |
H A D | lp_setup_vbuf.c | 29 * Interface between 'draw' module's output and the llvmpipe rasterizer/setup 562 struct llvmpipe_context *llvmpipe = llvmpipe_context(setup->pipe); local 564 llvmpipe->pipeline_statistics.ia_vertices += 566 llvmpipe->pipeline_statistics.ia_primitives += 568 llvmpipe->pipeline_statistics.vs_invocations += 570 llvmpipe->pipeline_statistics.gs_invocations += 572 llvmpipe->pipeline_statistics.gs_primitives += 574 if (!llvmpipe_rasterization_disabled(llvmpipe)) { 575 llvmpipe->pipeline_statistics.c_invocations += 578 llvmpipe [all...] |
H A D | lp_state_sampler.c | 74 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 78 assert(start + num <= ARRAY_SIZE(llvmpipe->samplers[shader])); 80 draw_flush(llvmpipe->draw); 84 llvmpipe->samplers[shader][start + i] = samplers[i]; 89 unsigned j = MAX2(llvmpipe->num_samplers[shader], start + num); 90 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) 92 llvmpipe->num_samplers[shader] = j; 96 draw_set_samplers(llvmpipe->draw, 98 llvmpipe->samplers[shader], 99 llvmpipe 114 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 367 llvmpipe_init_sampler_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |
H A D | lp_surface.c | 77 debug_printf("llvmpipe: color resolve unimplemented\n"); 86 debug_printf("llvmpipe: blit unsupported %s -> %s\n", 180 * where it would happen. For llvmpipe, nothing to do. 196 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 198 if (render_condition_enabled && !llvmpipe_check_render_cond(llvmpipe)) 216 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 218 if (render_condition_enabled && !llvmpipe_check_render_cond(llvmpipe))
|
H A D | lp_texture.c | 512 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 550 for (i = 0; i < ARRAY_SIZE(llvmpipe->constants[PIPE_SHADER_FRAGMENT]); ++i) { 551 if (resource == llvmpipe->constants[PIPE_SHADER_FRAGMENT][i].buffer) { 553 llvmpipe->dirty |= LP_NEW_FS_CONSTANTS; 631 * where it would happen. For llvmpipe, nothing to do. 643 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); local 649 return lp_setup_is_resource_referenced(llvmpipe->setup, presource); 654 * Returns the largest possible alignment for a format in llvmpipe
|
H A D | lp_state_fs.c | 2761 debug_printf("llvmpipe: Fragment shader #%u variant #%u:\n", 2879 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 2898 shader->draw_data = draw_create_fragment_shader(llvmpipe->draw, templ); 2951 debug_printf("llvmpipe: Create fragment shader #%u %p:\n", 2974 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 2976 if (llvmpipe->fs == fs) 2979 llvmpipe->fs = (struct lp_fragment_shader *) fs; 2981 draw_bind_fragment_shader(llvmpipe->draw, 2982 (llvmpipe->fs ? llvmpipe 3024 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 3060 struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe); local 3430 llvmpipe_init_fs_funcs(struct llvmpipe_context *llvmpipe) argument [all...] |