Re: [Mesa-dev] [PATCH 01/17] i965: Don't special case the batchbuffer when reference counting.

2017-09-06 Thread Chris Wilson
Quoting Kenneth Graunke (2017-09-06 01:09:34) > We don't need to special case the batch - when we add the batch to the > validation list, we can simply increase the refcount to 2, and when we > make a new batch, we'll drop it back down to 1 (when unreferencing all > buffers in the validation list).

[Mesa-dev] [PATCH 01/17] i965: Don't special case the batchbuffer when reference counting.

2017-09-05 Thread Kenneth Graunke
We don't need to special case the batch - when we add the batch to the validation list, we can simply increase the refcount to 2, and when we make a new batch, we'll drop it back down to 1 (when unreferencing all buffers in the validation list). The final reference is still held by brw->batch.bo,