Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
bool can_fast_clear = !partial_clear;
+ if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR)
+ can_fast_clear = false;
+
bool color_write_disable[4] = { false, false, false, false };
if (set_write_disables(irb, GET_COLORMASK(ctx->Color.ColorMask, buf),
color_write_disable))
struct gl_renderbuffer_attachment *depth_att = &fb->Attachment[BUFFER_DEPTH];
const struct gen_device_info *devinfo = &brw->screen->devinfo;
+ if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR)
+ return false;
+
if (devinfo->gen < 6)
return false;