Re: [Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-29 Thread Jordan Justen
On 2017-11-28 18:41:44, Kenneth Graunke wrote: > On Tuesday, November 28, 2017 6:15:59 PM PST Ian Romanick wrote: > > On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > > > Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we > > > try and flush. If we're not allowed to flush,

Re: [Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-28 Thread Kenneth Graunke
On Tuesday, November 28, 2017 6:15:59 PM PST Ian Romanick wrote: > On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > > Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we > > try and flush. If we're not allowed to flush, we resort to growing the > > buffer so that there's

Re: [Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-28 Thread Ian Romanick
On 11/28/2017 04:13 PM, Kenneth Graunke wrote: > Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we > try and flush. If we're not allowed to flush, we resort to growing the > buffer so that there's space for the data we need to emit. > > We accidentally got the threshold

[Mesa-dev] [PATCH 1/6] i965: Don't grow batch/state buffer on every emit after an overflow.

2017-11-28 Thread Kenneth Graunke
Once we reach the intended size of the buffer (BATCH_SZ or STATE_SZ), we try and flush. If we're not allowed to flush, we resort to growing the buffer so that there's space for the data we need to emit. We accidentally got the threshold wrong. The first non-wrappable call beyond (e.g.) STATE_SZ