[Mesa-dev] [RFC PATCH] mesa/gl3: introduce a new option to the gl3 version enable.

Dave Airlie airlied at gmail.com
Mon Jan 2 08:34:23 PST 2012


From: Dave Airlie <airlied at redhat.com>

EXT_texture_integer isn't strictly equivalent to GL3, the L/I/A integer
formats are not required in GL3, and some drivers may not require them.

I've no idea if we have any hw that requires it, just sending the patch along
after discussion on irc.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/mesa/main/mtypes.h  |    2 ++
 src/mesa/main/version.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 107371e..6191026 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2832,6 +2832,8 @@ struct gl_constants
     */
    GLboolean GLSLSkipStrictMaxVaryingLimitCheck;
    GLboolean GLSLSkipStrictMaxUniformLimitCheck;
+
+   GLboolean GL3TextureInteger; /* does the driver support GL3 TextureInteger support as opposed to the full EXT_texture_integer */
 };
 
 
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 49cdc30..3b548e5 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -142,7 +142,7 @@ compute_version(struct gl_context *ctx)
                               ctx->Extensions.EXT_packed_depth_stencil &&
                               ctx->Extensions.EXT_packed_float &&
                               ctx->Extensions.EXT_texture_array &&
-                              ctx->Extensions.EXT_texture_integer &&
+                              (ctx->Const.GL3TextureInteger || ctx->Extensions.EXT_texture_integer) &&
                               ctx->Extensions.EXT_texture_shared_exponent &&
                               ctx->Extensions.EXT_transform_feedback &&
                               ctx->Extensions.NV_conditional_render);
-- 
1.7.7.4



More information about the mesa-dev mailing list