[PATCH] libdrm_radeon: Optimize reloc writing to do less looping.

2010-03-01 Thread Pauli Nieminen
Bit has table will be first checked from BO if we can quarentee this BO is not in this cs already. When bo is emited the reference to cs is removed with bit operations. To quarentee that there is no other cs with same id number of CS that can have id is limited to number of bits in unsigned long.

[PATCH] libdrm_radeon: Optimize reloc writing to do less looping.

2010-03-01 Thread Pauli Nieminen
Bit has table will be first checked from BO if we can quarentee this BO is not in this cs already. When bo is emited the reference to cs is removed with bit operations. To quarentee that all cs ids are unique number of ids is limited to 32. If application uses more than 32 cs objects extra cs