diff options
author | Thomas Helland <[email protected]> | 2017-06-01 23:15:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-07 21:07:24 +0200 |
commit | 9cb42ae997054f52be2e99764199e00eb28056eb (patch) | |
tree | d6e697bcb45c7b266edd486794186bf4a5a56f8d /src/gallium/drivers | |
parent | 07653f159f0c871fb301a111174f4fc7e7522661 (diff) |
util: Port nir_array functionality to u_dynarray
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
5 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index 7c7a45be84d..c2142b5a214 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -76,14 +76,14 @@ batch_init(struct fd_batch *batch) batch->max_scissor.minx = batch->max_scissor.miny = ~0; batch->max_scissor.maxx = batch->max_scissor.maxy = 0; - util_dynarray_init(&batch->draw_patches); + util_dynarray_init(&batch->draw_patches, NULL); if (is_a3xx(ctx->screen)) - util_dynarray_init(&batch->rbrc_patches); + util_dynarray_init(&batch->rbrc_patches, NULL); assert(batch->resources->entries == 0); - util_dynarray_init(&batch->samples); + util_dynarray_init(&batch->samples, NULL); } struct fd_batch * diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c index 61a5701284d..278a8a4a430 100644 --- a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c +++ b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c @@ -1119,7 +1119,7 @@ _nvfx_fragprog_translate(uint16_t oclass, struct nv30_fragprog *fp) goto out_err; tgsi_parse_init(&parse, fp->pipe.tokens); - util_dynarray_init(&insns); + util_dynarray_init(&insns, NULL); while (!tgsi_parse_end_of_tokens(&parse)) { tgsi_parse_token(&parse); diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c b/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c index 03d711a4cec..bec9975de9d 100644 --- a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c +++ b/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c @@ -998,7 +998,7 @@ _nvfx_vertprog_translate(uint16_t oclass, struct nv30_vertprog *vp) vpc->cvtx_idx = vpc->hpos_idx; } - util_dynarray_init(&insns); + util_dynarray_init(&insns, NULL); tgsi_parse_init(&parse, vp->pipe.tokens); while (!tgsi_parse_end_of_tokens(&parse)) { diff --git a/src/gallium/drivers/nouveau/nv50/nv50_context.c b/src/gallium/drivers/nouveau/nv50/nv50_context.c index 1ca6a0a178a..61243438fcb 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_context.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_context.c @@ -377,7 +377,7 @@ nv50_create(struct pipe_screen *pscreen, void *priv, unsigned ctxflags) nv50->base.scratch.bo_size = 2 << 20; - util_dynarray_init(&nv50->global_residents); + util_dynarray_init(&nv50->global_residents, NULL); return pipe; diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c index 59edd3d7e6e..d5ef5851daa 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c @@ -461,7 +461,7 @@ nvc0_create(struct pipe_screen *pscreen, void *priv, unsigned ctxflags) memset(nvc0->tex_handles, ~0, sizeof(nvc0->tex_handles)); - util_dynarray_init(&nvc0->global_residents); + util_dynarray_init(&nvc0->global_residents, NULL); return pipe; |