mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT
This commit is contained in:
parent
433e5e6def
commit
3b82ceec67
3 changed files with 20 additions and 0 deletions
|
|
@ -620,6 +620,10 @@ _mesa_init_constants(struct gl_context *ctx)
|
|||
|
||||
/* GL 3.2: hard-coded for now: */
|
||||
ctx->Const.ProfileMask = GL_CONTEXT_COMPATIBILITY_PROFILE_BIT;
|
||||
|
||||
/** GL_EXT_gpu_shader4 */
|
||||
ctx->Const.MinProgramTexelOffset = -8;
|
||||
ctx->Const.MaxProgramTexelOffset = 7;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -266,6 +266,11 @@ static const int extra_EXT_texture_integer[] = {
|
|||
EXTRA_END
|
||||
};
|
||||
|
||||
static const int extra_EXT_gpu_shader4[] = {
|
||||
EXT(EXT_gpu_shader4),
|
||||
EXTRA_END
|
||||
};
|
||||
|
||||
|
||||
EXTRA_EXT(ARB_multitexture);
|
||||
EXTRA_EXT(ARB_texture_cube_map);
|
||||
|
|
@ -1198,6 +1203,14 @@ static const struct value_desc values[] = {
|
|||
CONTEXT_INT(Const.GeometryProgram.MaxVertexVaryingComponents),
|
||||
extra_ARB_geometry_shader4 },
|
||||
|
||||
/* GL_EXT_gpu_shader4 / GL 3.0 */
|
||||
{ GL_MIN_PROGRAM_TEXEL_OFFSET,
|
||||
CONTEXT_INT(Const.MinProgramTexelOffset),
|
||||
extra_EXT_gpu_shader4 },
|
||||
{ GL_MAX_PROGRAM_TEXEL_OFFSET,
|
||||
CONTEXT_INT(Const.MaxProgramTexelOffset),
|
||||
extra_EXT_gpu_shader4 },
|
||||
|
||||
/* GL 3.0 */
|
||||
{ GL_NUM_EXTENSIONS, LOC_CUSTOM, TYPE_INT, 0, extra_version_30 },
|
||||
{ GL_MAJOR_VERSION, CONTEXT_INT(VersionMajor), extra_version_30 },
|
||||
|
|
|
|||
|
|
@ -2625,6 +2625,9 @@ struct gl_constants
|
|||
GLuint MaxTransformFeedbackSeparateAttribs;
|
||||
GLuint MaxTransformFeedbackSeparateComponents;
|
||||
GLuint MaxTransformFeedbackInterleavedComponents;
|
||||
|
||||
/** GL_EXT_gpu_shader4 */
|
||||
GLint MinProgramTexelOffset, MaxProgramTexelOffset;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue