winsys/amdgpu: extract adding a new buffer list entry into its own function
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 7 Sep 2016 10:39:30 +0000 (12:39 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Sep 2016 11:55:01 +0000 (13:55 +0200)
commitcc53dfda9f8b6731419c743d30bc470d36dea218
tree8af77a913929b08f8efc98a4aa27cd469ab037fe
parent11cbf4d7aea861e37067407ba7a660ea566c1593
winsys/amdgpu: extract adding a new buffer list entry into its own function

While at it, try to be a little more robust in the face of memory allocation
failure.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c