Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-02 Thread Marek Olšák
On Thu, Oct 2, 2014 at 8:21 PM, Ian Romanick wrote: > On 10/01/2014 09:06 AM, Marek Olšák wrote: >> On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >>> In the drivers, we occasionally want to reallocate the backing >>> store for a buffer object; often to avoid waiting for the GPU >>> to be f

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-02 Thread Ian Romanick
On 10/01/2014 09:06 AM, Marek Olšák wrote: > On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >> In the drivers, we occasionally want to reallocate the backing >> store for a buffer object; often to avoid waiting for the GPU >> to be finished with the previous contents. >> >> At the point that

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-02 Thread Marek Olšák
On Thu, Oct 2, 2014 at 11:57 AM, Chris Forbes wrote: > That fixes the bug and is nice and minimal, but it doesn't meet my > overhead-reduction goal. > > _NEW_TEXTURE triggers piles of work, mostly irrelevant if we've only > changed buffer textures. I agree. I was only showing that the bug is in m

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-02 Thread Chris Forbes
That fixes the bug and is nice and minimal, but it doesn't meet my overhead-reduction goal. _NEW_TEXTURE triggers piles of work, mostly irrelevant if we've only changed buffer textures. On Thu, Oct 2, 2014 at 10:28 PM, Marek Olšák wrote: > On Thu, Oct 2, 2014 at 6:05 AM, Ilia Mirkin wrote: >> O

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-02 Thread Marek Olšák
On Thu, Oct 2, 2014 at 6:05 AM, Ilia Mirkin wrote: > On Wed, Oct 1, 2014 at 12:06 PM, Marek Olšák wrote: >> On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >>> In the drivers, we occasionally want to reallocate the backing >>> store for a buffer object; often to avoid waiting for the GPU >>

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Ilia Mirkin
On Wed, Oct 1, 2014 at 12:06 PM, Marek Olšák wrote: > On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >> In the drivers, we occasionally want to reallocate the backing >> store for a buffer object; often to avoid waiting for the GPU >> to be finished with the previous contents. >> >> At the

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Marek Olšák
On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: > In the drivers, we occasionally want to reallocate the backing > store for a buffer object; often to avoid waiting for the GPU > to be finished with the previous contents. > > At the point that happens, we don't have a good way of determining

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Chris Forbes
Looks like some mail server ate patches 2,3,4,7. I've resent them. What you're doing in r600_invalidate_buffer is exactly what I'm trying to avoid doing. :) -- Chris On Thu, Oct 2, 2014 at 5:06 AM, Marek Olšák wrote: > On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >> In the drivers, we

[Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Chris Forbes
In the drivers, we occasionally want to reallocate the backing store for a buffer object; often to avoid waiting for the GPU to be finished with the previous contents. At the point that happens, we don't have a good way of determining where else the buffer object may be bound, and so no good way o