diff options
author | Brian Paul <[email protected]> | 2010-10-28 21:17:42 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-10-28 21:17:42 -0600 |
commit | 3b82ceec677e875d2f2f9edbcfceafd4d9a85cb7 (patch) | |
tree | 49dfa1f27919eaf2cea09940cee07222e3b04a75 | |
parent | 433e5e6defc85d8b1d6262aff990e3f5a8b37027 (diff) |
mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT
-rw-r--r-- | src/mesa/main/context.c | 4 | ||||
-rw-r--r-- | src/mesa/main/get.c | 13 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 3 |
3 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 3ebe54926ff..eab35e7b8b6 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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; } diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index da9df27bdb6..870c5d76f0a 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -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 }, diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 1d775cbad5d..f8060f32de8 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2625,6 +2625,9 @@ struct gl_constants GLuint MaxTransformFeedbackSeparateAttribs; GLuint MaxTransformFeedbackSeparateComponents; GLuint MaxTransformFeedbackInterleavedComponents; + + /** GL_EXT_gpu_shader4 */ + GLint MinProgramTexelOffset, MaxProgramTexelOffset; }; |