summaryrefslogtreecommitdiff
path: root/src/mesa/main/glthread.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2024-01-30 15:46:43 -0500
committerMarge Bot <emma+marge@anholt.net>2024-03-11 22:44:41 +0000
commitc76efafc0d14aabe655b204d62b98ef323cd9c3c (patch)
tree7ec015a08c1573887f077ccbf22cf4b0dbcbe80e /src/mesa/main/glthread.h
parent9fe8ef128276ee7315e34b763221fe88a6378866 (diff)
mesa: move struct gl_pixelstore_attrib into glthread.h
it will be used there Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27490>
Diffstat (limited to 'src/mesa/main/glthread.h')
-rw-r--r--src/mesa/main/glthread.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h
index 9db93f74faf..fd23b3f0e7a 100644
--- a/src/mesa/main/glthread.h
+++ b/src/mesa/main/glthread.h
@@ -67,6 +67,27 @@ struct gl_context;
struct gl_buffer_object;
struct _glapi_table;
+/**
+ * Client pixel packing/unpacking attributes
+ */
+struct gl_pixelstore_attrib
+{
+ GLint Alignment;
+ GLint RowLength;
+ GLint SkipPixels;
+ GLint SkipRows;
+ GLint ImageHeight;
+ GLint SkipImages;
+ GLboolean SwapBytes;
+ GLboolean LsbFirst;
+ GLboolean Invert; /**< GL_MESA_pack_invert */
+ GLint CompressedBlockWidth; /**< GL_ARB_compressed_texture_pixel_storage */
+ GLint CompressedBlockHeight;
+ GLint CompressedBlockDepth;
+ GLint CompressedBlockSize;
+ struct gl_buffer_object *BufferObj; /**< GL_ARB_pixel_buffer_object */
+};
+
/* Used by both glthread and gl_context. */
union gl_vertex_format_user {
struct {