Searched defs:softpipe (Results 1 - 25 of 40) sorted by last modified time

12

/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_clear.c52 struct softpipe_context *softpipe = softpipe_context(pipe); local
56 if (softpipe->no_rast)
59 if (!softpipe_check_render_cond(softpipe))
63 softpipe_update_derived(softpipe, PIPE_PRIM_TRIANGLES); /* not needed?? */
67 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) {
68 sp_tile_cache_clear(softpipe->cbuf_cache[i], color, 0);
74 struct pipe_surface *ps = softpipe->framebuffer.zsbuf;
77 sp_tile_cache_clear(softpipe->zsbuf_cache, &zero, cv);
80 softpipe->dirty_render_cache = TRUE;
H A Dsp_context.c91 struct softpipe_context *softpipe = softpipe_context( pipe ); local
95 if (softpipe->pstipple.sampler)
96 pipe->delete_sampler_state(pipe, softpipe->pstipple.sampler);
98 pipe_resource_reference(&softpipe->pstipple.texture, NULL);
99 pipe_sampler_view_reference(&softpipe->pstipple.sampler_view, NULL);
102 if (softpipe->draw)
103 draw_destroy( softpipe->draw );
105 if (softpipe->quad.shade)
106 softpipe->quad.shade->destroy( softpipe
163 struct softpipe_context *softpipe = softpipe_context( pipe ); local
203 struct softpipe_context *softpipe = softpipe_context( pipe ); local
216 struct softpipe_context *softpipe = CALLOC_STRUCT(softpipe_context); local
[all...]
H A Dsp_flush.c49 struct softpipe_context *softpipe = softpipe_context(pipe); local
52 draw_flush(softpipe->draw);
57 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) {
58 for (i = 0; i < softpipe->num_sampler_views[sh]; i++) {
59 sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]);
69 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++)
70 if (softpipe->cbuf_cache[i])
71 sp_flush_tile_cache(softpipe->cbuf_cache[i]);
73 if (softpipe->zsbuf_cache)
74 sp_flush_tile_cache(softpipe
[all...]
H A Dsp_fs_exec.c193 softpipe_create_fs_variant_exec(struct softpipe_context *softpipe, argument
H A Dsp_prim_vbuf.c29 * Interface between 'draw' module's output and the softpipe rasterizer/setup
60 struct softpipe_context *softpipe; member in struct:softpipe_vbuf_render
84 return softpipe_get_vbuf_vertex_info(cvbr->softpipe);
143 cvbr->softpipe->reduced_prim = u_reduced_prim(prim);
163 struct softpipe_context *softpipe = cvbr->softpipe; local
164 const unsigned stride = softpipe->vertex_info_vbuf.size * sizeof(float);
167 const boolean flatshade_first = softpipe->rasterizer->flatshade_first;
359 struct softpipe_context *softpipe = cvbr->softpipe; local
549 struct softpipe_context *softpipe = cvbr->softpipe; local
[all...]
H A Dsp_quad_blend.c154 struct softpipe_context *softpipe = qs->softpipe; local
175 switch (softpipe->blend->logicop_func) {
271 struct softpipe_context *softpipe = qs->softpipe; local
278 switch (softpipe->blend->rt[blend_index].rgb_src_factor) {
449 switch (softpipe->blend->rt[blend_index].alpha_src_factor) {
541 switch (softpipe->blend->rt[blend_index].rgb_dst_factor) {
701 switch (softpipe->blend->rt[blend_index].alpha_dst_factor) {
778 switch (softpipe
923 struct softpipe_context *softpipe = qs->softpipe; local
1221 struct softpipe_context *softpipe = qs->softpipe; local
[all...]
H A Dsp_quad_depth_test.c528 struct softpipe_context *softpipe = qs->softpipe; local
532 switch (softpipe->depth_stencil->depth.func) {
590 if (softpipe->depth_stencil->depth.writemask) {
612 struct softpipe_context *softpipe = qs->softpipe; local
617 if (!softpipe->depth_stencil->stencil[1].enabled) {
627 func = softpipe->depth_stencil->stencil[face].func;
628 failOp = softpipe->depth_stencil->stencil[face].fail_op;
629 zFailOp = softpipe
973 sp_quad_depth_test_stage(struct softpipe_context *softpipe) argument
[all...]
H A Dsp_quad_fs.c73 struct softpipe_context *softpipe = qs->softpipe; local
74 struct tgsi_exec_machine *machine = softpipe->fs_machine;
77 machine->flatshade_color = softpipe->rasterizer->flatshade ? TRUE : FALSE;
78 return softpipe->fs_variant->run( softpipe->fs_variant, machine, quad );
86 struct softpipe_context *softpipe = qs->softpipe; local
90 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) {
111 struct softpipe_context *softpipe local
[all...]
H A Dsp_quad_pipe.h45 struct softpipe_context *softpipe; member in struct:quad_stage
58 struct quad_stage *sp_quad_polygon_stipple_stage( struct softpipe_context *softpipe );
59 struct quad_stage *sp_quad_earlyz_stage( struct softpipe_context *softpipe );
60 struct quad_stage *sp_quad_shade_stage( struct softpipe_context *softpipe );
61 struct quad_stage *sp_quad_alpha_test_stage( struct softpipe_context *softpipe );
62 struct quad_stage *sp_quad_stencil_test_stage( struct softpipe_context *softpipe );
63 struct quad_stage *sp_quad_depth_test_stage( struct softpipe_context *softpipe );
64 struct quad_stage *sp_quad_occlusion_stage( struct softpipe_context *softpipe );
65 struct quad_stage *sp_quad_coverage_stage( struct softpipe_context *softpipe );
66 struct quad_stage *sp_quad_blend_stage( struct softpipe_context *softpipe );
[all...]
H A Dsp_quad_stipple.c23 struct softpipe_context *softpipe = qs->softpipe; local
34 const uint stipple0 = softpipe->poly_stipple.stipple[y0 % 32];
35 const uint stipple1 = softpipe->poly_stipple.stipple[y1 % 32];
71 sp_quad_polygon_stipple_stage( struct softpipe_context *softpipe )
75 stage->softpipe = softpipe;
H A Dsp_query.c85 struct softpipe_context *softpipe = softpipe_context( pipe ); local
90 sq->start = softpipe->occlusion_count;
100 softpipe->so_stats.num_primitives_written = 0;
104 softpipe->num_primitives_generated = 0;
113 softpipe->active_query_count++;
114 softpipe->dirty |= SP_NEW_QUERY;
121 struct softpipe_context *softpipe = softpipe_context( pipe ); local
124 softpipe->active_query_count--;
127 sq->end = softpipe->occlusion_count;
138 softpipe
[all...]
H A Dsp_setup.c76 struct softpipe_context *softpipe; member in struct:setup_context
130 const struct pipe_scissor_state *cliprect = &setup->softpipe->cliprect;
164 struct softpipe_context *sp = setup->softpipe;
205 struct quad_stage *pipe = setup->softpipe->quad.first;
293 if (setup->softpipe->rasterizer->flatshade_first)
383 (setup->softpipe->rasterizer->front_ccw));
397 if (setup->softpipe->rasterizer->gl_rasterization_rules) {
578 const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info;
586 (fsInfo->origin_lower_left ? setup->softpipe->framebuffer.height-1 : 0)
609 struct softpipe_context *softpipe local
949 struct softpipe_context *softpipe = setup->softpipe; local
1198 struct softpipe_context *softpipe = setup->softpipe; local
1439 sp_setup_create_context(struct softpipe_context *softpipe) argument
[all...]
H A Dsp_state_blend.c50 struct softpipe_context *softpipe = softpipe_context(pipe); local
52 draw_flush(softpipe->draw);
54 softpipe->blend = (struct pipe_blend_state *)blend;
56 softpipe->dirty |= SP_NEW_BLEND;
72 struct softpipe_context *softpipe = softpipe_context(pipe); local
75 draw_flush(softpipe->draw);
77 softpipe->blend_color = *blend_color;
81 softpipe->blend_color_clamped.color[i] =
84 softpipe->dirty |= SP_NEW_BLEND;
100 struct softpipe_context *softpipe local
119 struct softpipe_context *softpipe = softpipe_context(pipe); local
[all...]
H A Dsp_state_clip.c39 struct softpipe_context *softpipe = softpipe_context(pipe); local
42 draw_set_clip_state(softpipe->draw, clip);
50 struct softpipe_context *softpipe = softpipe_context(pipe); local
53 draw_set_viewport_state(softpipe->draw, viewport);
55 softpipe->viewport = *viewport; /* struct copy */
56 softpipe->dirty |= SP_NEW_VIEWPORT;
64 struct softpipe_context *softpipe = softpipe_context(pipe); local
66 draw_flush(softpipe->draw);
68 softpipe->scissor = *scissor; /* struct copy */
69 softpipe
77 struct softpipe_context *softpipe = softpipe_context(pipe); local
[all...]
H A Dsp_state_derived.c48 invalidate_vertex_layout(struct softpipe_context *softpipe) argument
50 softpipe->vertex_info.num_attribs = 0;
63 softpipe_get_vertex_info(struct softpipe_context *softpipe) argument
65 struct vertex_info *vinfo = &softpipe->vertex_info;
69 const struct tgsi_shader_info *fsInfo = &softpipe->fs_variant->info;
70 struct vertex_info *vinfo_vbuf = &softpipe->vertex_info_vbuf;
71 const uint num = draw_num_shader_outputs(softpipe->draw);
117 if (softpipe->rasterizer->flatshade)
126 src = draw_find_shader_output(softpipe->draw,
131 src = draw_find_shader_output(softpipe
166 softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe) argument
233 update_fragment_shader(struct softpipe_context *softpipe, unsigned prim) argument
282 update_polygon_stipple_pattern(struct softpipe_context *softpipe) argument
308 update_polygon_stipple_enable(struct softpipe_context *softpipe, unsigned prim) argument
333 softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim) argument
[all...]
H A Dsp_state_rasterizer.c48 struct softpipe_context *softpipe = softpipe_context(pipe); local
50 if (softpipe->rasterizer == rasterizer)
54 draw_set_rasterizer_state(softpipe->draw, rasterizer, rasterizer);
56 softpipe->rasterizer = rasterizer;
58 softpipe->dirty |= SP_NEW_RASTERIZER;
H A Dsp_state_sampler.c79 struct softpipe_context *softpipe = softpipe_context(pipe); local
83 assert(start + num <= Elements(softpipe->samplers[shader]));
86 if (start + num <= softpipe->num_samplers[shader] &&
87 !memcmp(softpipe->samplers[shader] + start, samplers,
92 draw_flush(softpipe->draw);
96 softpipe->samplers[shader][start + i] = samplers[i];
101 unsigned j = MAX2(softpipe->num_samplers[shader], start + num);
102 while (j > 0 && softpipe->samplers[shader][j - 1] == NULL)
104 softpipe->num_samplers[shader] = j;
108 draw_set_samplers(softpipe
180 struct softpipe_context *softpipe = softpipe_context(pipe); local
308 reset_sampler_variants(struct softpipe_context *softpipe, unsigned shader, unsigned tgsi_shader, int max_sampler) argument
332 softpipe_reset_sampler_variants(struct softpipe_context *softpipe) argument
[all...]
H A Dsp_state_shader.c49 create_fs_variant(struct softpipe_context *softpipe, argument
60 stipple_fs = util_pstipple_create_fragment_shader(&softpipe->pipe,
67 var = softpipe_create_fs_variant_exec(softpipe, curfs);
79 var->draw_shader = draw_create_fragment_shader(softpipe->draw,
124 struct softpipe_context *softpipe = softpipe_context(pipe); local
128 if (softpipe->dump_fs)
135 state->draw_shader = draw_create_fragment_shader(softpipe->draw,
150 struct softpipe_context *softpipe = softpipe_context(pipe); local
153 if (softpipe->fs == fs)
156 draw_flush(softpipe
178 struct softpipe_context *softpipe = softpipe_context(pipe); local
209 struct softpipe_context *softpipe = softpipe_context(pipe); local
243 struct softpipe_context *softpipe = softpipe_context(pipe); local
257 struct softpipe_context *softpipe = softpipe_context(pipe); local
271 struct softpipe_context *softpipe = softpipe_context(pipe); local
309 struct softpipe_context *softpipe = softpipe_context(pipe); local
323 struct softpipe_context *softpipe = softpipe_context(pipe); local
341 struct softpipe_context *softpipe = softpipe_context(pipe); local
[all...]
H A Dsp_state_so.c68 struct softpipe_context *softpipe = softpipe_context(pipe); local
72 pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], targets[i]);
75 for (; i < softpipe->num_so_targets; i++) {
76 pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], NULL);
79 softpipe->num_so_targets = num_targets;
H A Dsp_state_vertex.c61 struct softpipe_context *softpipe = softpipe_context(pipe); local
64 softpipe->velems = sp_velems;
66 softpipe->dirty |= SP_NEW_VERTEX;
69 draw_set_vertex_elements(softpipe->draw, sp_velems->count, sp_velems->velem);
85 struct softpipe_context *softpipe = softpipe_context(pipe); local
89 util_copy_vertex_buffers(softpipe->vertex_buffer,
90 &softpipe->num_vertex_buffers,
93 softpipe->dirty |= SP_NEW_VERTEX;
95 draw_set_vertex_buffers(softpipe->draw, count, buffers);
103 struct softpipe_context *softpipe local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
H A Dsp_clear.c52 struct softpipe_context *softpipe = softpipe_context(pipe); local
56 if (softpipe->no_rast)
59 if (!softpipe_check_render_cond(softpipe))
63 softpipe_update_derived(softpipe, PIPE_PRIM_TRIANGLES); /* not needed?? */
67 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) {
68 sp_tile_cache_clear(softpipe->cbuf_cache[i], color, 0);
74 struct pipe_surface *ps = softpipe->framebuffer.zsbuf;
77 sp_tile_cache_clear(softpipe->zsbuf_cache, &zero, cv);
80 softpipe->dirty_render_cache = TRUE;
H A Dsp_context.c91 struct softpipe_context *softpipe = softpipe_context( pipe ); local
95 if (softpipe->pstipple.sampler)
96 pipe->delete_sampler_state(pipe, softpipe->pstipple.sampler);
98 pipe_resource_reference(&softpipe->pstipple.texture, NULL);
99 pipe_sampler_view_reference(&softpipe->pstipple.sampler_view, NULL);
102 if (softpipe->draw)
103 draw_destroy( softpipe->draw );
105 if (softpipe->quad.shade)
106 softpipe->quad.shade->destroy( softpipe
163 struct softpipe_context *softpipe = softpipe_context( pipe ); local
203 struct softpipe_context *softpipe = softpipe_context( pipe ); local
216 struct softpipe_context *softpipe = CALLOC_STRUCT(softpipe_context); local
[all...]
H A Dsp_flush.c49 struct softpipe_context *softpipe = softpipe_context(pipe); local
52 draw_flush(softpipe->draw);
57 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) {
58 for (i = 0; i < softpipe->num_sampler_views[sh]; i++) {
59 sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]);
69 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++)
70 if (softpipe->cbuf_cache[i])
71 sp_flush_tile_cache(softpipe->cbuf_cache[i]);
73 if (softpipe->zsbuf_cache)
74 sp_flush_tile_cache(softpipe
[all...]
H A Dsp_fs_exec.c193 softpipe_create_fs_variant_exec(struct softpipe_context *softpipe, argument
H A Dsp_prim_vbuf.c29 * Interface between 'draw' module's output and the softpipe rasterizer/setup
60 struct softpipe_context *softpipe; member in struct:softpipe_vbuf_render
84 return softpipe_get_vbuf_vertex_info(cvbr->softpipe);
143 cvbr->softpipe->reduced_prim = u_reduced_prim(prim);
163 struct softpipe_context *softpipe = cvbr->softpipe; local
164 const unsigned stride = softpipe->vertex_info_vbuf.size * sizeof(float);
167 const boolean flatshade_first = softpipe->rasterizer->flatshade_first;
359 struct softpipe_context *softpipe = cvbr->softpipe; local
549 struct softpipe_context *softpipe = cvbr->softpipe; local
[all...]

Completed in 204 milliseconds

12