From: Ben Widawsky Date: Tue, 27 Sep 2016 22:02:12 +0000 (-0700) Subject: i965: Remove useless (harmful) assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29783c0887b3afd345e15e4e6910c04185219812;p=mesa.git i965: Remove useless (harmful) assertion The code already skips doing the depth stall on gen >= 8, and as we enable new platforms this assertion will fail needlessly. Instead of changing the caller, make this simple change. Signed-off-by: Ben Widawsky Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/drivers/dri/i965/brw_pipe_control.c b/src/mesa/drivers/dri/i965/brw_pipe_control.c index 640bfdc4283..dd426bf2154 100644 --- a/src/mesa/drivers/dri/i965/brw_pipe_control.c +++ b/src/mesa/drivers/dri/i965/brw_pipe_control.c @@ -234,7 +234,7 @@ brw_emit_pipe_control_write(struct brw_context *brw, uint32_t flags, void brw_emit_depth_stall_flushes(struct brw_context *brw) { - assert(brw->gen >= 6 && brw->gen <= 9); + assert(brw->gen >= 6); /* Starting on BDW, these pipe controls are unnecessary. *