u_upload_mgr: optimize u_upload_alloc
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 Sep 2015 12:57:55 +0000 (14:57 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2015 16:09:13 +0000 (18:09 +0200)
commit6c1e368cf38e02174a8c88218ae711ab0b27954f
tree7e068f4b24ff81de19063bb36a541ece0ae7f2f0
parent722ce747436f5b9c79d1fa4a8c59eed2f9cb611b
u_upload_mgr: optimize u_upload_alloc

This is probably the most called util function. It does almost nothing,
yet it can consume 10% of the CPU on the profile. This drops it down to 5%.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_upload_mgr.c