diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-12-21 01:36:51 -0500 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2023-01-20 21:34:09 -0500 |
commit | 02f1968696fcf0eafd423c8c8c15cbfe61cd2cc1 (patch) | |
tree | e7059478a0d5370b588dbcc5c02622b0db864125 /src/mesa | |
parent | c00db0dbc867f48e02b86bc6cb8d49c59e534aa8 (diff) |
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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20824>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/glthread.h | 13 | ||||
-rw-r--r-- | 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. */ |