[Mesa-dev] [PATCH] i965: Set max texture buffer size to hardware limit
Kenneth Graunke
kenneth at whitecape.org
Tue Jun 2 20:37:24 PDT 2015
On Wednesday, June 03, 2015 12:22:43 PM Chris Forbes wrote:
> 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 at ijw.co.nz>
> ---
> src/mesa/drivers/dri/i965/brw_context.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index 673529a..b2b119a 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -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;
>
2^27 looks correct to me (based on the RENDER_SURFACE_STATE Height field
programming note). I checked the 965 PRM and the BDW PRM.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150602/fd819337/attachment.sig>
More information about the mesa-dev
mailing list