[Mesa-dev] [PATCH 06/11] i965/eu: Make it clear that brw_find_loop_end only runs on Gen6+.
Kenneth Graunke
kenneth at whitecape.org
Sat Aug 9 14:28:46 PDT 2014
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>
---
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 33684d4..2e11eca 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -2384,6 +2384,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.
*/
--
2.0.0
More information about the mesa-dev
mailing list