[Mesa-dev] [PATCH 01/11] nvc0: use a different offset for buffers and surfaces

Samuel Pitoiset samuel.pitoiset at gmail.com
Sat Feb 27 15:15:44 UTC 2016



On 02/27/2016 04:13 PM, Ilia Mirkin wrote:
> On Sat, Feb 27, 2016 at 9:50 AM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>>
>>
>> On 02/27/2016 03:42 PM, Ilia Mirkin wrote:
>>>
>>> Why wouldn't you have surfaces for other shader types? Surface == image.
>>> I was thinking they would just use a fixed offset from the suinfobase
>>> which I repurposed for buffers.
>>>
>>> Either way, why do you need to touch this now?
>>
>>
>> Because for compute on Kepler, I need to bind both images and buffers and if
>> I use the same offset they will be overwritten.
>
> Why is compute so special that it needs images, but other stages
> don't? Either way, images are broken, just comment out the code that's
> trying to write to the constbuf. We'll need to find a spot for them
> and normalize it wrt fermi, but that doesn't need to be done as part
> of compute enablement...

Only compute currently supports images/surfaces... This was my first 
idea but I thought that it could be better to directly tackle this thing 
right now. Anyway, comment out the surfaces code is easier. :-)

>
>    -ilia
>


More information about the mesa-dev mailing list