summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_blit.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-01-14 13:50:12 +0800
committerChia-I Wu <[email protected]>2014-01-14 15:43:20 +0800
commit18645d1533032e0ee64714731977e12ee16d959b (patch)
treefbbfe488ab1df2ab0e01fe4ea2991c2fa2848b96 /src/gallium/drivers/ilo/ilo_blit.h
parent1427c3f79faf3d502e5cc7d467c73e095bcd66de (diff)
ilo: use a helper to determine if HiZ is enabled
Add ilo_texture_can_enable_hiz and replace all checks for tex->hiz.bo by calls to ilo_texture_can_enable_hiz().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blit.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_blit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blit.h b/src/gallium/drivers/ilo/ilo_blit.h
index 6e85f79724d..61fa322c9f5 100644
--- a/src/gallium/drivers/ilo/ilo_blit.h
+++ b/src/gallium/drivers/ilo/ilo_blit.h
@@ -60,7 +60,7 @@ ilo_blit_resolve_slices(struct ilo_context *ilo,
* As it is only used to resolve HiZ right now, return early when there is
* no HiZ.
*/
- if (!tex->hiz.bo)
+ if (!ilo_texture_can_enable_hiz(tex, level, first_slice, num_slices))
return;
/*
@@ -74,7 +74,7 @@ ilo_blit_resolve_slices(struct ilo_context *ilo,
* It is assumed there is at most one writer, and that readers read before
* writers write.
*/
- if (tex->hiz.bo) {
+ if (ilo_texture_can_enable_hiz(tex, level, first_slice, num_slices)) {
ilo_blit_resolve_slices_for_hiz(ilo, res, level,
first_slice, num_slices, flags);
}