Commit 08dc93c6 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

glsl/list: Add an exec_list_is_singular() helper.

Similar to list_is_singular() in util/list.h.
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
Reviewed-by: Matt Turner's avatarMatt Turner <>
parent 376c3e8f
......@@ -372,6 +372,13 @@ exec_list_is_empty(const struct exec_list *list)
return list-> == &list->tail_sentinel;
static inline bool
exec_list_is_singular(const struct exec_list *list)
return !exec_list_is_empty(list) &&
list->>next == &list->tail_sentinel;
static inline const struct exec_node *
exec_list_get_head_const(const struct exec_list *list)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment