Module: Mesa
Branch: main
Commit: 9027aae546d0674aee704b24bf4e78271c25cc06
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9027aae546d0674aee704b24bf4e78271c25cc06

Author: Dave Airlie <[email protected]>
Date:   Wed Jun 23 12:26:33 2021 +1000

crocus: fix vertex buffer leak on screen end.

this was stopping the screen from being cleaned up as well

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>

---

 src/gallium/drivers/crocus/crocus_state.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/crocus/crocus_state.c 
b/src/gallium/drivers/crocus/crocus_state.c
index 170f207c28b..8506aaced06 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -8227,6 +8227,8 @@ crocus_destroy_state(struct crocus_context *ice)
       }
    }
 
+   for (int i = 0; i < 16; i++)
+      pipe_resource_reference(&ice->state.vertex_buffers[i].buffer.resource, 
NULL);
    pipe_resource_reference(&ice->state.grid_size.res, NULL);
 
    pipe_resource_reference(&ice->state.index_buffer.res, NULL);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to