Mesa (master): i965/eu: Make it clear that brw_find_loop_end only runs on Gen6+.

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


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Jun 30 08:06:43 2014 -0700

i965/eu: Make it clear that brw_find_loop_end only runs on Gen6+.

It has Gen6+ knowledge baked in, and indeed is only called for Gen6+,
but it wasn't immediately obvious that this was the case.

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 1128bad..beac35e 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -2341,6 +2341,8 @@ brw_find_loop_end(struct brw_compile *p, int start_offset)
    int scale = 8;
    void *store = p->store;
 
+   assert(brw->gen >= 6);
+
    /* Always start after the instruction (such as a WHILE) we're trying to fix
     * up.
     */




More information about the mesa-commit mailing list