summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-16 10:39:26 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:07 -0800
commit7d504f3d52a142d72bebce8d0e9221a88b9d0b73 (patch)
tree6950be7fc8a687ca47137ff04915d11e10338cb1
parent8e186cef2cac8e45a94befe0a30c52d3e56d4d1e (diff)
iris: don't leak sampler state table resources
-rw-r--r--src/gallium/drivers/iris/iris_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 4d1b3f1aa8c..8d34de98d8a 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2763,6 +2763,9 @@ iris_destroy_state(struct iris_context *ice)
}
pipe_surface_reference(&ice->state.framebuffer.zsbuf, NULL);
+ for (int stage = 0; stage < MESA_SHADER_STAGES; stage++) {
+ pipe_resource_reference(&ice->state.sampler_table_resource[stage], NULL);
+ }
free(ice->state.cso_vp);
free(ice->state.cso_depthbuffer);