i965: Remove useless (harmful) assertion
authorBen Widawsky <ben@bwidawsk.net>
Tue, 27 Sep 2016 22:02:12 +0000 (15:02 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Wed, 28 Sep 2016 16:42:53 +0000 (09:42 -0700)
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 <ben@bwidawsk.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_pipe_control.c

index 640bfdc..dd426bf 100644 (file)
@@ -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.
     *