diff options
author | Marek Olšák <[email protected]> | 2012-08-13 23:37:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-15 19:20:58 +0200 |
commit | e0cc61bd91f5ef84bacaf5e7c6cda9eeefed478d (patch) | |
tree | 40bf40feb4332d2be8ff13eda134d2f349331662 /src/gallium/auxiliary/util | |
parent | b3b5bb9ddb05989b2dc5fc17f88491bbd0e6ecac (diff) |
gallium/u_blitter: document custom meta helpers
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 19 |
2 files changed, 16 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index a5510d553e9..a95e1b5356e 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -962,7 +962,7 @@ void util_blitter_clear(struct blitter_context *blitter, NULL, NULL); } -void util_blitter_clear_depth_custom(struct blitter_context *blitter, +void util_blitter_custom_clear_depth(struct blitter_context *blitter, unsigned width, unsigned height, double depth, void *custom_dsa) { @@ -1493,7 +1493,7 @@ void util_blitter_copy_buffer(struct blitter_context *blitter, } /* probably radeon specific */ -void util_blitter_resolve_color_custom(struct blitter_context *blitter, +void util_blitter_custom_resolve_color(struct blitter_context *blitter, struct pipe_resource *dst, unsigned dst_level, unsigned dst_layer, diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index 1207a9ae306..f227902c163 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -156,10 +156,6 @@ void util_blitter_clear(struct blitter_context *blitter, const union pipe_color_union *color, double depth, unsigned stencil); -void util_blitter_clear_depth_custom(struct blitter_context *blitter, - unsigned width, unsigned height, - double depth, void *custom_dsa); - /** * Check if the blitter (with the help of the driver) can blit between * the two resources. @@ -294,13 +290,26 @@ void util_blitter_clear_depth_stencil(struct blitter_context *blitter, unsigned dstx, unsigned dsty, unsigned width, unsigned height); +/* The following functions are customized variants of the clear functions. + * Some drivers use them internally to do things like MSAA resolve + * and resource decompression. It usually consists of rendering a full-screen + * quad with a special blend or DSA state. + */ + +/* Used by r300g for depth decompression. */ +void util_blitter_custom_clear_depth(struct blitter_context *blitter, + unsigned width, unsigned height, + double depth, void *custom_dsa); + +/* Used by r600g for depth decompression. */ void util_blitter_custom_depth_stencil(struct blitter_context *blitter, struct pipe_surface *zsurf, struct pipe_surface *cbsurf, unsigned sample_mask, void *dsa_stage, float depth); -void util_blitter_resolve_color_custom(struct blitter_context *blitter, +/* Used by r600g for MSAA color resolve. */ +void util_blitter_custom_resolve_color(struct blitter_context *blitter, struct pipe_resource *dst, unsigned dst_level, unsigned dst_layer, |