---
src/mesa/drivers/dri/i965/brw_blorp.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c
b/src/mesa/drivers/dri/i965/brw_blorp.c
index 4c61afc..9bad366 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -898,19 +898,10 @@ do_single_blorp_clear(struct brw_context *brw, struct
gl_framebuffer *fb,
DBG("%s (slow) to mt %p level %d layer %d+%d\n", __FUNCTION__,
irb->mt, irb->mt_level, irb->mt_layer, num_layers);
-
enum isl_aux_usage aux_usage =
- blorp_get_aux_usage(brw, irb->mt,
- (1 << ISL_AUX_USAGE_MCS) |
- (1 << ISL_AUX_USAGE_CCS_E) |
- (1 << ISL_AUX_USAGE_CCS_D));
- intel_miptree_prepare_access(brw, irb->mt, level, 1,
- irb->mt_layer, num_layers,
- aux_usage != ISL_AUX_USAGE_NONE,
- aux_usage != ISL_AUX_USAGE_NONE);
- intel_miptree_finish_write(brw, irb->mt, level,
- irb->mt_layer, num_layers,
- aux_usage != ISL_AUX_USAGE_NONE);
+ intel_miptree_render_aux_usage(brw, irb->mt, encode_srgb);