diff options
author | Jonathan Marek <[email protected]> | 2019-09-12 13:17:21 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-09-28 00:34:43 -0400 |
commit | c4f63be5a6d04721b21ff7937900ca6699fbf1d7 (patch) | |
tree | 5fc1089d4f0a9369af5bc6fcb7c245b7b252c6d8 /src | |
parent | 0b3957331dfcaf3070584538791559a486a89e7d (diff) |
etnaviv: remove extra allocation for shader code
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c index 63a818fb9cb..bc8aac03c46 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c @@ -805,7 +805,7 @@ etna_compile_shader_nir(struct etna_shader_variant *v) emit_inst(c, &(struct etna_inst) { .opcode = INST_OPCODE_NOP }); /* assemble instructions, fixing up labels */ - uint32_t *code = MALLOC(c->inst_ptr * 16 + 1024); + uint32_t *code = MALLOC(c->inst_ptr * 16); for (unsigned i = 0; i < c->inst_ptr; i++) { struct etna_inst *inst = &c->code[i]; if (inst->opcode == INST_OPCODE_BRANCH) |