Re: [PATCH 2/2] libdrm_radeon: Optimize cs_gem_reloc to do less looping.

2010-03-11 Thread Michel Dänzer
On Wed, 2010-03-10 at 20:42 +0200, Pauli Nieminen wrote: bo-referenced_in_cs is checked if bo is already in cs. Adding and removing reference in bo is done with atomic operations to allow parallel access to a bo from multiple contexts. cs-id generation code quarentees there is not

[PATCH 2/2] libdrm_radeon: Optimize cs_gem_reloc to do less looping.

2010-03-10 Thread Pauli Nieminen
bo-referenced_in_cs is checked if bo is already in cs. Adding and removing reference in bo is done with atomic operations to allow parallel access to a bo from multiple contexts. cs-id generation code quarentees there is not duplicated ids which limits number of cs-ids to 32. If there is more cs