From c4df2e333765164e0d4926f03b969a3c9fdca691 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 12 Sep 2012 01:36:31 +0200 Subject: gallium: add blit into the interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested-by: Michel Dänzer Reviewed-by: Brian Paul --- src/gallium/include/pipe/p_context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/include/pipe/p_context.h') diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 5d468127779..3c33bc6cb84 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -39,6 +39,7 @@ extern "C" { struct pipe_blend_color; struct pipe_blend_state; +struct pipe_blit_info; struct pipe_box; struct pipe_clip_state; struct pipe_constant_buffer; @@ -297,6 +298,12 @@ struct pipe_context { unsigned src_level, const struct pipe_box *src_box); + /* Optimal hardware path for blitting pixels. + * Scaling, format conversion, up- and downsampling (resolve) are allowed. + */ + void (*blit)(struct pipe_context *pipe, + const struct pipe_blit_info *info); + /** * Resolve a multisampled resource into a non-multisampled one. * Source and destination must be of the same format. -- cgit v1.2.3