aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink/zink_cmdbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/zink/zink_cmdbuf.c')
-rw-r--r--src/gallium/drivers/zink/zink_cmdbuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_cmdbuf.c b/src/gallium/drivers/zink/zink_cmdbuf.c
index ab07069128d..aab898f84b1 100644
--- a/src/gallium/drivers/zink/zink_cmdbuf.c
+++ b/src/gallium/drivers/zink/zink_cmdbuf.c
@@ -2,6 +2,8 @@
#include "zink_context.h"
#include "zink_fence.h"
+#include "zink_framebuffer.h"
+#include "zink_render_pass.h"
#include "zink_screen.h"
#include "util/u_debug.h"
@@ -15,6 +17,9 @@ reset_cmdbuf(struct zink_screen *screen, struct zink_cmdbuf *cmdbuf)
zink_fence_finish(screen, cmdbuf->fence, PIPE_TIMEOUT_INFINITE);
zink_fence_reference(screen, &cmdbuf->fence, NULL);
+
+ zink_render_pass_reference(screen, &cmdbuf->rp, NULL);
+ zink_framebuffer_reference(screen, &cmdbuf->fb, NULL);
}
struct zink_cmdbuf *