[Mesa-dev] [PATCH 05/17] gallium: reserve one shader buffer for shared storage

Marek Olšák maraeo at gmail.com
Tue Jan 26 12:09:20 PST 2016


On Tue, Jan 26, 2016 at 4:21 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
>
> On 01/26/2016 11:36 AM, Marek Olšák wrote:
>>
>> I don't understand this. Can you explain it?
>
>
> This shader buffer for shared storage is actually a fake buffer. Only one
> shared "fake" buffer can be used and it will contain all shared variables
> which are defined in the compute shaders. Its size is defined by
> MAX_COMPUTE_SHARED_MEMORY_SIZE fyi.
>
> I did this change to reserve the slot 32 for it and so it won't be allocated
> by the underlying driver since I clamp the maximum number of usable
> shader+atomic buffers to 32.

As I hinted in another thread, we don't need to reserve any buffer
slot for shared memory.

Marek


More information about the mesa-dev mailing list