[Mesa-dev] [PATCH 1/8] dri: Remove redundant GL_SGIS_texture_edge_clamp enables

Ian Romanick idr at freedesktop.org
Mon Sep 19 12:18:15 PDT 2011


From: Ian Romanick <ian.d.romanick at intel.com>

This extension is enabled by default in _mesa_init_extensions, so
drivers don't need to enable it again.
---
 src/mesa/drivers/dri/intel/intel_extensions.c |    1 -
 src/mesa/drivers/dri/r200/r200_context.c      |    1 -
 src/mesa/drivers/dri/r300/r300_context.c      |    1 -
 src/mesa/drivers/dri/r600/r600_context.c      |    1 -
 src/mesa/drivers/dri/radeon/radeon_context.c  |    1 -
 5 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 3727b05..2a39322 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -109,7 +109,6 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.NV_texture_rectangle = true;
    ctx->Extensions.NV_vertex_program = true;
    ctx->Extensions.NV_vertex_program1_1 = true;
-   ctx->Extensions.SGIS_texture_edge_clamp = true;
    ctx->Extensions.TDFX_texture_compression_FXT1 = true;
 #if FEATURE_OES_EGL_image
    ctx->Extensions.OES_EGL_image = true;
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c
index d9ac604..bc01c61 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -386,7 +386,6 @@ GLboolean r200CreateContext( gl_api api,
 #if FEATURE_OES_EGL_image
    ctx->Extensions.OES_EGL_image = true;
 #endif
-   ctx->Extensions.SGIS_texture_edge_clamp = true;
 
    ctx->Extensions.EXT_framebuffer_object =
       rmesa->radeon.radeonScreen->kernel_mm;
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index ece1337..d7a5da1 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -406,7 +406,6 @@ static void r300InitGLExtensions(struct gl_context *ctx)
 #if FEATURE_OES_EGL_image
 	ctx->Extensions.OES_EGL_image = true;
 #endif
-	ctx->Extensions.SGIS_texture_edge_clamp = true;
 
 	if (r300->radeon.radeonScreen->kernel_mm) {
 		ctx->Extensions.EXT_framebuffer_blit = true;
diff --git a/src/mesa/drivers/dri/r600/r600_context.c b/src/mesa/drivers/dri/r600/r600_context.c
index b57e1fe..247d551 100644
--- a/src/mesa/drivers/dri/r600/r600_context.c
+++ b/src/mesa/drivers/dri/r600/r600_context.c
@@ -306,7 +306,6 @@ static void r600InitGLExtensions(struct gl_context *ctx)
 #if FEATURE_OES_EGL_image
 	ctx->Extensions.OES_EGL_image = true;
 #endif
-	ctx->Extensions.SGIS_texture_edge_clamp = true;
 
 	if (r600->radeon.radeonScreen->kernel_mm)
 		ctx->Extensions.EXT_framebuffer_object = true;
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c
index dfc0fba..0ebf8ba 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -337,7 +337,6 @@ r100CreateContext( gl_api api,
 #if FEATURE_OES_EGL_image
    ctx->Extensions.OES_EGL_image = true;
 #endif
-   ctx->Extensions.SGIS_texture_edge_clamp = true;
 
    ctx->Extensions.EXT_framebuffer_object =
       rmesa->radeon.radeonScreen->kernel_mm;
-- 
1.7.6



More information about the mesa-dev mailing list