[Mesa-dev] [PATCH 13/21] dri: Remove redundant GL_SGIS_texture_edge_clamp enables

Ian Romanick idr at freedesktop.org
Sat Aug 27 00:57:03 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 080aa53..fee90f1 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -111,7 +111,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 6fbface..456f7d8 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -387,7 +387,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 984aff5..cbf9204 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -408,7 +408,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 9f32e1c..6807aeb 100644
--- a/src/mesa/drivers/dri/r600/r600_context.c
+++ b/src/mesa/drivers/dri/r600/r600_context.c
@@ -307,7 +307,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 167e248..d64b220 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -345,7 +345,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.4.4



More information about the mesa-dev mailing list