[Mesa-dev] [PATCH 1/4] i965: Track last location of bo used for the batch

2017-06-19 Thread Chris Wilson
Borrow a trick from anv, and use the last known index for the bo to skip a search of the batch->exec_bo when adding a new relocation. In defence against the bo being used in multiple batches simultaneously, we check that this slot exists and points back to us. Signed-off-by: Chris Wilson Cc: Kenn

Re: [Mesa-dev] [PATCH 1/4] i965: Track last location of bo used for the batch

2017-07-07 Thread Daniel Vetter
On Mon, Jun 19, 2017 at 11:06:47AM +0100, Chris Wilson wrote: > Borrow a trick from anv, and use the last known index for the bo to skip > a search of the batch->exec_bo when adding a new relocation. In defence > against the bo being used in multiple batches simultaneously, we check > that this slo

Re: [Mesa-dev] [PATCH 1/4] i965: Track last location of bo used for the batch

2017-07-07 Thread Daniel Vetter
On Mon, Jun 19, 2017 at 11:06:47AM +0100, Chris Wilson wrote: > Borrow a trick from anv, and use the last known index for the bo to skip > a search of the batch->exec_bo when adding a new relocation. In defence > against the bo being used in multiple batches simultaneously, we check > that this slo

Re: [Mesa-dev] [PATCH 1/4] i965: Track last location of bo used for the batch

2017-07-07 Thread Chris Wilson
Quoting Daniel Vetter (2017-07-07 10:55:49) > On Mon, Jun 19, 2017 at 11:06:47AM +0100, Chris Wilson wrote: > > Borrow a trick from anv, and use the last known index for the bo to skip > > a search of the batch->exec_bo when adding a new relocation. In defence > > against the bo being used in multi