Skip to contentSkip to conversation

nv50, nvc0: fix max texture buffer size to 128M elements

PATCH New Ilia Mirkin 1 participant 1 message Sep 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv50, nvc0: fix max texture buffer size to 128M elements

This is what the hardware supports, there never was any sort of 64K limit.

---

Need to double-check this one on nv50, but online sources suggest that it's a 128M element limit there as well.

 src/gallium/drivers/nouveau/nv50/nv50_screen.c | 2 +-
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
src/gallium/drivers/nouveau/nv50/nv50_screen.c +1 -1
index 9068ae1..c3bbc83 100644
@@ -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:
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +1 -1
index ead43f8..1909b91 100644
@@ -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:
Signature · 6 lines
2.4.6

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev