Re: [Mesa-dev] [PATCH v3] nv50, nvc0: optimize coherent buffer checking at draw time

2015-12-16 Thread Ilia Mirkin
On Thu, Dec 10, 2015 at 4:58 PM, Samuel Pitoiset wrote: > Instead of iterating over all the buffer resources looking for coherent > buffers, we keep track of a context-wide count. This will save some > iterations (and CPU cycles) in 99.99% case because usually coherent > buffers are not so used. >

[Mesa-dev] [PATCH v3] nv50, nvc0: optimize coherent buffer checking at draw time

2015-12-10 Thread Samuel Pitoiset
Instead of iterating over all the buffer resources looking for coherent buffers, we keep track of a context-wide count. This will save some iterations (and CPU cycles) in 99.99% case because usually coherent buffers are not so used. Changes from v3: - check if views[i] and views[i]->texture are n