winsys/radeon: don't pre-allocate the relocations array
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 9 Sep 2016 16:50:34 +0000 (18:50 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Sep 2016 11:55:53 +0000 (13:55 +0200)
commitd66bbfbeded04cb728a2d8e4356c8e2b5e67ace1
tree462b253d08a0b528f063e0875093f6284662ffc7
parentf47da2e34fd2480a15b50df2ac43487c7505674b
winsys/radeon: don't pre-allocate the relocations array

It's really not necessary. Switch to an exponential resizing strategy.

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