projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50eb1c1
)
iris: Fix memory leak for draw parameter resources
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 27 Jun 2019 18:49:41 +0000
(11:49 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 27 Jun 2019 21:59:39 +0000
(14:59 -0700)
Need to pitch these on context destroy.
src/gallium/drivers/iris/iris_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_state.c
b/src/gallium/drivers/iris/iris_state.c
index d717b48cf2b479c22cc646433e8b18029d954009..8d7b2557b76cb674dee88e005caad2d4ec57e84e 100644
(file)
--- a/
src/gallium/drivers/iris/iris_state.c
+++ b/
src/gallium/drivers/iris/iris_state.c
@@
-5614,6
+5614,9
@@
iris_destroy_state(struct iris_context *ice)
{
struct iris_genx_state *genx = ice->state.genx;
+ pipe_resource_reference(&ice->draw.draw_params_res, NULL);
+ pipe_resource_reference(&ice->draw.derived_draw_params_res, NULL);
+
uint64_t bound_vbs = ice->state.bound_vertex_buffers;
while (bound_vbs) {
const int i = u_bit_scan64(&bound_vbs);