Lines Matching refs:i915
53 i915_util_blitter_save_states(struct i915_context *i915) in i915_util_blitter_save_states() argument
55 util_blitter_save_blend(i915->blitter, (void *)i915->blend); in i915_util_blitter_save_states()
56 util_blitter_save_depth_stencil_alpha(i915->blitter, (void *)i915->depth_stencil); in i915_util_blitter_save_states()
57 util_blitter_save_stencil_ref(i915->blitter, &i915->stencil_ref); in i915_util_blitter_save_states()
58 util_blitter_save_rasterizer(i915->blitter, (void *)i915->rasterizer); in i915_util_blitter_save_states()
59 util_blitter_save_fragment_shader(i915->blitter, i915->fs); in i915_util_blitter_save_states()
60 util_blitter_save_vertex_shader(i915->blitter, i915->vs); in i915_util_blitter_save_states()
61 util_blitter_save_viewport(i915->blitter, &i915->viewport); in i915_util_blitter_save_states()
62 util_blitter_save_scissor(i915->blitter, &i915->scissor); in i915_util_blitter_save_states()
63 util_blitter_save_vertex_elements(i915->blitter, i915->velems); in i915_util_blitter_save_states()
64 util_blitter_save_vertex_buffer_slot(i915->blitter, in i915_util_blitter_save_states()
65 i915->vertex_buffers); in i915_util_blitter_save_states()
67 util_blitter_save_framebuffer(i915->blitter, &i915->framebuffer); in i915_util_blitter_save_states()
69 util_blitter_save_fragment_sampler_states(i915->blitter, in i915_util_blitter_save_states()
70 i915->num_samplers, in i915_util_blitter_save_states()
71 (void**)i915->fragment_sampler); in i915_util_blitter_save_states()
72 util_blitter_save_fragment_sampler_views(i915->blitter, in i915_util_blitter_save_states()
73 i915->num_fragment_sampler_views, in i915_util_blitter_save_states()
74 i915->fragment_sampler_views); in i915_util_blitter_save_states()
84 struct i915_context *i915 = i915_context(pipe); in i915_surface_copy_render() local
108 util_blitter_default_src_texture(i915->blitter, &src_templ, src, src_level); in i915_surface_copy_render()
110 if (!util_blitter_is_copy_supported(i915->blitter, dst, src)) in i915_surface_copy_render()
113 i915_util_blitter_save_states(i915); in i915_surface_copy_render()
121 util_blitter_blit_generic(i915->blitter, dst_view, &dstbox, in i915_surface_copy_render()
140 struct i915_context *i915 = i915_context(pipe); in i915_clear_render_target_render() local
143 util_blitter_save_framebuffer(i915->blitter, &i915->framebuffer); in i915_clear_render_target_render()
152 if (i915->dirty) in i915_clear_render_target_render()
153 i915_update_derived(i915); in i915_clear_render_target_render()
158 pipe->set_framebuffer_state(pipe, &i915->blitter->saved_fb_state); in i915_clear_render_target_render()
159 util_unreference_framebuffer_state(&i915->blitter->saved_fb_state); in i915_clear_render_target_render()
160 i915->blitter->saved_fb_state.nr_cbufs = ~0; in i915_clear_render_target_render()
173 struct i915_context *i915 = i915_context(pipe); in i915_clear_depth_stencil_render() local
176 util_blitter_save_framebuffer(i915->blitter, &i915->framebuffer); in i915_clear_depth_stencil_render()
184 if (i915->dirty) in i915_clear_depth_stencil_render()
185 i915_update_derived(i915); in i915_clear_depth_stencil_render()
191 pipe->set_framebuffer_state(pipe, &i915->blitter->saved_fb_state); in i915_clear_depth_stencil_render()
192 util_unreference_framebuffer_state(&i915->blitter->saved_fb_state); in i915_clear_depth_stencil_render()
193 i915->blitter->saved_fb_state.nr_cbufs = ~0; in i915_clear_depth_stencil_render()
252 struct i915_context *i915 = i915_context(pipe); in i915_blit() local
264 if (!util_blitter_is_blit_supported(i915->blitter, &info)) { in i915_blit()
271 i915_util_blitter_save_states(i915); in i915_blit()
273 util_blitter_blit(i915->blitter, &info); in i915_blit()
402 i915_init_surface_functions(struct i915_context *i915) in i915_init_surface_functions() argument
404 if (i915_screen(i915->base.screen)->debug.use_blitter) { in i915_init_surface_functions()
405 i915->base.resource_copy_region = i915_surface_copy_blitter; in i915_init_surface_functions()
406 i915->base.clear_render_target = i915_clear_render_target_blitter; in i915_init_surface_functions()
407 i915->base.clear_depth_stencil = i915_clear_depth_stencil_blitter; in i915_init_surface_functions()
409 i915->base.resource_copy_region = i915_surface_copy_render; in i915_init_surface_functions()
410 i915->base.clear_render_target = i915_clear_render_target_render; in i915_init_surface_functions()
411 i915->base.clear_depth_stencil = i915_clear_depth_stencil_render; in i915_init_surface_functions()
413 i915->base.blit = i915_blit; in i915_init_surface_functions()
414 i915->base.flush_resource = i915_flush_resource; in i915_init_surface_functions()
415 i915->base.create_surface = i915_create_surface; in i915_init_surface_functions()
416 i915->base.surface_destroy = i915_surface_destroy; in i915_init_surface_functions()