[Mesa-dev] [RFC PATCH] gallium: add a common uploader to pipe_context

Brian Paul brianp at vmware.com
Wed Feb 1 21:23:25 UTC 2017


On 01/27/2017 04:00 AM, Marek Olšák wrote:
> On Fri, Jan 27, 2017 at 10:05 AM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>> On 27.01.2017 00:51, Marek Olšák wrote:
>>>
>>> From: Marek Olšák <marek.olsak at amd.com>
>>>
>>> For lower memory usage and more efficient updates of the buffer residency
>>> list. (e.g. if drivers keep seeing the same buffer for many consecutive
>>> "add" calls, the calls can be turned into no-ops trivially)
>>
>>
>> This makes sense to me, but how are you planning to deal with the bind
>> flags? They are currently set differently for different upload mgrs. We
>> should probably do away with them entirely anyway.
>
> Drivers can set the bind flags they need. Some drivers will set all 3
> bind flags. Other drivers don't have to set any.

I need to look into this part more closely.  I think we may have trouble 
mixing constants with index/vertex data in our VMware driver...

-Brian



More information about the mesa-dev mailing list