freedreno: use util_dynarray_clear instead of util_dynarray_resize(_, 0)
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 3 May 2019 16:11:27 +0000 (18:11 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 12 Jun 2019 22:30:25 +0000 (18:30 -0400)
commitdc753625115844b0813f632340ab7e0dbb3c0fb2
treec1de762882f2953422de491de992e7dec4ae99ca
parent1ee2366693f4c79bbbc600af2b86bec53b9f0638
freedreno: use util_dynarray_clear instead of util_dynarray_resize(_, 0)

This is more expressive and simplifies a subsequent change.

v2:
- fix one more call-site after rebase

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/a4xx/fd4_gmem.c
src/gallium/drivers/freedreno/a5xx/fd5_gmem.c
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c