Mesa (master): nv50: fix max texture levels

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Mon Oct 24 11:07:38 PDT 2011


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

Author: Adel Gadllah <adel.gadllah at gmail.com>
Date:   Mon Oct 24 19:41:03 2011 +0200

nv50: fix max texture levels

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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 0bd6057..1270c83 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -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:



More information about the mesa-commit mailing list