mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965: Disable fast clears when running with INTEL_DEBUG=nofc
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
parent
bb9af8abbd
commit
9b58863f87
2 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue