Browse Source

r600c: bump texture limits to hw limits

tags/android-x86-2.2
Alex Deucher 15 years ago
parent
commit
a3dc947057
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/mesa/drivers/dri/r600/r600_context.c

+ 7
- 2
src/mesa/drivers/dri/r600/r600_context.c View File

@@ -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;

Loading…
Cancel
Save