summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-11 10:12:24 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commit8b3dfdce7604723818d8b7ec17738e94284c50bb (patch)
tree93ad0a98dc93e60cf3efd594beb62b6a852d7e03
parent4285aaecdceac55005e1ea2e75e17c6490d158a9 (diff)
glsl/list: Fix the exec_list_validate function
Some time while refactoring things to make it look nicer before pushing to master, I completely broke the function. This fixes it to be correct. Just goes to show you why you souldn't push code that has no users yet... Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/glsl/list.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/list.h b/src/glsl/list.h
index 924c7296fa7..4774ccca218 100644
--- a/src/glsl/list.h
+++ b/src/glsl/list.h
@@ -534,9 +534,7 @@ exec_list_validate(const struct exec_list *list)
* either require C++ or assume the exec_node is embedded in a structure
* which is not the case for this function.
*/
- for (node = exec_list_get_head_const(list);
- !exec_node_is_tail_sentinel(node);
- node = exec_node_get_next_const(node)) {
+ for (node = list->head; node->next != NULL; node = node->next) {
assert(node->next->prev == node);
assert(node->prev->next == node);
}