aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_blitter.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-17 13:59:51 +0800
committerChia-I Wu <[email protected]>2013-06-17 16:36:53 +0800
commitebfd7a61c0a4ca9395ef7a522cc491208e3f045f (patch)
tree71507845b346fcbdf88f419dac300df17743812d /src/gallium/drivers/ilo/ilo_blitter.h
parentb4b3a5c6dc159dd46fecca7ce64fe90f0c6c7496 (diff)
ilo: add BLT-based blitting methods to ilo_blitter
Port BLT code in ilo_blit.c to BLT-based blitting methods of ilo_blitter. Add BLT-based clears. The latter is verifed with util_clear(), but it is not in use yet.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blitter.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter.h b/src/gallium/drivers/ilo/ilo_blitter.h
index 24218f27a62..6a2a0d7022e 100644
--- a/src/gallium/drivers/ilo/ilo_blitter.h
+++ b/src/gallium/drivers/ilo/ilo_blitter.h
@@ -77,4 +77,26 @@ ilo_blitter_pipe_clear_fb(struct ilo_blitter *blitter,
const union pipe_color_union *color,
double depth, unsigned stencil);
+bool
+ilo_blitter_blt_copy_resource(struct ilo_blitter *blitter,
+ struct pipe_resource *dst, unsigned dst_level,
+ unsigned dst_x, unsigned dst_y, unsigned dst_z,
+ struct pipe_resource *src, unsigned src_level,
+ const struct pipe_box *src_box);
+
+bool
+ilo_blitter_blt_clear_rt(struct ilo_blitter *blitter,
+ struct pipe_surface *rt,
+ const union pipe_color_union *color,
+ unsigned x, unsigned y,
+ unsigned width, unsigned height);
+
+bool
+ilo_blitter_blt_clear_zs(struct ilo_blitter *blitter,
+ struct pipe_surface *zs,
+ unsigned clear_flags,
+ double depth, unsigned stencil,
+ unsigned x, unsigned y,
+ unsigned width, unsigned height);
+
#endif /* ILO_BLITTER_H */