Lines Matching refs:ilo
361 finalize_cbuf_state(struct ilo_context *ilo,
379 u_upload_data(ilo->uploader, 0, cbuf->cso[i].info.size, 16,
387 ilo->dev, &cbuf->cso[i].info);
389 ilo->state_vector.dirty |= ILO_DIRTY_CBUF;
394 finalize_constant_buffers(struct ilo_context *ilo)
396 struct ilo_state_vector *vec = &ilo->state_vector;
399 finalize_cbuf_state(ilo, &vec->cbuf[PIPE_SHADER_VERTEX], vec->vs);
401 if (ilo->state_vector.dirty & (ILO_DIRTY_CBUF | ILO_DIRTY_FS))
402 finalize_cbuf_state(ilo, &vec->cbuf[PIPE_SHADER_FRAGMENT], vec->fs);
406 finalize_index_buffer(struct ilo_context *ilo)
408 const struct ilo_dev *dev = ilo->dev;
409 struct ilo_state_vector *vec = &ilo->state_vector;
429 u_upload_data(ilo->uploader, 0, size, 16,
433 u_upload_buffer(ilo->uploader, 0,
477 finalize_vertex_elements(struct ilo_context *ilo)
479 const struct ilo_dev *dev = ilo->dev;
480 struct ilo_state_vector *vec = &ilo->state_vector;
515 finalize_vertex_buffers(struct ilo_context *ilo)
517 const struct ilo_dev *dev = ilo->dev;
518 struct ilo_state_vector *vec = &ilo->state_vector;
546 finalize_urb(struct ilo_context *ilo)
549 const struct ilo_dev *dev = ilo->dev;
550 struct ilo_state_vector *vec = &ilo->state_vector;
594 finalize_viewport(struct ilo_context *ilo)
596 const struct ilo_dev *dev = ilo->dev;
597 struct ilo_state_vector *vec = &ilo->state_vector;
648 finalize_rasterizer(struct ilo_context *ilo)
650 const struct ilo_dev *dev = ilo->dev;
651 struct ilo_state_vector *vec = &ilo->state_vector;
690 finalize_blend_rt(struct ilo_context *ilo)
692 struct ilo_state_vector *vec = &ilo->state_vector;
744 finalize_blend(struct ilo_context *ilo)
746 const struct ilo_dev *dev = ilo->dev;
747 struct ilo_state_vector *vec = &ilo->state_vector;
756 if (finalize_blend_rt(ilo) ||
786 ilo_finalize_3d_states(struct ilo_context *ilo,
789 ilo->state_vector.draw = draw;
791 ilo->state_vector.draw_info.topology = ilo_translate_draw_mode(draw->mode);
792 ilo->state_vector.draw_info.indexed = draw->indexed;
793 ilo->state_vector.draw_info.vertex_count = draw->count;
794 ilo->state_vector.draw_info.vertex_start = draw->start;
795 ilo->state_vector.draw_info.instance_count = draw->instance_count;
796 ilo->state_vector.draw_info.instance_start = draw->start_instance;
797 ilo->state_vector.draw_info.vertex_base = draw->index_bias;
799 finalize_blend(ilo);
800 finalize_shader_states(&ilo->state_vector);
801 finalize_constant_buffers(ilo);
802 finalize_index_buffer(ilo);
803 finalize_vertex_elements(ilo);
804 finalize_vertex_buffers(ilo);
806 finalize_urb(ilo);
807 finalize_rasterizer(ilo);
808 finalize_viewport(ilo);
810 u_upload_unmap(ilo->uploader);
842 ilo_finalize_compute_states(struct ilo_context *ilo)
844 finalize_global_binding(&ilo->state_vector);
1295 struct ilo_context *ilo = ilo_context(pipe);
1298 shader = ilo_shader_create_fs(ilo->dev, state, &ilo->state_vector);
1301 ilo_shader_cache_add(ilo->shader_cache, shader);
1319 struct ilo_context *ilo = ilo_context(pipe);
1322 ilo_shader_cache_remove(ilo->shader_cache, fs);
1330 struct ilo_context *ilo = ilo_context(pipe);
1333 shader = ilo_shader_create_vs(ilo->dev, state, &ilo->state_vector);
1336 ilo_shader_cache_add(ilo->shader_cache, shader);
1354 struct ilo_context *ilo = ilo_context(pipe);
1357 ilo_shader_cache_remove(ilo->shader_cache, vs);
1365 struct ilo_context *ilo = ilo_context(pipe);
1368 shader = ilo_shader_create_gs(ilo->dev, state, &ilo->state_vector);
1371 ilo_shader_cache_add(ilo->shader_cache, shader);
1393 struct ilo_context *ilo = ilo_context(pipe);
1396 ilo_shader_cache_remove(ilo->shader_cache, gs);
2186 struct ilo_context *ilo = ilo_context(pipe);
2189 shader = ilo_shader_create_cs(ilo->dev, state, &ilo->state_vector);
2192 ilo_shader_cache_add(ilo->shader_cache, shader);
2210 struct ilo_context *ilo = ilo_context(pipe);
2213 ilo_shader_cache_remove(ilo->shader_cache, cs);
2314 ilo_init_state_functions(struct ilo_context *ilo)
2318 ilo->base.create_blend_state = ilo_create_blend_state;
2319 ilo->base.bind_blend_state = ilo_bind_blend_state;
2320 ilo->base.delete_blend_state = ilo_delete_blend_state;
2321 ilo->base.create_sampler_state = ilo_create_sampler_state;
2322 ilo->base.bind_sampler_states = ilo_bind_sampler_states;
2323 ilo->base.delete_sampler_state = ilo_delete_sampler_state;
2324 ilo->base.create_rasterizer_state = ilo_create_rasterizer_state;
2325 ilo->base.bind_rasterizer_state = ilo_bind_rasterizer_state;
2326 ilo->base.delete_rasterizer_state = ilo_delete_rasterizer_state;
2327 ilo->base.create_depth_stencil_alpha_state = ilo_create_depth_stencil_alpha_state;
2328 ilo->base.bind_depth_stencil_alpha_state = ilo_bind_depth_stencil_alpha_state;
2329 ilo->base.delete_depth_stencil_alpha_state = ilo_delete_depth_stencil_alpha_state;
2330 ilo->base.create_fs_state = ilo_create_fs_state;
2331 ilo->base.bind_fs_state = ilo_bind_fs_state;
2332 ilo->base.delete_fs_state = ilo_delete_fs_state;
2333 ilo->base.create_vs_state = ilo_create_vs_state;
2334 ilo->base.bind_vs_state = ilo_bind_vs_state;
2335 ilo->base.delete_vs_state = ilo_delete_vs_state;
2336 ilo->base.create_gs_state = ilo_create_gs_state;
2337 ilo->base.bind_gs_state = ilo_bind_gs_state;
2338 ilo->base.delete_gs_state = ilo_delete_gs_state;
2339 ilo->base.create_vertex_elements_state = ilo_create_vertex_elements_state;
2340 ilo->base.bind_vertex_elements_state = ilo_bind_vertex_elements_state;
2341 ilo->base.delete_vertex_elements_state = ilo_delete_vertex_elements_state;
2343 ilo->base.set_blend_color = ilo_set_blend_color;
2344 ilo->base.set_stencil_ref = ilo_set_stencil_ref;
2345 ilo->base.set_sample_mask = ilo_set_sample_mask;
2346 ilo->base.set_clip_state = ilo_set_clip_state;
2347 ilo->base.set_constant_buffer = ilo_set_constant_buffer;
2348 ilo->base.set_framebuffer_state = ilo_set_framebuffer_state;
2349 ilo->base.set_polygon_stipple = ilo_set_polygon_stipple;
2350 ilo->base.set_scissor_states = ilo_set_scissor_states;
2351 ilo->base.set_viewport_states = ilo_set_viewport_states;
2352 ilo->base.set_sampler_views = ilo_set_sampler_views;
2353 ilo->base.set_shader_images = ilo_set_shader_images;
2354 ilo->base.set_vertex_buffers = ilo_set_vertex_buffers;
2355 ilo->base.set_index_buffer = ilo_set_index_buffer;
2357 ilo->base.create_stream_output_target = ilo_create_stream_output_target;
2358 ilo->base.stream_output_target_destroy = ilo_stream_output_target_destroy;
2359 ilo->base.set_stream_output_targets = ilo_set_stream_output_targets;
2361 ilo->base.create_sampler_view = ilo_create_sampler_view;
2362 ilo->base.sampler_view_destroy = ilo_sampler_view_destroy;
2364 ilo->base.create_surface = ilo_create_surface;
2365 ilo->base.surface_destroy = ilo_surface_destroy;
2367 ilo->base.create_compute_state = ilo_create_compute_state;
2368 ilo->base.bind_compute_state = ilo_bind_compute_state;
2369 ilo->base.delete_compute_state = ilo_delete_compute_state;
2370 ilo->base.set_compute_resources = ilo_set_compute_resources;
2371 ilo->base.set_global_binding = ilo_set_global_binding;