nv50, nvc0: fix max texture buffer size to 128M elements
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 15 Sep 2015 23:39:25 +0000 (19:39 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 16 Sep 2015 16:51:58 +0000 (12:51 -0400)
This is what the hardware supports, there never was any sort of 64K
limit.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 9068ae1afaf1ae73de317a5259d97ae7c004f2df..c3bbc833f5b157faa6ba6543c639bf1d253ecb83 100644 (file)
@@ -100,7 +100,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_TEXEL_OFFSET:
       return 7;
    case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
-      return 65536;
+      return 128 * 1024 * 1024;
    case PIPE_CAP_GLSL_FEATURE_LEVEL:
       return 330;
    case PIPE_CAP_MAX_RENDER_TARGETS:
index ead43f862629c39da960b7c5637334fac6a81b0c..1909b914d0283e66e709320e9481c717516551dc 100644 (file)
@@ -87,7 +87,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_TEXTURE_GATHER_OFFSET:
       return 31;
    case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
-      return 65536;
+      return 128 * 1024 * 1024;
    case PIPE_CAP_GLSL_FEATURE_LEVEL:
       return 410;
    case PIPE_CAP_MAX_RENDER_TARGETS: