diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-05-31 13:44:03 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-05-31 21:43:00 +0200 |
commit | cbe3421f05b1a99df6df0fc93d7ce7d5071af02f (patch) | |
tree | 0f76dfd5e62bd5ee72ab07ae0361fbc7bcb6c98c /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | 8cb74dd4e6504f77b473aacd783218727e252909 (diff) |
radeonsi: Add counter to check if a texture is bound to a framebuffer.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 88f4f2083e3..0987baf86c5 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -40,6 +40,8 @@ static void si_destroy_context(struct pipe_context *context) struct si_context *sctx = (struct si_context *)context; int i; + si_dec_framebuffer_counters(&sctx->framebuffer.state); + si_release_all_descriptors(sctx); if (sctx->ce_suballocator) |