[Mesa-dev] [PATCH 08/17] tgsi/ureg: add shared variables support for compute shaders

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Jan 26 07:09:19 PST 2016



On 01/26/2016 02:57 PM, Marek Olšák wrote:
> On Tue, Jan 26, 2016 at 2:25 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> I'd be fine with a new TGSI_FILE_MEMORY which provided options for
>> shared, global, and local(/private?) memory. I believe the old
>> TGSI_FILE_RESOURCE had support for these in a hacky way, this would be
>> the clean way of doing it.
>
> I think they mean:
> global = global shared memory
> local = shared within a thread group (GL "shared memory")
> private = ???
>
> ureg_DECL_local_temporary seems like a good match. I'd prefer to have
> a separate file though.
>
> Shared memory is the same as TEMPs, except that they are TEMPs shared
> within a thread group.

Ok. I'll try to make this change and introduce a new TGSI_FILE_MEMORY.

>
> Marek
>

-- 
-Samuel


More information about the mesa-dev mailing list