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 <jason.ekstrand@intel.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user