Lines Matching refs:llvmpipe

56    struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe );  in llvmpipe_destroy()  local
63 if (llvmpipe->draw) in llvmpipe_destroy()
64 draw_destroy( llvmpipe->draw ); in llvmpipe_destroy()
67 pipe_surface_reference(&llvmpipe->framebuffer.cbufs[i], NULL); in llvmpipe_destroy()
70 pipe_surface_reference(&llvmpipe->framebuffer.zsbuf, NULL); in llvmpipe_destroy()
72 for (i = 0; i < Elements(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
73 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_FRAGMENT][i], NULL); in llvmpipe_destroy()
76 for (i = 0; i < Elements(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
77 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_VERTEX][i], NULL); in llvmpipe_destroy()
80 for (i = 0; i < Elements(llvmpipe->constants); i++) { in llvmpipe_destroy()
81 for (j = 0; j < Elements(llvmpipe->constants[i]); j++) { in llvmpipe_destroy()
82 pipe_resource_reference(&llvmpipe->constants[i][j], NULL); in llvmpipe_destroy()
86 for (i = 0; i < llvmpipe->num_vertex_buffers; i++) { in llvmpipe_destroy()
87 pipe_resource_reference(&llvmpipe->vertex_buffer[i].buffer, NULL); in llvmpipe_destroy()
90 lp_delete_setup_variants(llvmpipe); in llvmpipe_destroy()
92 align_free( llvmpipe ); in llvmpipe_destroy()
108 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); in llvmpipe_render_condition() local
110 llvmpipe->render_cond_query = query; in llvmpipe_render_condition()
111 llvmpipe->render_cond_mode = mode; in llvmpipe_render_condition()
117 struct llvmpipe_context *llvmpipe; in llvmpipe_create_context() local
119 llvmpipe = align_malloc(sizeof(struct llvmpipe_context), 16); in llvmpipe_create_context()
120 if (!llvmpipe) in llvmpipe_create_context()
125 memset(llvmpipe, 0, sizeof *llvmpipe); in llvmpipe_create_context()
127 make_empty_list(&llvmpipe->fs_variants_list); in llvmpipe_create_context()
129 make_empty_list(&llvmpipe->setup_variants_list); in llvmpipe_create_context()
132 llvmpipe->pipe.screen = screen; in llvmpipe_create_context()
133 llvmpipe->pipe.priv = priv; in llvmpipe_create_context()
136 llvmpipe->pipe.destroy = llvmpipe_destroy; in llvmpipe_create_context()
137 llvmpipe->pipe.set_framebuffer_state = llvmpipe_set_framebuffer_state; in llvmpipe_create_context()
138 llvmpipe->pipe.clear = llvmpipe_clear; in llvmpipe_create_context()
139 llvmpipe->pipe.flush = do_flush; in llvmpipe_create_context()
141 llvmpipe->pipe.render_condition = llvmpipe_render_condition; in llvmpipe_create_context()
143 llvmpipe_init_blend_funcs(llvmpipe); in llvmpipe_create_context()
144 llvmpipe_init_clip_funcs(llvmpipe); in llvmpipe_create_context()
145 llvmpipe_init_draw_funcs(llvmpipe); in llvmpipe_create_context()
146 llvmpipe_init_sampler_funcs(llvmpipe); in llvmpipe_create_context()
147 llvmpipe_init_query_funcs( llvmpipe ); in llvmpipe_create_context()
148 llvmpipe_init_vertex_funcs(llvmpipe); in llvmpipe_create_context()
149 llvmpipe_init_so_funcs(llvmpipe); in llvmpipe_create_context()
150 llvmpipe_init_fs_funcs(llvmpipe); in llvmpipe_create_context()
151 llvmpipe_init_vs_funcs(llvmpipe); in llvmpipe_create_context()
152 llvmpipe_init_gs_funcs(llvmpipe); in llvmpipe_create_context()
153 llvmpipe_init_rasterizer_funcs(llvmpipe); in llvmpipe_create_context()
154 llvmpipe_init_context_resource_funcs( &llvmpipe->pipe ); in llvmpipe_create_context()
155 llvmpipe_init_surface_functions(llvmpipe); in llvmpipe_create_context()
160 llvmpipe->draw = draw_create(&llvmpipe->pipe); in llvmpipe_create_context()
161 if (!llvmpipe->draw) in llvmpipe_create_context()
166 llvmpipe->setup = lp_setup_create( &llvmpipe->pipe, in llvmpipe_create_context()
167 llvmpipe->draw ); in llvmpipe_create_context()
168 if (!llvmpipe->setup) in llvmpipe_create_context()
172 draw_install_aaline_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
173 draw_install_aapoint_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
174 draw_install_pstipple_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
179 draw_wide_point_sprites(llvmpipe->draw, FALSE); in llvmpipe_create_context()
180 draw_enable_point_sprites(llvmpipe->draw, FALSE); in llvmpipe_create_context()
181 draw_wide_point_threshold(llvmpipe->draw, 10000.0); in llvmpipe_create_context()
182 draw_wide_line_threshold(llvmpipe->draw, 10000.0); in llvmpipe_create_context()
186 return &llvmpipe->pipe; in llvmpipe_create_context()
189 llvmpipe_destroy(&llvmpipe->pipe); in llvmpipe_create_context()