[Mesa-dev] [PATCH 2/9] gallium/tgsi: start adding hw atomics (v2)
Dave Airlie
airlied at gmail.com
Mon Nov 6 05:50:53 UTC 2017
>> +Hardware Atomic Register File
>> +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> +
>> +Hardware atomics are declared as a 2D array with an optional array id.
>> +
>> +The first member of the dimension is the buffer resource the atomic
>> +is located in.
>> +The second member is a range into the buffer resource, either for
>> +one or multiple counters. If this is an array, the declaration will have
>> +an unique array id.
>> +
>> +Each counter is 4 bytes in size, and index and ranges are in counters not bytes.
>> +DCL BUFFER[0], ATOMIC
>> +DCL ATOMIC[0][0]
>> +DCL ATOMIC[0][1]
>> +
>> +This declares two atomics, one at the start of the buffer and one in the
>> +second 4 bytes.
>> +
>> +DCL BUFFER[0], ATOMIC
>> +DCL BUFFER[1], ATOMIC
>
> Why are there BUFFER declarations?
Good question I thought they had a use, guess not.
I'll drop them.
Dave.
More information about the mesa-dev
mailing list