/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_context.c | 59 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_destroy() local 62 if (softpipe->blitter) { in softpipe_destroy() 63 util_blitter_destroy(softpipe->blitter); in softpipe_destroy() 66 if (softpipe->draw) in softpipe_destroy() 67 draw_destroy( softpipe->draw ); in softpipe_destroy() 69 if (softpipe->quad.shade) in softpipe_destroy() 70 softpipe->quad.shade->destroy( softpipe->quad.shade ); in softpipe_destroy() 72 if (softpipe->quad.depth_test) in softpipe_destroy() 73 softpipe in softpipe_destroy() 133 struct softpipe_context *softpipe = softpipe_context( pipe ); softpipe_is_resource_referenced() local 174 struct softpipe_context *softpipe = softpipe_context( pipe ); softpipe_render_condition() local 186 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_set_debug_callback() local 200 struct softpipe_context *softpipe = CALLOC_STRUCT(softpipe_context); softpipe_create_context() local [all...] |
H A D | sp_state_derived.c | 48 invalidate_vertex_layout(struct softpipe_context *softpipe) in invalidate_vertex_layout() argument 50 softpipe->setup_info.valid = 0; in invalidate_vertex_layout() 62 softpipe_compute_vertex_info(struct softpipe_context *softpipe) in softpipe_compute_vertex_info() argument 64 struct sp_setup_info *sinfo = &softpipe->setup_info; in softpipe_compute_vertex_info() 67 const struct tgsi_shader_info *fsInfo = &softpipe->fs_variant->info; in softpipe_compute_vertex_info() 68 struct vertex_info *vinfo = &softpipe->vertex_info; in softpipe_compute_vertex_info() 79 * draw_prepare_shader_outputs(softpipe->draw); in softpipe_compute_vertex_info() 87 softpipe->viewport_index_slot = -1; in softpipe_compute_vertex_info() 88 softpipe->layer_slot = -1; in softpipe_compute_vertex_info() 89 softpipe in softpipe_compute_vertex_info() 238 softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe) softpipe_get_vbuf_vertex_info() argument 283 set_shader_sampler(struct softpipe_context *softpipe, enum pipe_shader_type shader, int max_sampler) set_shader_sampler() argument 295 softpipe_update_compute_samplers(struct softpipe_context *softpipe) softpipe_update_compute_samplers() argument 334 update_fragment_shader(struct softpipe_context *softpipe, unsigned prim) update_fragment_shader() argument 380 softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim) softpipe_update_derived() argument [all...] |
H A D | sp_state_shader.c | 54 create_fs_variant(struct softpipe_context *softpipe, in create_fs_variant() argument 62 var = softpipe_create_fs_variant_exec(softpipe); in create_fs_variant() 74 var->draw_shader = draw_create_fragment_shader(softpipe->draw, in create_fs_variant() 112 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_shader_db() local 116 util_debug_message(&softpipe->debug, SHADER_INFO, "%s shader: %d inst, %d loops, %d temps, %d const, %d imm", in softpipe_shader_db() 156 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_create_fs_state() local 163 state->draw_shader = draw_create_fragment_shader(softpipe->draw, in softpipe_create_fs_state() 178 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_bind_fs_state() local 181 if (softpipe->fs == fs) in softpipe_bind_fs_state() 184 draw_flush(softpipe in softpipe_bind_fs_state() 206 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_delete_fs_state() local 237 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_create_vs_state() local 270 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_bind_vs_state() local 284 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_delete_vs_state() local 298 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_create_gs_state() local 332 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_bind_gs_state() local 346 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_delete_gs_state() local 365 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_set_constant_buffer() local 445 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_bind_compute_state() local 457 ASSERTED struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_delete_compute_state() local [all...] |
H A 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 in softpipe_flush() 174 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_texture_barrier() local [all...] |
H A 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 in coverage_quad() local 108 struct softpipe_context *softpipe = qs->softpipe; shade_quads() local [all...] |
H A 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[sq->index].num_primitives_written = softpipe->so_stats[sq->index].num_primitives_written; in softpipe_begin_query() 106 sq->so[sq->index].primitives_storage_needed = softpipe->so_stats[sq->index].primitives_storage_needed; in softpipe_begin_query() 109 sq->so[sq->index].num_primitives_written = softpipe->so_stats[sq->index].num_primitives_written; in softpipe_begin_query() 110 sq->so[sq->index].primitives_storage_needed = softpipe->so_stats[sq->index].primitives_storage_needed; in softpipe_begin_query() 114 sq->so[i].num_primitives_written = softpipe->so_stats[i].num_primitives_written; in softpipe_begin_query() 115 sq->so[i].primitives_storage_needed = softpipe->so_stats[i].primitives_storage_needed; in softpipe_begin_query() 119 sq->so[sq->index].num_primitives_written = softpipe->so_stats[sq->index].num_primitives_written; in softpipe_begin_query() 122 sq->so[sq->index].primitives_storage_needed = softpipe in softpipe_begin_query() 151 struct softpipe_context *softpipe = softpipe_context( pipe ); softpipe_end_query() local [all...] |
H A 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 in softpipe_bind_depth_stencil_state() local 119 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_set_stencil_ref() local [all...] |
H A D | sp_quad_pipe.h | 45 struct softpipe_context *softpipe; member 58 struct quad_stage *sp_quad_earlyz_stage( struct softpipe_context *softpipe ); 59 struct quad_stage *sp_quad_shade_stage( struct softpipe_context *softpipe ); 60 struct quad_stage *sp_quad_alpha_test_stage( struct softpipe_context *softpipe ); 61 struct quad_stage *sp_quad_stencil_test_stage( struct softpipe_context *softpipe ); 62 struct quad_stage *sp_quad_depth_test_stage( struct softpipe_context *softpipe ); 63 struct quad_stage *sp_quad_occlusion_stage( struct softpipe_context *softpipe ); 64 struct quad_stage *sp_quad_coverage_stage( struct softpipe_context *softpipe ); 65 struct quad_stage *sp_quad_blend_stage( struct softpipe_context *softpipe ); 66 struct quad_stage *sp_quad_colormask_stage( struct softpipe_context *softpipe ); [all...] |
H A 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 in softpipe_set_scissor_states() 88 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_set_polygon_stipple() local [all...] |
H A 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 in softpipe_bind_sampler_states() 107 struct softpipe_context *softpipe = softpipe_context(pipe); softpipe_set_sampler_views() local [all...] |
H A D | sp_state_image.c | 36 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_shader_images() local 39 assert(start + num <= ARRAY_SIZE(softpipe->sampler_views[shader])); in softpipe_set_shader_images() 46 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, images[i].resource); in softpipe_set_shader_images() 47 softpipe->tgsi.image[shader]->sp_iview[idx] = images[i]; in softpipe_set_shader_images() 50 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, NULL); in softpipe_set_shader_images() 51 memset(&softpipe->tgsi.image[shader]->sp_iview[idx], 0, sizeof(struct pipe_image_view)); in softpipe_set_shader_images() 58 pipe_resource_reference(&softpipe->tgsi.image[shader]->sp_iview[idx].resource, NULL); in softpipe_set_shader_images() 59 memset(&softpipe->tgsi.image[shader]->sp_iview[idx], 0, sizeof(struct pipe_image_view)); in softpipe_set_shader_images() 70 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_shader_buffers() local 73 assert(start + num <= ARRAY_SIZE(softpipe in softpipe_set_shader_buffers() [all...] |
H A 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() 88 struct softpipe_context *softpipe = softpipe_context(pipe); in softpipe_set_vertex_buffers() local 92 util_set_vertex_buffers_count(softpipe->vertex_buffer, in softpipe_set_vertex_buffers() 93 &softpipe->num_vertex_buffers, in softpipe_set_vertex_buffers() 98 softpipe->dirty |= SP_NEW_VERTEX; in softpipe_set_vertex_buffers() 100 draw_set_vertex_buffers(softpipe->draw, start_slot, count, in softpipe_set_vertex_buffers()
|
H A 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()
|
H A 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()
|
H A D | sp_quad_depth_test.c | 541 struct softpipe_context *softpipe = qs->softpipe; in depth_test_quad() local 560 switch (softpipe->depth_stencil->depth_func) { in depth_test_quad() 600 if (softpipe->depth_stencil->depth_writemask) { in depth_test_quad() 622 struct softpipe_context *softpipe = qs->softpipe; in depth_stencil_test_quad() local 627 if (!softpipe->depth_stencil->stencil[1].enabled) { in depth_stencil_test_quad() 637 func = softpipe->depth_stencil->stencil[face].func; in depth_stencil_test_quad() 638 failOp = softpipe->depth_stencil->stencil[face].fail_op; in depth_stencil_test_quad() 639 zFailOp = softpipe in depth_stencil_test_quad() 1088 sp_quad_depth_test_stage(struct softpipe_context *softpipe) sp_quad_depth_test_stage() argument [all...] |
H A D | sp_prim_vbuf.c | 29 * Interface between 'draw' module's output and the softpipe rasterizer/setup 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 603 struct softpipe_context *softpipe = cvbr->softpipe; sp_vbuf_so_info() local 615 struct softpipe_context *softpipe = cvbr->softpipe; sp_vbuf_pipeline_statistics() local [all...] |
H A D | sp_quad_blend.c | 154 struct softpipe_context *softpipe = qs->softpipe; in logicop_quad() local 177 switch (softpipe->blend->logicop_func) { in logicop_quad() 273 struct softpipe_context *softpipe = qs->softpipe; in blend_quad() local 280 switch (softpipe->blend->rt[blend_index].rgb_src_factor) { in blend_quad() 451 switch (softpipe->blend->rt[blend_index].alpha_src_factor) { in blend_quad() 543 switch (softpipe->blend->rt[blend_index].rgb_dst_factor) { in blend_quad() 703 switch (softpipe->blend->rt[blend_index].alpha_dst_factor) { in blend_quad() 780 switch (softpipe in blend_quad() 925 struct softpipe_context *softpipe = qs->softpipe; blend_fallback() local 1223 struct softpipe_context *softpipe = qs->softpipe; choose_blend_quad() local [all...] |
H A 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()
|
H A D | sp_compute.c | 169 struct softpipe_context *softpipe = softpipe_context(context); in softpipe_launch_grid() local 170 struct sp_compute_shader *cs = softpipe->cs; in softpipe_launch_grid() 179 softpipe_update_compute_samplers(softpipe); in softpipe_launch_grid() 211 (struct tgsi_sampler *)softpipe->tgsi.sampler[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 212 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 213 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid() 215 softpipe->mapped_constants[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 216 softpipe->const_buffer_size[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid() 230 if (softpipe->active_statistics_queries) { in softpipe_launch_grid() 231 softpipe in softpipe_launch_grid() [all...] |
H A 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() 508 const struct tgsi_shader_info *fsInfo = &setup->softpipe->fs_variant->info; in setup_fragcoord_coeff() 520 (origin_lower_left ? setup->softpipe->framebuffer.height-1 : 0) in setup_fragcoord_coeff() 543 struct softpipe_context *softpipe = setup->softpipe; in setup_tri_coefficients() local 884 struct softpipe_context *softpipe = setup->softpipe; setup_line_coefficients() local 1145 struct softpipe_context *softpipe = setup->softpipe; sp_setup_point() local 1430 sp_setup_create_context(struct softpipe_context *softpipe) sp_setup_create_context() argument [all...] |
H A D | sp_surface.c | 46 debug_printf("softpipe: color resolve unimplemented\n"); in sp_blit() 55 debug_printf("softpipe: blit unsupported %s -> %s\n", in sp_blit() 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()
|
H A D | sp_state.h | 170 softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim); 198 softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe); 202 softpipe_find_fs_variant(struct softpipe_context *softpipe, 227 softpipe_update_compute_samplers(struct softpipe_context *softpipe);
|
H A D | sp_prim_vbuf.h | 35 sp_create_vbuf_backend(struct softpipe_context *softpipe);
|
H A D | sp_fs.h | 36 softpipe_create_fs_variant_exec(struct softpipe_context *softpipe);
|
H A D | sp_setup.h | 73 struct setup_context *sp_setup_create_context( struct softpipe_context *softpipe );
|