- /*
- * flags may be
- *
- * - ILO_TEXTURE_CPU_{READ,WRITE} (transfer)
- * - ILO_TEXTURE_BLT_{READ,WRITE} (BLT copy or clear)
- * - ILO_TEXTURE_RENDER_{READ,WRITE} (sample or render)
- * - ILO_TEXTURE_CLEAR
- *
- * 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)) {