i965: Set max texture buffer size to hardware limit
authorChris Forbes <chrisf@ijw.co.nz>
Wed, 3 Jun 2015 00:11:27 +0000 (12:11 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 6 Jun 2015 06:40:33 +0000 (18:40 +1200)
Previously we were leaving this at the default of 64K, which meets the
spec but is too small for some real uses. The hardware can handle up to
128M.

User was complaining about this on freenode ##OpenGL today.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c

index 274a237..652d9a3 100644 (file)
@@ -545,6 +545,7 @@ brw_initialize_context_constants(struct brw_context *brw)
     */
    ctx->Const.UniformBufferOffsetAlignment = 16;
    ctx->Const.TextureBufferOffsetAlignment = 16;
+   ctx->Const.MaxTextureBufferSize = 128 * 1024 * 1024;
 
    if (brw->gen >= 6) {
       ctx->Const.MaxVarying = 32;