summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-10-07 17:15:26 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-10-09 13:29:26 -0700
commit9b58863f870c550ead499859b038d32df46a147e (patch)
treec893f5b01450824324144e1ad1c0710c71620f4b /src
parentbb9af8abbd17f90c46fd11f13c9b83e44a5315bd (diff)
i965: Disable fast clears when running with INTEL_DEBUG=nofc
Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c3
-rw-r--r--src/mesa/drivers/dri/i965/brw_clear.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index dc7862b407d..0cc7922e6e5 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -1211,6 +1211,9 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
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))
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c
index 1508171da10..85f27e717b0 100644
--- a/src/mesa/drivers/dri/i965/brw_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_clear.c
@@ -108,6 +108,9 @@ brw_fast_clear_depth(struct gl_context *ctx)
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;