From 9cb42ae997054f52be2e99764199e00eb28056eb Mon Sep 17 00:00:00 2001 From: Thomas Helland Date: Thu, 1 Jun 2017 23:15:43 +0200 Subject: util: Port nir_array functionality to u_dynarray MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Eric Engestrom --- src/gallium/state_trackers/va/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c index c7d6ef7c8c3..f968e9ede17 100644 --- a/src/gallium/state_trackers/va/surface.c +++ b/src/gallium/state_trackers/va/surface.c @@ -749,7 +749,7 @@ vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format, assert(0); } - util_dynarray_init(&surf->subpics); + util_dynarray_init(&surf->subpics, NULL); surfaces[i] = handle_table_add(drv->htab, surf); if (!surfaces[i]) { vaStatus = VA_STATUS_ERROR_ALLOCATION_FAILED; -- cgit v1.2.3