[Mesa-dev] [PATCH v3 (part2) 04/56] i965: set ARB_shader_storage_buffer_object related constant values

Samuel Iglesias Gonsálvez siglesias at igalia.com
Thu Jul 23 00:04:12 PDT 2015


I have sent a new version of this patch [0] which has tessellation
shader constants setting.

Sam

[0] http://lists.freedesktop.org/archives/mesa-dev/2015-July/089561.html


On 14/07/15 09:46, Iago Toral Quiroga wrote:
> From: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
> 
> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index 8a0ffbe..c4cc6f2 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -551,6 +551,17 @@ brw_initialize_context_constants(struct brw_context *brw)
>     ctx->Const.TextureBufferOffsetAlignment = 16;
>     ctx->Const.MaxTextureBufferSize = 128 * 1024 * 1024;
>  
> +   /* FIXME: Tessellation stages are not yet supported, so
> +    * MaxShaderStorageBlocks is not set for them and
> +    * MaxCombinedShaderStorageBlocks doesn't take them into account.
> +    */
> +   ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxShaderStorageBlocks = 12;
> +   ctx->Const.Program[MESA_SHADER_VERTEX].MaxShaderStorageBlocks = 12;
> +   ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxShaderStorageBlocks = 12;
> +   ctx->Const.Program[MESA_SHADER_COMPUTE].MaxShaderStorageBlocks = 12;
> +   ctx->Const.MaxCombinedShaderStorageBlocks = 12 * 3;
> +   ctx->Const.MaxShaderStorageBufferBindings = 48;
> +
>     if (brw->gen >= 6) {
>        ctx->Const.MaxVarying = 32;
>        ctx->Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents = 128;
> 


More information about the mesa-dev mailing list