Mesa (master): r600c: bump texture limits to hw limits

Alex Deucher agd5f at kemper.freedesktop.org
Thu Dec 2 21:11:21 UTC 2010


Module: Mesa
Branch: master
Commit: a3dc947057fb9b1229fa5a62b00822b7aa891bd7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3dc947057fb9b1229fa5a62b00822b7aa891bd7

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Thu Dec  2 15:39:28 2010 -0500

r600c: bump texture limits to hw limits

---

 src/mesa/drivers/dri/r600/r600_context.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/r600/r600_context.c b/src/mesa/drivers/dri/r600/r600_context.c
index 057d98e..aa1891e 100644
--- a/src/mesa/drivers/dri/r600/r600_context.c
+++ b/src/mesa/drivers/dri/r600/r600_context.c
@@ -285,8 +285,13 @@ static void r600InitConstValues(struct gl_context *ctx, radeonScreenPtr screen)
 	ctx->Const.MaxTextureMaxAnisotropy = 16.0;
 	ctx->Const.MaxTextureLodBias = 16.0;
 
-	ctx->Const.MaxTextureLevels = 13; /* hw support 14 */
-	ctx->Const.MaxTextureRectSize = 4096; /* hw support 8192 */
+	if (screen->chip_family >= CHIP_FAMILY_CEDAR) {
+		ctx->Const.MaxTextureLevels = 15;
+		ctx->Const.MaxTextureRectSize = 16384;
+	} else {
+		ctx->Const.MaxTextureLevels = 14;
+		ctx->Const.MaxTextureRectSize = 8192;
+	}
 
 	ctx->Const.MinPointSize   = 0x0001 / 8.0;
 	ctx->Const.MinPointSizeAA = 0x0001 / 8.0;




More information about the mesa-commit mailing list