diff options
author | Marek Olšák <[email protected]> | 2012-12-20 03:43:57 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-04 14:05:49 +0100 |
commit | afec42a648b8e22f1a1a818271cf1d5aa818df81 (patch) | |
tree | 14ac0129142216a9caf42c279f2f79b6d70f1088 /src/gallium/auxiliary/util/u_blitter.h | |
parent | 5665deeaea853640162cd4a71b10504f37ecd98d (diff) |
gallium/u_blitter: implement 3D blitting
Scaling and flipping in the Z direction isn't allowed yet.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index df8927b5b64..20e69ed5b73 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -83,6 +83,15 @@ struct blitter_context enum blitter_attrib_type type, const union pipe_color_union *color); + /** + * Get the next surface layer for the pipe surface, i.e. make a copy + * of the surface and increment the first and last layer by 1. + * + * This callback is exposed, so that drivers can override it if needed. + */ + struct pipe_surface *(*get_next_surface_layer)(struct pipe_context *pipe, + struct pipe_surface *surf); + /* Whether the blitter is running. */ boolean running; |