[RFC] Avoid quadratic behavior in relocs/cs

2010-05-28 Thread Mathias Fröhlich
Hi, Attached is a change to the radeon reloc emitting code, that stores the reloc index in the buffer object. This avoids quadratic runtime behavior in the number of emitted buffer object relocs per command stream. The reloc index is held in an array indexed by command stream number, which mea

[RFC] Avoid quadratic behavior in relocs/cs

2010-05-27 Thread Mathias Fröhlich
Hi, Attached is a change to the radeon reloc emitting code, that stores the reloc index in the buffer object. This avoids quadratic runtime behavior in the number of emitted buffer object relocs per command stream. The reloc index is held in an array indexed by command stream number, which mea