Home
last modified time | relevance | path

Searched refs:softpipe (Results 1 – 25 of 54) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_context.c91 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_destroy() local
95 if (softpipe->pstipple.sampler) in softpipe_destroy()
96 pipe->delete_sampler_state(pipe, softpipe->pstipple.sampler); in softpipe_destroy()
98 pipe_resource_reference(&softpipe->pstipple.texture, NULL); in softpipe_destroy()
99 pipe_sampler_view_reference(&softpipe->pstipple.sampler_view, NULL); in softpipe_destroy()
102 if (softpipe->draw) in softpipe_destroy()
103 draw_destroy( softpipe->draw ); in softpipe_destroy()
105 if (softpipe->quad.shade) in softpipe_destroy()
106 softpipe->quad.shade->destroy( softpipe->quad.shade ); in softpipe_destroy()
108 if (softpipe->quad.depth_test) in softpipe_destroy()
[all …]
Dsp_state_derived.c48 invalidate_vertex_layout(struct softpipe_context *softpipe) in invalidate_vertex_layout() argument
50 softpipe->vertex_info.num_attribs = 0; in invalidate_vertex_layout()
63 softpipe_get_vertex_info(struct softpipe_context *softpipe) in softpipe_get_vertex_info() argument
65 struct vertex_info *vinfo = &softpipe->vertex_info; in softpipe_get_vertex_info()
69 const struct tgsi_shader_info *fsInfo = &softpipe->fs_variant->info; in softpipe_get_vertex_info()
70 struct vertex_info *vinfo_vbuf = &softpipe->vertex_info_vbuf; in softpipe_get_vertex_info()
71 const uint num = draw_num_shader_outputs(softpipe->draw); in softpipe_get_vertex_info()
117 if (softpipe->rasterizer->flatshade) in softpipe_get_vertex_info()
126 src = draw_find_shader_output(softpipe->draw, in softpipe_get_vertex_info()
131 src = draw_find_shader_output(softpipe->draw, in softpipe_get_vertex_info()
[all …]
Dsp_state_shader.c49 create_fs_variant(struct softpipe_context *softpipe, in create_fs_variant() argument
60 stipple_fs = util_pstipple_create_fragment_shader(&softpipe->pipe, in create_fs_variant()
67 var = softpipe_create_fs_variant_exec(softpipe, curfs); in create_fs_variant()
79 var->draw_shader = draw_create_fragment_shader(softpipe->draw, in create_fs_variant()
124 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_create_fs_state() local
128 if (softpipe->dump_fs) in softpipe_create_fs_state()
135 state->draw_shader = draw_create_fragment_shader(softpipe->draw, in softpipe_create_fs_state()
150 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_fs_state() local
153 if (softpipe->fs == fs) in softpipe_bind_fs_state()
156 draw_flush(softpipe->draw); in softpipe_bind_fs_state()
[all …]
Dsp_state_sampler.c79 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_sampler_states() local
83 assert(start + num <= Elements(softpipe->samplers[shader])); in softpipe_bind_sampler_states()
86 if (start + num <= softpipe->num_samplers[shader] && in softpipe_bind_sampler_states()
87 !memcmp(softpipe->samplers[shader] + start, samplers, in softpipe_bind_sampler_states()
92 draw_flush(softpipe->draw); in softpipe_bind_sampler_states()
96 softpipe->samplers[shader][start + i] = samplers[i]; in softpipe_bind_sampler_states()
101 unsigned j = MAX2(softpipe->num_samplers[shader], start + num); in softpipe_bind_sampler_states()
102 while (j > 0 && softpipe->samplers[shader][j - 1] == NULL) in softpipe_bind_sampler_states()
104 softpipe->num_samplers[shader] = j; in softpipe_bind_sampler_states()
108 draw_set_samplers(softpipe->draw, in softpipe_bind_sampler_states()
[all …]
Dsp_state_clip.c39 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_clip_state() local
42 draw_set_clip_state(softpipe->draw, clip); in softpipe_set_clip_state()
50 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_viewport_state() local
53 draw_set_viewport_state(softpipe->draw, viewport); in softpipe_set_viewport_state()
55 softpipe->viewport = *viewport; /* struct copy */ in softpipe_set_viewport_state()
56 softpipe->dirty |= SP_NEW_VIEWPORT; in softpipe_set_viewport_state()
64 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_scissor_state() local
66 draw_flush(softpipe->draw); in softpipe_set_scissor_state()
68 softpipe->scissor = *scissor; /* struct copy */ in softpipe_set_scissor_state()
69 softpipe->dirty |= SP_NEW_SCISSOR; in softpipe_set_scissor_state()
[all …]
Dsp_quad_fs.c73 struct softpipe_context *softpipe = qs->softpipe; in shade_quad() local
74 struct tgsi_exec_machine *machine = softpipe->fs_machine; in shade_quad()
77 machine->flatshade_color = softpipe->rasterizer->flatshade ? TRUE : FALSE; in shade_quad()
78 return softpipe->fs_variant->run( softpipe->fs_variant, machine, quad ); in shade_quad()
86 struct softpipe_context *softpipe = qs->softpipe; in coverage_quad() local
90 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) { in coverage_quad()
111 struct softpipe_context *softpipe = qs->softpipe; in shade_quads() local
112 struct tgsi_exec_machine *machine = softpipe->fs_machine; in shade_quads()
116 softpipe->mapped_constants[PIPE_SHADER_FRAGMENT], in shade_quads()
117 softpipe->const_buffer_size[PIPE_SHADER_FRAGMENT]); in shade_quads()
[all …]
Dsp_flush.c49 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_flush() local
52 draw_flush(softpipe->draw); in softpipe_flush()
57 for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { in softpipe_flush()
58 for (i = 0; i < softpipe->num_sampler_views[sh]; i++) { in softpipe_flush()
59 sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]); in softpipe_flush()
69 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) in softpipe_flush()
70 if (softpipe->cbuf_cache[i]) in softpipe_flush()
71 sp_flush_tile_cache(softpipe->cbuf_cache[i]); in softpipe_flush()
73 if (softpipe->zsbuf_cache) in softpipe_flush()
74 sp_flush_tile_cache(softpipe->zsbuf_cache); in softpipe_flush()
[all …]
Dsp_state_blend.c50 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_blend_state() local
52 draw_flush(softpipe->draw); in softpipe_bind_blend_state()
54 softpipe->blend = (struct pipe_blend_state *)blend; in softpipe_bind_blend_state()
56 softpipe->dirty |= SP_NEW_BLEND; in softpipe_bind_blend_state()
72 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_blend_color() local
75 draw_flush(softpipe->draw); in softpipe_set_blend_color()
77 softpipe->blend_color = *blend_color; in softpipe_set_blend_color()
81 softpipe->blend_color_clamped.color[i] = in softpipe_set_blend_color()
84 softpipe->dirty |= SP_NEW_BLEND; in softpipe_set_blend_color()
100 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_depth_stencil_state() local
[all …]
Dsp_quad_pipe.h45 struct softpipe_context *softpipe; member
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 …]
Dsp_state_vertex.c61 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_vertex_elements_state() local
64 softpipe->velems = sp_velems; in softpipe_bind_vertex_elements_state()
66 softpipe->dirty |= SP_NEW_VERTEX; in softpipe_bind_vertex_elements_state()
69 draw_set_vertex_elements(softpipe->draw, sp_velems->count, sp_velems->velem); in softpipe_bind_vertex_elements_state()
85 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_vertex_buffers() local
89 util_copy_vertex_buffers(softpipe->vertex_buffer, in softpipe_set_vertex_buffers()
90 &softpipe->num_vertex_buffers, in softpipe_set_vertex_buffers()
93 softpipe->dirty |= SP_NEW_VERTEX; in softpipe_set_vertex_buffers()
95 draw_set_vertex_buffers(softpipe->draw, count, buffers); in softpipe_set_vertex_buffers()
103 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_index_buffer() local
[all …]
Dsp_query.c85 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_begin_query() local
90 sq->start = softpipe->occlusion_count; in softpipe_begin_query()
100 softpipe->so_stats.num_primitives_written = 0; in softpipe_begin_query()
104 softpipe->num_primitives_generated = 0; in softpipe_begin_query()
113 softpipe->active_query_count++; in softpipe_begin_query()
114 softpipe->dirty |= SP_NEW_QUERY; in softpipe_begin_query()
121 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_end_query() local
124 softpipe->active_query_count--; in softpipe_end_query()
127 sq->end = softpipe->occlusion_count; in softpipe_end_query()
138 softpipe->so_stats.primitives_storage_needed; in softpipe_end_query()
[all …]
Dsp_clear.c52 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_clear() local
56 if (softpipe->no_rast) in softpipe_clear()
59 if (!softpipe_check_render_cond(softpipe)) in softpipe_clear()
63 softpipe_update_derived(softpipe, PIPE_PRIM_TRIANGLES); /* not needed?? */ in softpipe_clear()
67 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) { in softpipe_clear()
68 sp_tile_cache_clear(softpipe->cbuf_cache[i], color, 0); in softpipe_clear()
74 struct pipe_surface *ps = softpipe->framebuffer.zsbuf; in softpipe_clear()
77 sp_tile_cache_clear(softpipe->zsbuf_cache, &zero, cv); in softpipe_clear()
80 softpipe->dirty_render_cache = TRUE; in softpipe_clear()
Dsp_quad_depth_test.c528 struct softpipe_context *softpipe = qs->softpipe; in depth_test_quad() local
532 switch (softpipe->depth_stencil->depth.func) { in depth_test_quad()
590 if (softpipe->depth_stencil->depth.writemask) { in depth_test_quad()
612 struct softpipe_context *softpipe = qs->softpipe; in depth_stencil_test_quad() local
617 if (!softpipe->depth_stencil->stencil[1].enabled) { in depth_stencil_test_quad()
627 func = softpipe->depth_stencil->stencil[face].func; in depth_stencil_test_quad()
628 failOp = softpipe->depth_stencil->stencil[face].fail_op; in depth_stencil_test_quad()
629 zFailOp = softpipe->depth_stencil->stencil[face].zfail_op; in depth_stencil_test_quad()
630 zPassOp = softpipe->depth_stencil->stencil[face].zpass_op; in depth_stencil_test_quad()
631 ref = softpipe->stencil_ref.ref_value[face]; in depth_stencil_test_quad()
[all …]
Dsp_quad_stipple.c23 struct softpipe_context *softpipe = qs->softpipe; in stipple_quad() local
34 const uint stipple0 = softpipe->poly_stipple.stipple[y0 % 32]; in stipple_quad()
35 const uint stipple1 = softpipe->poly_stipple.stipple[y1 % 32]; in stipple_quad()
71 sp_quad_polygon_stipple_stage( struct softpipe_context *softpipe ) in sp_quad_polygon_stipple_stage() argument
75 stage->softpipe = softpipe; in sp_quad_polygon_stipple_stage()
Dsp_state_rasterizer.c48 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_rasterizer_state() local
50 if (softpipe->rasterizer == rasterizer) in softpipe_bind_rasterizer_state()
54 draw_set_rasterizer_state(softpipe->draw, rasterizer, rasterizer); in softpipe_bind_rasterizer_state()
56 softpipe->rasterizer = rasterizer; in softpipe_bind_rasterizer_state()
58 softpipe->dirty |= SP_NEW_RASTERIZER; in softpipe_bind_rasterizer_state()
Dsp_quad_blend.c154 struct softpipe_context *softpipe = qs->softpipe; in logicop_quad() local
175 switch (softpipe->blend->logicop_func) { in logicop_quad()
271 struct softpipe_context *softpipe = qs->softpipe; in blend_quad() local
278 switch (softpipe->blend->rt[blend_index].rgb_src_factor) { in blend_quad()
449 switch (softpipe->blend->rt[blend_index].alpha_src_factor) { in blend_quad()
541 switch (softpipe->blend->rt[blend_index].rgb_dst_factor) { in blend_quad()
701 switch (softpipe->blend->rt[blend_index].alpha_dst_factor) { in blend_quad()
778 switch (softpipe->blend->rt[blend_index].rgb_func) { in blend_quad()
811 switch (softpipe->blend->rt[blend_index].alpha_func) { in blend_quad()
923 struct softpipe_context *softpipe = qs->softpipe; in blend_fallback() local
[all …]
DSConscript5 softpipe = env.ConvenienceLibrary(
6 target = 'softpipe',
39 env.Alias('softpipe', softpipe)
41 Export('softpipe')
Dsp_state_so.c68 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_so_targets() local
72 …pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], targets[i]… in softpipe_set_so_targets()
75 for (; i < softpipe->num_so_targets; i++) { in softpipe_set_so_targets()
76 pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], NULL); in softpipe_set_so_targets()
79 softpipe->num_so_targets = num_targets; in softpipe_set_so_targets()
Dsp_setup.c76 struct softpipe_context *softpipe; member
130 const struct pipe_scissor_state *cliprect = &setup->softpipe->cliprect; in quad_clip()
164 struct softpipe_context *sp = setup->softpipe; in clip_emit_quad()
205 struct quad_stage *pipe = setup->softpipe->quad.first; in flush_spans()
293 if (setup->softpipe->rasterizer->flatshade_first) in setup_sort_vertices()
383 (setup->softpipe->rasterizer->front_ccw)); in setup_sort_vertices()
397 if (setup->softpipe->rasterizer->gl_rasterization_rules) { in setup_sort_vertices()
578 const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info; in setup_fragcoord_coeff()
586 (fsInfo->origin_lower_left ? setup->softpipe->framebuffer.height-1 : 0) in setup_fragcoord_coeff()
609 struct softpipe_context *softpipe = setup->softpipe; in setup_tri_coefficients() local
[all …]
Dsp_prim_vbuf.c60 struct softpipe_context *softpipe; member
84 return softpipe_get_vbuf_vertex_info(cvbr->softpipe); in sp_vbuf_get_vertex_info()
143 cvbr->softpipe->reduced_prim = u_reduced_prim(prim); in sp_vbuf_set_primitive()
163 struct softpipe_context *softpipe = cvbr->softpipe; in sp_vbuf_draw_elements() local
164 const unsigned stride = softpipe->vertex_info_vbuf.size * sizeof(float); in sp_vbuf_draw_elements()
167 const boolean flatshade_first = softpipe->rasterizer->flatshade_first; in sp_vbuf_draw_elements()
359 struct softpipe_context *softpipe = cvbr->softpipe; in sp_vbuf_draw_arrays() local
361 const unsigned stride = softpipe->vertex_info_vbuf.size * sizeof(float); in sp_vbuf_draw_arrays()
364 const boolean flatshade_first = softpipe->rasterizer->flatshade_first; in sp_vbuf_draw_arrays()
549 struct softpipe_context *softpipe = cvbr->softpipe; in sp_vbuf_so_info() local
[all …]
Dsp_state.h156 softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim);
176 softpipe_get_vertex_info(struct softpipe_context *softpipe);
179 softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe);
183 softpipe_find_fs_variant(struct softpipe_context *softpipe,
189 softpipe_find_fs_variant(struct softpipe_context *softpipe,
Dsp_prim_vbuf.h35 sp_create_vbuf_backend(struct softpipe_context *softpipe);
Dsp_fs.h36 softpipe_create_fs_variant_exec(struct softpipe_context *softpipe,
Dsp_setup.h49 struct setup_context *sp_setup_create_context( struct softpipe_context *softpipe );
/external/mesa3d/src/gallium/targets/pipe-loader/
DMakefile74 else ifneq ($(findstring softpipe,$(GALLIUM_DRIVERS_DIRS)),)
75 swrast_LIBS = $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
126 ifneq ($(filter llvmpipe softpipe,$(GALLIUM_DRIVERS_DIRS)),)

123