[Mesa-dev] [PATCH 2/2] i965: Clean up context constant initialization code.

Kenneth Graunke kenneth at whitecape.org
Thu Nov 12 16:17:29 PST 2015


On Thursday, November 12, 2015 03:38:52 PM Kenneth Graunke wrote:
[snip]
> -   ctx->Const.MaxDualSourceDrawBuffers = 1;
> -   ctx->Const.MaxDrawBuffers = BRW_MAX_DRAW_BUFFERS;
> -   ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits = max_samplers;
> -   ctx->Const.MaxTextureCoordUnits = 8; /* Mesa limit */
> +   if (ctx->Extensions.ARB_compute_shader)
> +      ctx->Const.MaxShaderStorageBufferBindings += BRW_MAX_SSBO;

These stray + lines shouldn't have been there - we initialize
MaxShaderStorageBufferBindings properly below.  Dropped for v2.
-------------- 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/20151112/f19b7b67/attachment.sig>


More information about the mesa-dev mailing list