Mesa (master): i965/eu: Make it clear that brw_patch_break_count only runs on Gen4-5.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 11 02:31:16 UTC 2014


Module: Mesa
Branch: master
Commit: 7d41170b62570eafa0d3041a87cff9ad57ff418e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d41170b62570eafa0d3041a87cff9ad57ff418e

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Jun 30 09:22:27 2014 -0700

i965/eu: Make it clear that brw_patch_break_count only runs on Gen4-5.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index beac35e..e102d4b 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1631,6 +1631,8 @@ brw_patch_break_cont(struct brw_compile *p, brw_inst *while_inst)
    brw_inst *inst;
    int br = (brw->gen == 5) ? 2 : 1;
 
+   assert(brw->gen < 6);
+
    for (inst = while_inst - 1; inst != do_inst; inst--) {
       /* If the jump count is != 0, that means that this instruction has already
        * been patched because it's part of a loop inside of the one we're




More information about the mesa-commit mailing list