diff options
author | Chia-I Wu <[email protected]> | 2014-01-14 13:50:12 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-01-14 15:43:20 +0800 |
commit | 18645d1533032e0ee64714731977e12ee16d959b (patch) | |
tree | fbbfe488ab1df2ab0e01fe4ea2991c2fa2848b96 /src/gallium/drivers/ilo/ilo_blit.c | |
parent | 1427c3f79faf3d502e5cc7d467c73e095bcd66de (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.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_blit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blit.c b/src/gallium/drivers/ilo/ilo_blit.c index 17193ab7dc6..ab1ec5bbd61 100644 --- a/src/gallium/drivers/ilo/ilo_blit.c +++ b/src/gallium/drivers/ilo/ilo_blit.c @@ -155,7 +155,8 @@ ilo_blit_resolve_slices_for_hiz(struct ilo_context *ilo, ILO_TEXTURE_CPU_WRITE; unsigned i; - assert(tex->base.target != PIPE_BUFFER && tex->hiz.bo); + assert(tex->base.target != PIPE_BUFFER && + ilo_texture_can_enable_hiz(tex, level, first_slice, num_slices)); if (flags & ILO_TEXTURE_RENDER_WRITE) { /* |