aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_blitter.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-12-28 15:57:49 +0800
committerChia-I Wu <[email protected]>2014-01-08 18:11:35 +0800
commit127fbc086ba9365e9304843af09fe730edb1d389 (patch)
treee28cda1420de8537afb9807fc07bdae6490cf8a9 /src/gallium/drivers/ilo/ilo_blitter.c
parent546416d49597c4879d045707d5587317e77e160c (diff)
ilo: add HiZ op support to the pipelines
Add blitter functions to perform Depth Buffer Clear, Depth Buffer Resolve, and Hierarchical Depth Buffer Resolve. Those functions set ilo_blitter up and pass it to the pipelines to emit the commands.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blitter.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter.c b/src/gallium/drivers/ilo/ilo_blitter.c
index 10335920364..d08563da436 100644
--- a/src/gallium/drivers/ilo/ilo_blitter.c
+++ b/src/gallium/drivers/ilo/ilo_blitter.c
@@ -70,5 +70,10 @@ ilo_blitter_destroy(struct ilo_blitter *blitter)
if (blitter->pipe_blitter)
util_blitter_destroy(blitter->pipe_blitter);
+ if (blitter->buffer.res) {
+ struct pipe_screen *screen = blitter->ilo->base.screen;
+ screen->resource_destroy(screen, blitter->buffer.res);
+ }
+
FREE(blitter);
}