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). The final reference is still held by > brw->batch.bo, as it was before. > > This removes the special case from a bunch of loops.
I left it around since the conditional atomic was a slight advantage. But if it gets in the way of future cleanup, Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> -Chris _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev