intel: Disable fast color clear on icl
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 21 Nov 2017 21:46:25 +0000 (13:46 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 22 Mar 2018 16:56:09 +0000 (09:56 -0700)
Disabling fast color clear makes fbo-clearmipmap test render correct
texture in base miplevel. Fast color clear is anyways disabled for
non-base miplevels.

Acked-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.c

index 72578b6ea5ccce855e6d8705f0bcbc3b45c9c4ce..a9c6dc4d50141d69d583662362915b230142174b 100644 (file)
@@ -1228,6 +1228,11 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
       }
    }
 
+   /* FINISHME: Debug and enable fast clears */
+   const struct gen_device_info *devinfo = &brw->screen->devinfo;
+   if (devinfo->gen >= 11)
+      can_fast_clear = false;
+
    if (can_fast_clear) {
       const enum isl_aux_state aux_state =
          intel_miptree_get_aux_state(irb->mt, irb->mt_level, irb->mt_layer);