• Home
  • Raw
  • Download

Lines Matching refs:llvmpipe

57    struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe );  in llvmpipe_destroy()  local
62 if (llvmpipe->blitter) { in llvmpipe_destroy()
63 util_blitter_destroy(llvmpipe->blitter); in llvmpipe_destroy()
66 if (llvmpipe->pipe.stream_uploader) in llvmpipe_destroy()
67 u_upload_destroy(llvmpipe->pipe.stream_uploader); in llvmpipe_destroy()
71 if (llvmpipe->draw) in llvmpipe_destroy()
72 draw_destroy( llvmpipe->draw ); in llvmpipe_destroy()
75 pipe_surface_reference(&llvmpipe->framebuffer.cbufs[i], NULL); in llvmpipe_destroy()
78 pipe_surface_reference(&llvmpipe->framebuffer.zsbuf, NULL); in llvmpipe_destroy()
80 for (i = 0; i < ARRAY_SIZE(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
81 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_FRAGMENT][i], NULL); in llvmpipe_destroy()
84 for (i = 0; i < ARRAY_SIZE(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
85 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_VERTEX][i], NULL); in llvmpipe_destroy()
88 for (i = 0; i < ARRAY_SIZE(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
89 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_GEOMETRY][i], NULL); in llvmpipe_destroy()
92 for (i = 0; i < ARRAY_SIZE(llvmpipe->constants); i++) { in llvmpipe_destroy()
93 for (j = 0; j < ARRAY_SIZE(llvmpipe->constants[i]); j++) { in llvmpipe_destroy()
94 pipe_resource_reference(&llvmpipe->constants[i][j].buffer, NULL); in llvmpipe_destroy()
98 for (i = 0; i < llvmpipe->num_vertex_buffers; i++) { in llvmpipe_destroy()
99 pipe_vertex_buffer_unreference(&llvmpipe->vertex_buffer[i]); in llvmpipe_destroy()
102 lp_delete_setup_variants(llvmpipe); in llvmpipe_destroy()
105 LLVMContextDispose(llvmpipe->context); in llvmpipe_destroy()
107 llvmpipe->context = NULL; in llvmpipe_destroy()
109 align_free( llvmpipe ); in llvmpipe_destroy()
127 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); in llvmpipe_render_condition() local
129 llvmpipe->render_cond_query = query; in llvmpipe_render_condition()
130 llvmpipe->render_cond_mode = mode; in llvmpipe_render_condition()
131 llvmpipe->render_cond_cond = condition; in llvmpipe_render_condition()
138 struct llvmpipe_context *llvmpipe; in llvmpipe_create_context() local
140 llvmpipe = align_malloc(sizeof(struct llvmpipe_context), 16); in llvmpipe_create_context()
141 if (!llvmpipe) in llvmpipe_create_context()
146 memset(llvmpipe, 0, sizeof *llvmpipe); in llvmpipe_create_context()
148 make_empty_list(&llvmpipe->fs_variants_list); in llvmpipe_create_context()
150 make_empty_list(&llvmpipe->setup_variants_list); in llvmpipe_create_context()
153 llvmpipe->pipe.screen = screen; in llvmpipe_create_context()
154 llvmpipe->pipe.priv = priv; in llvmpipe_create_context()
157 llvmpipe->pipe.destroy = llvmpipe_destroy; in llvmpipe_create_context()
158 llvmpipe->pipe.set_framebuffer_state = llvmpipe_set_framebuffer_state; in llvmpipe_create_context()
159 llvmpipe->pipe.clear = llvmpipe_clear; in llvmpipe_create_context()
160 llvmpipe->pipe.flush = do_flush; in llvmpipe_create_context()
162 llvmpipe->pipe.render_condition = llvmpipe_render_condition; in llvmpipe_create_context()
164 llvmpipe_init_blend_funcs(llvmpipe); in llvmpipe_create_context()
165 llvmpipe_init_clip_funcs(llvmpipe); in llvmpipe_create_context()
166 llvmpipe_init_draw_funcs(llvmpipe); in llvmpipe_create_context()
167 llvmpipe_init_sampler_funcs(llvmpipe); in llvmpipe_create_context()
168 llvmpipe_init_query_funcs( llvmpipe ); in llvmpipe_create_context()
169 llvmpipe_init_vertex_funcs(llvmpipe); in llvmpipe_create_context()
170 llvmpipe_init_so_funcs(llvmpipe); in llvmpipe_create_context()
171 llvmpipe_init_fs_funcs(llvmpipe); in llvmpipe_create_context()
172 llvmpipe_init_vs_funcs(llvmpipe); in llvmpipe_create_context()
173 llvmpipe_init_gs_funcs(llvmpipe); in llvmpipe_create_context()
174 llvmpipe_init_rasterizer_funcs(llvmpipe); in llvmpipe_create_context()
175 llvmpipe_init_context_resource_funcs( &llvmpipe->pipe ); in llvmpipe_create_context()
176 llvmpipe_init_surface_functions(llvmpipe); in llvmpipe_create_context()
179 llvmpipe->context = LLVMGetGlobalContext(); in llvmpipe_create_context()
181 llvmpipe->context = LLVMContextCreate(); in llvmpipe_create_context()
184 if (!llvmpipe->context) in llvmpipe_create_context()
190 llvmpipe->draw = draw_create_with_llvm_context(&llvmpipe->pipe, in llvmpipe_create_context()
191 llvmpipe->context); in llvmpipe_create_context()
192 if (!llvmpipe->draw) in llvmpipe_create_context()
197 llvmpipe->setup = lp_setup_create( &llvmpipe->pipe, in llvmpipe_create_context()
198 llvmpipe->draw ); in llvmpipe_create_context()
199 if (!llvmpipe->setup) in llvmpipe_create_context()
202 llvmpipe->pipe.stream_uploader = u_upload_create_default(&llvmpipe->pipe); in llvmpipe_create_context()
203 if (!llvmpipe->pipe.stream_uploader) in llvmpipe_create_context()
205 llvmpipe->pipe.const_uploader = llvmpipe->pipe.stream_uploader; in llvmpipe_create_context()
207 llvmpipe->blitter = util_blitter_create(&llvmpipe->pipe); in llvmpipe_create_context()
208 if (!llvmpipe->blitter) { in llvmpipe_create_context()
213 util_blitter_cache_all_shaders(llvmpipe->blitter); in llvmpipe_create_context()
216 draw_install_aaline_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
217 draw_install_aapoint_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
218 draw_install_pstipple_stage(llvmpipe->draw, &llvmpipe->pipe); in llvmpipe_create_context()
223 draw_wide_point_sprites(llvmpipe->draw, FALSE); in llvmpipe_create_context()
224 draw_enable_point_sprites(llvmpipe->draw, FALSE); in llvmpipe_create_context()
225 draw_wide_point_threshold(llvmpipe->draw, 10000.0); in llvmpipe_create_context()
226 draw_wide_line_threshold(llvmpipe->draw, 10000.0); in llvmpipe_create_context()
234 llvmpipe->dirty |= LP_NEW_SCISSOR; in llvmpipe_create_context()
236 return &llvmpipe->pipe; in llvmpipe_create_context()
239 llvmpipe_destroy(&llvmpipe->pipe); in llvmpipe_create_context()