/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_context.c | 60 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_destroy() local 64 if (softpipe->pstipple.sampler) in softpipe_destroy() 65 pipe->delete_sampler_state(pipe, softpipe->pstipple.sampler); in softpipe_destroy() 67 pipe_resource_reference(&softpipe->pstipple.texture, NULL); in softpipe_destroy() 68 pipe_sampler_view_reference(&softpipe->pstipple.sampler_view, NULL); in softpipe_destroy() 71 if (softpipe->blitter) { in softpipe_destroy() 72 util_blitter_destroy(softpipe->blitter); in softpipe_destroy() 75 if (softpipe->draw) in softpipe_destroy() 76 draw_destroy( softpipe->draw ); in softpipe_destroy() 78 if (softpipe->quad.shade) in softpipe_destroy() [all …]
|
D | sp_state_derived.c | 49 invalidate_vertex_layout(struct softpipe_context *softpipe) in invalidate_vertex_layout() argument 51 softpipe->setup_info.valid = 0; in invalidate_vertex_layout() 63 softpipe_compute_vertex_info(struct softpipe_context *softpipe) in softpipe_compute_vertex_info() argument 65 struct sp_setup_info *sinfo = &softpipe->setup_info; in softpipe_compute_vertex_info() 68 const struct tgsi_shader_info *fsInfo = &softpipe->fs_variant->info; in softpipe_compute_vertex_info() 69 struct vertex_info *vinfo = &softpipe->vertex_info; in softpipe_compute_vertex_info() 88 softpipe->viewport_index_slot = -1; in softpipe_compute_vertex_info() 89 softpipe->layer_slot = -1; in softpipe_compute_vertex_info() 90 softpipe->psize_slot = -1; in softpipe_compute_vertex_info() 97 vs_index = draw_find_shader_output(softpipe->draw, in softpipe_compute_vertex_info() [all …]
|
D | sp_query.c | 92 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_begin_query() local 99 sq->start = softpipe->occlusion_count; in softpipe_begin_query() 105 sq->so.num_primitives_written = softpipe->so_stats[0].num_primitives_written; in softpipe_begin_query() 106 sq->so.primitives_storage_needed = softpipe->so_stats[0].primitives_storage_needed; in softpipe_begin_query() 110 sq->so.num_primitives_written = softpipe->so_stats[sq->index].num_primitives_written; in softpipe_begin_query() 111 sq->so.primitives_storage_needed = softpipe->so_stats[sq->index].primitives_storage_needed; in softpipe_begin_query() 114 sq->so.num_primitives_written = softpipe->so_stats[sq->index].num_primitives_written; in softpipe_begin_query() 117 sq->so.primitives_storage_needed = softpipe->so_stats[sq->index].primitives_storage_needed; in softpipe_begin_query() 125 if (softpipe->active_statistics_queries == 0) { in softpipe_begin_query() 126 memset(&softpipe->pipeline_statistics, 0, in softpipe_begin_query() [all …]
|
D | sp_state_shader.c | 55 create_fs_variant(struct softpipe_context *softpipe, in create_fs_variant() argument 63 var = softpipe_create_fs_variant_exec(softpipe); in create_fs_variant() 88 var->draw_shader = draw_create_fragment_shader(softpipe->draw, in create_fs_variant() 126 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_shader_db() local 130 …pipe_debug_message(&softpipe->debug, SHADER_INFO, "%s shader: %d inst, %d loops, %d temps, %d cons… in softpipe_shader_db() 175 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_create_fs_state() local 182 state->draw_shader = draw_create_fragment_shader(softpipe->draw, in softpipe_create_fs_state() 197 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_fs_state() local 200 if (softpipe->fs == fs) in softpipe_bind_fs_state() 203 draw_flush(softpipe->draw); in softpipe_bind_fs_state() [all …]
|
D | sp_flush.c | 51 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_flush() local 54 draw_flush(softpipe->draw); in softpipe_flush() 59 for (sh = 0; sh < ARRAY_SIZE(softpipe->tex_cache); sh++) { in softpipe_flush() 60 for (i = 0; i < softpipe->num_sampler_views[sh]; i++) { in softpipe_flush() 61 sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]); in softpipe_flush() 71 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) in softpipe_flush() 72 if (softpipe->cbuf_cache[i]) in softpipe_flush() 73 sp_flush_tile_cache(softpipe->cbuf_cache[i]); in softpipe_flush() 75 if (softpipe->zsbuf_cache) in softpipe_flush() 76 sp_flush_tile_cache(softpipe->zsbuf_cache); in softpipe_flush() [all …]
|
D | sp_quad_fs.c | 65 struct softpipe_context *softpipe = qs->softpipe; in shade_quad() local 66 struct tgsi_exec_machine *machine = softpipe->fs_machine; in shade_quad() 68 if (softpipe->active_statistics_queries) { in shade_quad() 69 softpipe->pipeline_statistics.ps_invocations += in shade_quad() 74 machine->flatshade_color = softpipe->rasterizer->flatshade ? TRUE : FALSE; in shade_quad() 75 return softpipe->fs_variant->run( softpipe->fs_variant, machine, quad, softpipe->early_depth ); in shade_quad() 83 struct softpipe_context *softpipe = qs->softpipe; in coverage_quad() local 87 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) { in coverage_quad() 108 struct softpipe_context *softpipe = qs->softpipe; in shade_quads() local 109 struct tgsi_exec_machine *machine = softpipe->fs_machine; in shade_quads() [all …]
|
D | sp_state_clip.c | 39 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() 52 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_viewport_states() local 55 draw_set_viewport_states(softpipe->draw, start_slot, num_viewports, in softpipe_set_viewport_states() 58 memcpy(softpipe->viewports + start_slot, viewports, in softpipe_set_viewport_states() 60 softpipe->dirty |= SP_NEW_VIEWPORT; in softpipe_set_viewport_states() 70 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_scissor_states() local 72 draw_flush(softpipe->draw); in softpipe_set_scissor_states() 77 memcpy(softpipe->scissors + start_slot, scissors, in softpipe_set_scissor_states() 79 softpipe->dirty |= SP_NEW_SCISSOR; in softpipe_set_scissor_states() [all …]
|
D | sp_state_blend.c | 50 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 …]
|
D | sp_quad_pipe.h | 45 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 …]
|
D | sp_state_sampler.c | 57 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_sampler_states() local 61 assert(start + num <= ARRAY_SIZE(softpipe->samplers[shader])); in softpipe_bind_sampler_states() 63 draw_flush(softpipe->draw); in softpipe_bind_sampler_states() 67 softpipe->samplers[shader][start + i] = samplers[i]; in softpipe_bind_sampler_states() 72 unsigned j = MAX2(softpipe->num_samplers[shader], start + num); in softpipe_bind_sampler_states() 73 while (j > 0 && softpipe->samplers[shader][j - 1] == NULL) in softpipe_bind_sampler_states() 75 softpipe->num_samplers[shader] = j; in softpipe_bind_sampler_states() 79 draw_set_samplers(softpipe->draw, in softpipe_bind_sampler_states() 81 softpipe->samplers[shader], in softpipe_bind_sampler_states() 82 softpipe->num_samplers[shader]); in softpipe_bind_sampler_states() [all …]
|
D | sp_state_image.c | 35 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_shader_images() local 38 assert(start + num <= ARRAY_SIZE(softpipe->sampler_views[shader])); in softpipe_set_shader_images() 45 …pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, images[i].resource); in softpipe_set_shader_images() 46 softpipe->tgsi.image[shader]->sp_iview[idx] = images[i]; in softpipe_set_shader_images() 49 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, NULL); in softpipe_set_shader_images() 50 memset(&softpipe->tgsi.image[shader]->sp_iview[idx], 0, sizeof(struct pipe_image_view)); in softpipe_set_shader_images() 62 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_shader_buffers() local 65 assert(start + num <= ARRAY_SIZE(softpipe->buffers[shader])); in softpipe_set_shader_buffers() 72 … pipe_resource_reference(&softpipe->tgsi.buffer[shader]->sp_bview[idx].buffer, buffers[i].buffer); in softpipe_set_shader_buffers() 73 softpipe->tgsi.buffer[shader]->sp_bview[idx] = buffers[i]; in softpipe_set_shader_buffers() [all …]
|
D | sp_state_vertex.c | 62 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_vertex_elements_state() local 65 softpipe->velems = sp_velems; in softpipe_bind_vertex_elements_state() 67 softpipe->dirty |= SP_NEW_VERTEX; in softpipe_bind_vertex_elements_state() 70 draw_set_vertex_elements(softpipe->draw, sp_velems->count, sp_velems->velem); in softpipe_bind_vertex_elements_state() 86 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_vertex_buffers() local 90 util_set_vertex_buffers_count(softpipe->vertex_buffer, in softpipe_set_vertex_buffers() 91 &softpipe->num_vertex_buffers, in softpipe_set_vertex_buffers() 94 softpipe->dirty |= SP_NEW_VERTEX; in softpipe_set_vertex_buffers() 96 draw_set_vertex_buffers(softpipe->draw, start_slot, count, buffers); in softpipe_set_vertex_buffers()
|
D | sp_state_so.c | 68 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() 76 softpipe->so_targets[i]->mapping = buf; in softpipe_set_so_targets() 80 for (; i < softpipe->num_so_targets; i++) { in softpipe_set_so_targets() 81 pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], NULL); in softpipe_set_so_targets() 84 softpipe->num_so_targets = num_targets; in softpipe_set_so_targets() 86 draw_set_mapped_so_targets(softpipe->draw, softpipe->num_so_targets, in softpipe_set_so_targets() 87 softpipe->so_targets); in softpipe_set_so_targets()
|
D | sp_clear.c | 55 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_clear() local 56 struct pipe_surface *zsbuf = softpipe->framebuffer.zsbuf; in softpipe_clear() 64 if (!softpipe_check_render_cond(softpipe)) in softpipe_clear() 68 softpipe_update_derived(softpipe, PIPE_PRIM_TRIANGLES); /* not needed?? */ in softpipe_clear() 72 for (i = 0; i < softpipe->framebuffer.nr_cbufs; i++) { in softpipe_clear() 74 sp_tile_cache_clear(softpipe->cbuf_cache[i], color, 0); in softpipe_clear() 89 sp_tile_cache_clear(softpipe->zsbuf_cache, &zero, cv); in softpipe_clear() 92 softpipe->dirty_render_cache = TRUE; in softpipe_clear()
|
D | sp_quad_depth_test.c | 541 struct softpipe_context *softpipe = qs->softpipe; in depth_test_quad() local 545 switch (softpipe->depth_stencil->depth.func) { in depth_test_quad() 603 if (softpipe->depth_stencil->depth.writemask) { in depth_test_quad() 625 struct softpipe_context *softpipe = qs->softpipe; in depth_stencil_test_quad() local 630 if (!softpipe->depth_stencil->stencil[1].enabled) { in depth_stencil_test_quad() 640 func = softpipe->depth_stencil->stencil[face].func; in depth_stencil_test_quad() 641 failOp = softpipe->depth_stencil->stencil[face].fail_op; in depth_stencil_test_quad() 642 zFailOp = softpipe->depth_stencil->stencil[face].zfail_op; in depth_stencil_test_quad() 643 zPassOp = softpipe->depth_stencil->stencil[face].zpass_op; in depth_stencil_test_quad() 644 ref = softpipe->stencil_ref.ref_value[face]; in depth_stencil_test_quad() [all …]
|
D | sp_quad_stipple.c | 23 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()
|
D | sp_prim_vbuf.c | 60 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.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.size * sizeof(float); in sp_vbuf_draw_arrays() 364 const boolean flatshade_first = softpipe->rasterizer->flatshade_first; in sp_vbuf_draw_arrays() 603 struct softpipe_context *softpipe = cvbr->softpipe; in sp_vbuf_so_info() local [all …]
|
D | SConscript | 11 softpipe = env.ConvenienceLibrary( 12 target = 'softpipe', 16 env.Alias('softpipe', softpipe) 18 Export('softpipe')
|
D | sp_setup.c | 76 struct softpipe_context *softpipe; member 132 const struct pipe_scissor_state *cliprect = &setup->softpipe->cliprect[viewport_index]; in quad_clip() 166 struct softpipe_context *sp = setup->softpipe; in clip_emit_quad() 207 struct quad_stage *pipe = setup->softpipe->quad.first; in flush_spans() 295 if (setup->softpipe->rasterizer->flatshade_first) in setup_sort_vertices() 385 (setup->softpipe->rasterizer->front_ccw)); in setup_sort_vertices() 554 const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info; in setup_fragcoord_coeff() 566 (origin_lower_left ? setup->softpipe->framebuffer.height-1 : 0) in setup_fragcoord_coeff() 589 struct softpipe_context *softpipe = setup->softpipe; in setup_tri_coefficients() local 590 const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info; in setup_tri_coefficients() [all …]
|
D | sp_state_rasterizer.c | 48 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()
|
D | sp_quad_blend.c | 154 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 …]
|
D | sp_compute.c | 171 struct softpipe_context *softpipe = softpipe_context(context); in softpipe_launch_grid() local 172 struct sp_compute_shader *cs = softpipe->cs; in softpipe_launch_grid() 181 softpipe_update_compute_samplers(softpipe); in softpipe_launch_grid() 212 (struct tgsi_sampler *)softpipe->tgsi.sampler[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 213 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 214 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid() 216 softpipe->mapped_constants[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 217 softpipe->const_buffer_size[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid() 230 if (softpipe->active_statistics_queries) { in softpipe_launch_grid() 231 softpipe->pipeline_statistics.cs_invocations += in softpipe_launch_grid()
|
D | sp_state.h | 171 softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim); 193 softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe); 197 softpipe_find_fs_variant(struct softpipe_context *softpipe, 203 softpipe_find_fs_variant(struct softpipe_context *softpipe, 228 softpipe_update_compute_samplers(struct softpipe_context *softpipe);
|
D | sp_surface.c | 103 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_clear_render_target() local 105 if (render_condition_enabled && !softpipe_check_render_cond(softpipe)) in softpipe_clear_render_target() 123 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_clear_depth_stencil() local 125 if (render_condition_enabled && !softpipe_check_render_cond(softpipe)) in softpipe_clear_depth_stencil()
|
/external/mesa3d/docs/ |
D | features.txt | 39 GL 3.0, GLSL 1.30 --- all DONE: freedreno, i965, nv50, nvc0, r600, radeonsi, llvmpipe, softpipe, sw… 66 … DONE (freedreno/a5xx+, freedreno (*), llvmpipe (*), softpipe (*), swr (*), pan… 69 (*) freedreno (a2xx-a4xx), llvmpipe, softpipe, and swr have fake Multisample anti-aliasing support 72 GL 3.1, GLSL 1.40 --- all DONE: freedreno, i965, nv50, nvc0, r600, radeonsi, llvmpipe, softpipe, sw… 85 GL 3.2, GLSL 1.50 --- all DONE: i965, nv50, nvc0, r600, radeonsi, llvmpipe, softpipe, swr, virgl, z… 100 GL 3.3, GLSL 3.30 --- all DONE: i965, nv50, nvc0, r600, radeonsi, llvmpipe, softpipe, virgl, zink 116 …GL_ARB_draw_buffers_blend DONE (freedreno, i965/gen6+, nv50, softpipe,… 117 …GL_ARB_draw_indirect DONE (freedreno, i965/gen7+, softpipe, swr, … 119 - 'precise' qualifier DONE (softpipe) 120 - Dynamically uniform sampler array indices DONE (softpipe) [all …]
|