diff options
author | Chia-I Wu <[email protected]> | 2015-05-02 15:36:59 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-05-02 22:14:07 +0800 |
commit | 9b705ec32d8cd527ab8d6ebc89f6550d52908c62 (patch) | |
tree | ec891e72a0b64be15fc4ade855f36669c29bff5b /src/gallium/drivers/ilo/ilo_resource.h | |
parent | 430594c34ff594b5bf47417b7240a62fc93509e9 (diff) |
ilo: add ilo_image_can_enable_aux()
It replaces ilo_texture_can_enable_hiz().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_resource.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_resource.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.h b/src/gallium/drivers/ilo/ilo_resource.h index 0a835d99210..d602e0cbf70 100644 --- a/src/gallium/drivers/ilo/ilo_resource.h +++ b/src/gallium/drivers/ilo/ilo_resource.h @@ -66,16 +66,6 @@ enum ilo_texture_flags { * flags, the slice has been cleared to ilo_texture_slice::clear_value. */ ILO_TEXTURE_CLEAR = 1 << 6, - - /* - * Set when HiZ can be enabled. - * - * It is never set in resolve flags. When set in slice flags, the slice - * can have HiZ enabled. It is to be noted that this bit is always set for - * either all or none of the slices in a level, allowing quick check in - * case of layered rendering. - */ - ILO_TEXTURE_HIZ = 1 << 7, }; /** @@ -189,18 +179,4 @@ ilo_texture_set_slice_clear_value(struct ilo_texture *tex, unsigned level, } } -static inline bool -ilo_texture_can_enable_hiz(const struct ilo_texture *tex, unsigned level, - unsigned first_slice, unsigned num_slices) -{ - /* - * Either all or none of the slices in the same level have ILO_TEXTURE_HIZ - * set. It suffices to check only the first slice. - */ - const struct ilo_texture_slice *slice = - ilo_texture_get_slice(tex, level, 0); - - return (tex->image.aux.bo && (slice->flags & ILO_TEXTURE_HIZ)); -} - #endif /* ILO_RESOURCE_H */ |