Lines Matching refs:blitter

140     * Always create the blitter before Draw. */
417 void util_blitter_destroy(struct blitter_context *blitter)
419 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
420 struct pipe_context *pipe = blitter->pipe;
498 void util_blitter_set_texture_multisample(struct blitter_context *blitter,
501 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
506 void util_blitter_set_running_flag(struct blitter_context *blitter)
508 if (blitter->running) {
512 blitter->running = TRUE;
514 blitter->pipe->set_active_query_state(blitter->pipe, false);
517 void util_blitter_unset_running_flag(struct blitter_context *blitter)
519 if (!blitter->running) {
523 blitter->running = FALSE;
525 blitter->pipe->set_active_query_state(blitter->pipe, true);
539 void util_blitter_restore_vertex_states(struct blitter_context *blitter)
541 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
598 void util_blitter_restore_fragment_states(struct blitter_context *blitter)
600 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
642 void util_blitter_restore_render_cond(struct blitter_context *blitter)
644 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
655 void util_blitter_restore_fb_state(struct blitter_context *blitter)
657 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
670 void util_blitter_restore_textures(struct blitter_context *blitter)
672 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
694 void util_blitter_restore_constant_buffer_state(struct blitter_context *blitter)
696 struct pipe_context *pipe = blitter->pipe;
698 pipe->set_constant_buffer(pipe, PIPE_SHADER_FRAGMENT, blitter->cb_slot,
699 &blitter->saved_fs_constant_buffer);
700 pipe_resource_reference(&blitter->saved_fs_constant_buffer.buffer, NULL);
1089 void util_blitter_cache_all_shaders(struct blitter_context *blitter)
1091 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1092 struct pipe_context *pipe = blitter->pipe;
1229 void util_blitter_draw_rectangle(struct blitter_context *blitter,
1234 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1286 void util_blitter_common_clear_setup(struct blitter_context *blitter,
1291 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1294 util_blitter_set_running_flag(blitter);
1322 static void util_blitter_clear_custom(struct blitter_context *blitter,
1330 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1336 util_blitter_common_clear_setup(blitter, width, height, clear_buffers,
1352 blitter->draw_rectangle(blitter, 0, 0, width, height, (float) depth,
1356 util_blitter_restore_vertex_states(blitter);
1357 util_blitter_restore_fragment_states(blitter);
1358 util_blitter_restore_render_cond(blitter);
1359 util_blitter_unset_running_flag(blitter);
1362 void util_blitter_clear(struct blitter_context *blitter,
1368 util_blitter_clear_custom(blitter, width, height, num_layers,
1373 void util_blitter_custom_clear_depth(struct blitter_context *blitter,
1378 util_blitter_clear_custom(blitter, width, height, 0, 0, &color, depth, 0,
1428 static boolean is_blit_generic_supported(struct blitter_context *blitter,
1435 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1491 boolean util_blitter_is_copy_supported(struct blitter_context *blitter,
1495 return is_blit_generic_supported(blitter, dst, dst->format,
1499 boolean util_blitter_is_blit_supported(struct blitter_context *blitter,
1502 return is_blit_generic_supported(blitter,
1508 void util_blitter_copy_texture(struct blitter_context *blitter,
1516 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1537 util_blitter_blit_generic(blitter, dst_view, &dstbox,
1675 void util_blitter_blit_generic(struct blitter_context *blitter,
1685 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1721 util_blitter_set_running_flag(blitter);
1826 util_blitter_restore_vertex_states(blitter);
1827 util_blitter_restore_fragment_states(blitter);
1828 util_blitter_restore_textures(blitter);
1829 util_blitter_restore_fb_state(blitter);
1833 util_blitter_restore_render_cond(blitter);
1834 util_blitter_unset_running_flag(blitter);
1838 util_blitter_blit(struct blitter_context *blitter,
1843 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1860 util_blitter_blit_generic(blitter, dst_view, &info->dst.box,
1870 void util_blitter_generate_mipmap(struct blitter_context *blitter,
1876 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1892 util_blitter_set_running_flag(blitter);
1963 util_blitter_restore_vertex_states(blitter);
1964 util_blitter_restore_fragment_states(blitter);
1965 util_blitter_restore_textures(blitter);
1966 util_blitter_restore_fb_state(blitter);
1967 util_blitter_restore_render_cond(blitter);
1968 util_blitter_unset_running_flag(blitter);
1972 void util_blitter_clear_render_target(struct blitter_context *blitter,
1978 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
1988 util_blitter_set_running_flag(blitter);
2019 blitter->draw_rectangle(blitter, dstx, dsty, dstx+width, dsty+height, 0,
2023 util_blitter_restore_vertex_states(blitter);
2024 util_blitter_restore_fragment_states(blitter);
2025 util_blitter_restore_fb_state(blitter);
2026 util_blitter_restore_render_cond(blitter);
2027 util_blitter_unset_running_flag(blitter);
2031 void util_blitter_clear_depth_stencil(struct blitter_context *blitter,
2039 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2050 util_blitter_set_running_flag(blitter);
2096 blitter->draw_rectangle(blitter, dstx, dsty, dstx+width, dsty+height,
2101 util_blitter_restore_vertex_states(blitter);
2102 util_blitter_restore_fragment_states(blitter);
2103 util_blitter_restore_fb_state(blitter);
2104 util_blitter_restore_render_cond(blitter);
2105 util_blitter_unset_running_flag(blitter);
2109 void util_blitter_custom_depth_stencil(struct blitter_context *blitter,
2115 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2124 util_blitter_set_running_flag(blitter);
2157 blitter->draw_rectangle(blitter, 0, 0, zsurf->width, zsurf->height, depth,
2160 util_blitter_restore_vertex_states(blitter);
2161 util_blitter_restore_fragment_states(blitter);
2162 util_blitter_restore_fb_state(blitter);
2163 util_blitter_restore_render_cond(blitter);
2164 util_blitter_unset_running_flag(blitter);
2167 void util_blitter_copy_buffer(struct blitter_context *blitter,
2174 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2204 util_blitter_set_running_flag(blitter);
2228 util_blitter_restore_vertex_states(blitter);
2229 util_blitter_restore_render_cond(blitter);
2230 util_blitter_unset_running_flag(blitter);
2234 void util_blitter_clear_buffer(struct blitter_context *blitter,
2240 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2274 util_blitter_set_running_flag(blitter);
2296 util_blitter_restore_vertex_states(blitter);
2297 util_blitter_restore_render_cond(blitter);
2298 util_blitter_unset_running_flag(blitter);
2304 void util_blitter_custom_resolve_color(struct blitter_context *blitter,
2314 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2319 util_blitter_set_running_flag(blitter);
2356 blitter->draw_rectangle(blitter, 0, 0, src->width0, src->height0,
2358 util_blitter_restore_fb_state(blitter);
2359 util_blitter_restore_vertex_states(blitter);
2360 util_blitter_restore_fragment_states(blitter);
2361 util_blitter_restore_render_cond(blitter);
2362 util_blitter_unset_running_flag(blitter);
2368 void util_blitter_custom_color(struct blitter_context *blitter,
2372 struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
2381 util_blitter_set_running_flag(blitter);
2406 blitter->draw_rectangle(blitter, 0, 0, dstsurf->width, dstsurf->height,
2409 util_blitter_restore_vertex_states(blitter);
2410 util_blitter_restore_fragment_states(blitter);
2411 util_blitter_restore_fb_state(blitter);
2412 util_blitter_restore_render_cond(blitter);
2413 util_blitter_unset_running_flag(blitter);