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

2016-01-02 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Sat, Jan 2, 2016 at 12:09 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 >

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

2016-01-02 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 v4: - fix flag for textures Changes from v3: - ch