winsys/amdgpu: add a fast exit path into amdgpu_cs_add_buffer
authorMarek Olšák <marek.olsak@amd.com>
Thu, 26 Jan 2017 16:29:32 +0000 (17:29 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 Jan 2017 12:57:09 +0000 (13:57 +0100)
commit2fc5fe0e85d7dce0d995b71499a95ac2162feb12
tree9b9db005c907db7d7cebf3115ccf7ac64538b21d
parent86eb52adad583182b5878b933d12db87535b84ed
winsys/amdgpu: add a fast exit path into amdgpu_cs_add_buffer

The time spent in the function dropped by 37% for torcs.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.h