From 26ebf9c5e106962aa440586296b8fde76ef0c76a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 4 Nov 2011 17:13:53 +0000 Subject: [PATCH] radeon/r200: strip texture borders. Signed-off-by: Dave Airlie --- src/mesa/drivers/dri/r200/r200_context.c | 2 ++ src/mesa/drivers/dri/radeon/radeon_context.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index 901172c9bfb..b33fc2a4744 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -276,6 +276,8 @@ GLboolean r200CreateContext( gl_api api, ctx->Const.MaxCombinedTextureImageUnits = ctx->Const.MaxTextureUnits; + ctx->Const.StripTextureBorder = GL_TRUE; + i = driQueryOptioni( &rmesa->radeon.optionCache, "allow_large_textures"); /* FIXME: When no memory manager is available we should set this diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index ebe4e66526b..46dcafa6876 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -237,6 +237,8 @@ r100CreateContext( gl_api api, ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits; ctx->Const.MaxCombinedTextureImageUnits = ctx->Const.MaxTextureUnits; + ctx->Const.StripTextureBorder = GL_TRUE; + i = driQueryOptioni( &rmesa->radeon.optionCache, "allow_large_textures"); /* FIXME: When no memory manager is available we should set this -- 2.30.2