[Mesa-dev] [PATCH v5 01/70] mesa: set MAX_SHADER_STORAGE_BUFFERS to 15.
Ian Romanick
idr at freedesktop.org
Thu Sep 10 11:52:22 PDT 2015
On 09/10/2015 10:45 AM, Ilia Mirkin wrote:
> On Thu, Sep 10, 2015 at 9:35 AM, Iago Toral Quiroga <itoral at igalia.com> wrote:
>> From: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
>>
>> This patch sets the same value used for uniform buffers.
>>
>> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
>> ---
>> src/mesa/main/config.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
>> index b35031d..69acd7d 100644
>> --- a/src/mesa/main/config.h
>> +++ b/src/mesa/main/config.h
>> @@ -171,7 +171,7 @@
>> #define MAX_PROGRAM_LOCAL_PARAMS 4096
>> #define MAX_UNIFORMS 4096
>> #define MAX_UNIFORM_BUFFERS 15 /* + 1 default uniform buffer */
>> -#define MAX_SHADER_STORAGE_BUFFERS 7 /* + 1 default shader storage buffer */
>> +#define MAX_SHADER_STORAGE_BUFFERS 15 /* + 1 default shader storage buffer */
>
> Is there such a thing as a default shader storage buffer? I would have
> assumed not, but haven't read the spec.
Technically no, but I think (and I'm sure Ken will correct me) i965 uses
one for register spilling. Or is "scratch space" a different sort of thing?
>> /* 6 is for vertex, hull, domain, geometry, fragment, and compute shader. */
>> #define MAX_COMBINED_UNIFORM_BUFFERS (MAX_UNIFORM_BUFFERS * 6)
>> #define MAX_COMBINED_SHADER_STORAGE_BUFFERS (MAX_SHADER_STORAGE_BUFFERS * 6)
>> --
>> 1.9.1
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list