From 02f1968696fcf0eafd423c8c8c15cbfe61cd2cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 21 Dec 2022 01:36:51 -0500 Subject: [PATCH] mesa: move gl_vertex_format_user definition into glthread.h glthread.h needs it and it can't include mtypes.h because mtypes.h includes it. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/glthread.h | 13 +++++++++++++ src/mesa/main/mtypes.h | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h index ce0faf69ca9..9389e654ad3 100644 --- a/src/mesa/main/glthread.h +++ b/src/mesa/main/glthread.h @@ -62,6 +62,19 @@ struct gl_buffer_object; struct _mesa_HashTable; struct _glapi_table; +/* Used by both glthread and gl_context. */ +union gl_vertex_format_user { + struct { + GLenum16 Type; /**< datatype: GL_FLOAT, GL_INT, etc */ + bool Bgra; /**< true if GL_BGRA, else GL_RGBA */ + uint8_t Size:5; /**< components per element (1,2,3,4) */ + bool Normalized:1; /**< GL_ARB_vertex_program */ + bool Integer:1; /**< Integer-valued? */ + bool Doubles:1; /**< double values are not converted to floats */ + }; + uint32_t All; +}; + struct glthread_attrib_binding { struct gl_buffer_object *buffer; /**< where non-VBO data was uploaded */ int offset; /**< offset to uploaded non-VBO data */ diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index bfa12419d58..80ce5f90309 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -319,18 +319,6 @@ struct gl_colorbuffer_attrib GLboolean sRGBEnabled; /**< Framebuffer sRGB blending/updating requested */ }; -union gl_vertex_format_user { - struct { - GLenum16 Type; /**< datatype: GL_FLOAT, GL_INT, etc */ - bool Bgra; /**< true if GL_BGRA, else GL_RGBA */ - GLubyte Size:5; /**< components per element (1,2,3,4) */ - GLubyte Normalized:1; /**< GL_ARB_vertex_program */ - GLubyte Integer:1; /**< Integer-valued? */ - GLubyte Doubles:1; /**< double values are not converted to floats */ - }; - uint32_t All; -}; - /** * Vertex format to describe a vertex element. */