nv50: fix max texture levels
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Oct 2011 17:41:03 +0000 (19:41 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 24 Oct 2011 18:07:22 +0000 (20:07 +0200)
MAX_TEXTURE_2D_LEVELS and MAX_TEXTURE_CUBE_LEVELS are supposed to be
14 not 13, while MAX_TEXTURE_3D_LEVELS should be 12 not 10.

src/gallium/drivers/nv50/nv50_screen.c

index 0bd6057938b9a212e4163a952c42d37523403600..1270c837089b4fc29d16a32495c18706839edea1 100644 (file)
@@ -80,11 +80,11 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_COMBINED_SAMPLERS:
       return 64;
    case PIPE_CAP_MAX_TEXTURE_2D_LEVELS:
-      return 13;
+      return 14;
    case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
-      return 10;
+      return 12;
    case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
-      return 13;
+      return 14;
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: /* shader support missing */
       return 0;
    case PIPE_CAP_MIN_TEXEL_OFFSET: