Mesa (8.0): softpipe: bump max texture array layers to 256.

Dave Airlie airlied at kemper.freedesktop.org
Fri Jan 13 08:32:16 UTC 2012


Module: Mesa
Branch: 8.0
Commit: 1e51d4b4f6287da42759b8e52d1bf0f87acdc5e4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e51d4b4f6287da42759b8e52d1bf0f87acdc5e4

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Jan 12 10:13:37 2012 +0000

softpipe: bump max texture array layers to 256.

This as per GL3 specification.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/softpipe/sp_screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 37aa585..32408f3 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -121,7 +121,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR:
       return 1;
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
-      return 64; /* matches core Mesa defaults */
+      return 256; /* for GL3 */
    case PIPE_CAP_MIN_TEXEL_OFFSET:
       return -8;
    case PIPE_CAP_MAX_TEXEL_OFFSET:




More information about the mesa-commit mailing list