[Mesa-dev] [PATCH 01/17] vbo: move DLIST_DANGLING_REFS from mtypes.h to vbo_save_api.c

Brian Paul brianp at vmware.com
Fri Jan 19 17:46:51 UTC 2018


It's only used in this file.
---
 src/mesa/main/mtypes.h      | 9 ---------
 src/mesa/vbo/vbo_save_api.c | 5 +++++
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 1f1792e..ec51d41 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -4360,15 +4360,6 @@ struct gl_matrix_stack
 #include "dd.h"
 
 
-/**
- * Display list flags.
- * Strictly this is a tnl-private concept, but it doesn't seem
- * worthwhile adding a tnl private structure just to hold this one bit
- * of information:
- */
-#define DLIST_DANGLING_REFS     0x1 
-
-
 /** Opaque declaration of display list payload data type */
 union gl_dlist_node;
 
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index 49939ed..a411308 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -89,6 +89,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #undef ERROR
 #endif
 
+/**
+ * Display list flag only used by this VBO code.
+ */
+#define DLIST_DANGLING_REFS     0x1
+
 
 /* An interesting VBO number/name to help with debugging */
 #define VBO_BUF_ID  12345
-- 
2.7.4



More information about the mesa-dev mailing list