Re: [Mesa-dev] [PATCH] i965: free scratch buffers when destroying the context

2015-03-06 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-03-06 00:26:35, Iago Toral Quiroga wrote: > If scratch space is needed for a shader stage we try to reuse the last scratch > buffer bound to that stage. If we can't, we free the old scratch buffer and > allocate a new one. This means we always keep the last scra

[Mesa-dev] [PATCH] i965: free scratch buffers when destroying the context

2015-03-06 Thread Iago Toral Quiroga
If scratch space is needed for a shader stage we try to reuse the last scratch buffer bound to that stage. If we can't, we free the old scratch buffer and allocate a new one. This means we always keep the last scratch buffer for a particular shader stage around for the entire life span of the conte

[Mesa-dev] [PATCH] i965: free scratch buffers when destroying the context

2014-10-01 Thread Iago Toral Quiroga
If scratch space is needed for a shader stage we try to reuse the last scratch buffer bound to that stage. If we can't, we free the old scratch buffer and allocate a new one. This means we always keep the last scratch buffer for a particular shader stage around for the entire live span of the conte