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

2017-07-07 Thread Daniel Vetter
On Fri, Jul 07, 2017 at 11:23:36AM +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

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

2017-07-07 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. v2: Also update