projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5069e4b
)
vc4: Fix a memory leak in setting up QPU instructions for scheduling.
author
Eric Anholt
<eric@anholt.net>
Fri, 12 Dec 2014 03:56:42 +0000
(19:56 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 12 Dec 2014 05:31:27 +0000
(21:31 -0800)
src/gallium/drivers/vc4/vc4_qpu_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_qpu_emit.c
b/src/gallium/drivers/vc4/vc4_qpu_emit.c
index f2620c0a75f8e6c839213b05f900fea911879955..c4359e718f5e4e44c4f40154c5f702a064831da9 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_qpu_emit.c
+++ b/
src/gallium/drivers/vc4/vc4_qpu_emit.c
@@
-26,6
+26,7
@@
#include "vc4_context.h"
#include "vc4_qir.h"
#include "vc4_qpu.h"
+#include "util/ralloc.h"
static void
vc4_dump_program(struct vc4_compile *c)
@@
-44,7
+45,7
@@
vc4_dump_program(struct vc4_compile *c)
static void
queue(struct vc4_compile *c, uint64_t inst)
{
- struct queued_qpu_inst *q =
calloc(1, sizeof(*q)
);
+ struct queued_qpu_inst *q =
rzalloc(c, struct queued_qpu_inst
);
q->inst = inst;
insert_at_tail(&c->qpu_inst_list, &q->link);
}