summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-02-02 17:23:25 -0800
committerMatt Turner <[email protected]>2015-02-03 12:25:14 -0800
commitd8be1b9abadf1f65eeaef86edee6654632473839 (patch)
tree208a6fa78433ae1a811efd37034ca686a3bfb2b9 /src
parentcfb5b1c59eb42a7a1c0972aa1947050b2e04ba9b (diff)
glsl/list: Note that exec_lists may not be realloc'd.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/list.h b/src/glsl/list.h
index 85368a4e6c4..ddb98f76f67 100644
--- a/src/glsl/list.h
+++ b/src/glsl/list.h
@@ -51,6 +51,10 @@
* Therefore, if \c head->next is \c NULL or \c tail_prev->prev is \c NULL,
* the list is empty.
*
+ * Do note that this means that the list nodes will contain pointers into the
+ * list structure itself and as a result you may not \c realloc() an \c
+ * exec_list or any structure in which an \c exec_list is embedded.
+ *
* To anyone familiar with "exec lists" on the Amiga, this structure should
* be immediately recognizable. See the following link for the original Amiga
* operating system documentation on the subject.