Mesa (master): i965/gen7: Add missing ! to brw->gs.prog_active assertion.
Kenneth Graunke
kwg at kemper.freedesktop.org
Wed Jun 29 17:58:12 UTC 2011
Module: Mesa
Branch: master
Commit: 5ddc518401ae69ad92218643f00ef50617a0f11d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ddc518401ae69ad92218643f00ef50617a0f11d
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jun 29 10:53:51 2011 -0700
i965/gen7: Add missing ! to brw->gs.prog_active assertion.
A typo in commit c173541d9769 accidentally removed the !.
It's supposed to assert that there is _not_ an active GS program.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38762
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/gen7_urb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/gen7_urb.c b/src/mesa/drivers/dri/i965/gen7_urb.c
index b36d780..2b650e9 100644
--- a/src/mesa/drivers/dri/i965/gen7_urb.c
+++ b/src/mesa/drivers/dri/i965/gen7_urb.c
@@ -78,7 +78,7 @@ upload_urb(struct brw_context *brw)
assert(brw->urb.nr_vs_entries % 8 == 0);
assert(brw->urb.nr_gs_entries % 8 == 0);
/* GS requirement */
- assert(brw->gs.prog_active);
+ assert(!brw->gs.prog_active);
BEGIN_BATCH(2);
OUT_BATCH(_3DSTATE_PUSH_CONSTANT_ALLOC_VS << 16 | (2 - 2));
More information about the mesa-commit
mailing list