projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50683d2
)
st/mesa: fixup NDEBUG vs DEBUG causing debug path to get taken.
author
Dave Airlie
<airlied@redhat.com>
Wed, 8 Feb 2012 12:47:05 +0000
(12:47 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 9 Feb 2012 19:39:30 +0000
(19:39 +0000)
From what I can see we were taking the debug path all the time,
when we probably only want it for enable debug path.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom.c
b/src/mesa/state_tracker/st_atom.c
index e1eac818e110d3cf3630561b67ec2cd116f66542..d9cd4aab49bdbec3ea21ed0de578b2c99bd8b3c6 100644
(file)
--- a/
src/mesa/state_tracker/st_atom.c
+++ b/
src/mesa/state_tracker/st_atom.c
@@
-148,10
+148,10
@@
void st_validate_state( struct st_context *st )
/*printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/
-#ifdef NDEBUG
- if (0) {
-#else
+#ifdef DEBUG
if (1) {
+#else
+ if (0) {
#endif
/* Debug version which enforces various sanity checks on the
* state flags which are generated and checked to help ensure