Module: Mesa Branch: master Commit: c4f63be5a6d04721b21ff7937900ca6699fbf1d7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4f63be5a6d04721b21ff7937900ca6699fbf1d7
Author: Jonathan Marek <[email protected]> Date: Thu Sep 12 13:17:21 2019 -0400 etnaviv: remove extra allocation for shader code Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> --- src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
