mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
mesa: repack gl_texture_attrib.
This removes a hole, and puts the large allocation at the end, Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Alex Deucher alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2dbd8284e7
commit
974e4783a5
1 changed files with 5 additions and 4 deletions
|
|
@ -1388,16 +1388,15 @@ struct gl_texture_unit
|
||||||
struct gl_texture_attrib
|
struct gl_texture_attrib
|
||||||
{
|
{
|
||||||
GLuint CurrentUnit; /**< GL_ACTIVE_TEXTURE */
|
GLuint CurrentUnit; /**< GL_ACTIVE_TEXTURE */
|
||||||
struct gl_texture_unit Unit[MAX_COMBINED_TEXTURE_IMAGE_UNITS];
|
|
||||||
|
/** GL_ARB_seamless_cubemap */
|
||||||
|
GLboolean CubeMapSeamless;
|
||||||
|
|
||||||
struct gl_texture_object *ProxyTex[NUM_TEXTURE_TARGETS];
|
struct gl_texture_object *ProxyTex[NUM_TEXTURE_TARGETS];
|
||||||
|
|
||||||
/** GL_ARB_texture_buffer_object */
|
/** GL_ARB_texture_buffer_object */
|
||||||
struct gl_buffer_object *BufferObject;
|
struct gl_buffer_object *BufferObject;
|
||||||
|
|
||||||
/** GL_ARB_seamless_cubemap */
|
|
||||||
GLboolean CubeMapSeamless;
|
|
||||||
|
|
||||||
/** Texture coord units/sets used for fragment texturing */
|
/** Texture coord units/sets used for fragment texturing */
|
||||||
GLbitfield _EnabledCoordUnits;
|
GLbitfield _EnabledCoordUnits;
|
||||||
|
|
||||||
|
|
@ -1415,6 +1414,8 @@ struct gl_texture_attrib
|
||||||
|
|
||||||
/** Largest index + 1 of texture units that have had any CurrentTex set. */
|
/** Largest index + 1 of texture units that have had any CurrentTex set. */
|
||||||
GLint NumCurrentTexUsed;
|
GLint NumCurrentTexUsed;
|
||||||
|
|
||||||
|
struct gl_texture_unit Unit[MAX_COMBINED_TEXTURE_IMAGE_UNITS];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue