Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
mt->fast_clear_state = new_state;
}
+bool
+intel_miptree_has_color_unresolved(const struct intel_mipmap_tree *mt,
+ unsigned start_level, unsigned num_levels,
+ unsigned start_layer, unsigned num_layers)
+{
+ return mt->fast_clear_state != INTEL_FAST_CLEAR_STATE_RESOLVED;
+}
+
void
intel_miptree_used_for_rendering(const struct brw_context *brw,
struct intel_mipmap_tree *mt, unsigned level,
unsigned num_layers,
enum intel_fast_clear_state new_state);
+bool
+intel_miptree_has_color_unresolved(const struct intel_mipmap_tree *mt,
+ unsigned start_level, unsigned num_levels,
+ unsigned start_layer, unsigned num_layers);
+
/**
* Update the fast clear state for a miptree to indicate that it has been used
* for rendering.