summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_context.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-03-07 19:44:10 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 06:14:21 +0200
commit2d06ee8bf784d98a822617db5366f56b9bb5d3a2 (patch)
tree584789e8de984001ec7a7e8d16c06b02346865c3 /src/gallium/drivers/nv50/nv50_context.c
parent687c05661f54dc9a6df5974a91205fc7ed469f2b (diff)
nv50,nvc0: hold references to the framebuffer surfaces
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c
index 98f8c4d266c..96ada551b30 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -22,6 +22,7 @@
#include "draw/draw_context.h"
#include "pipe/p_defines.h"
+#include "util/u_framebuffer.h"
#include "nv50_context.h"
#include "nv50_screen.h"
@@ -71,6 +72,8 @@ nv50_context_unreference_resources(struct nv50_context *nv50)
nouveau_bufctx_del(&nv50->bufctx_3d);
nouveau_bufctx_del(&nv50->bufctx);
+ util_unreference_framebuffer_state(&nv50->framebuffer);
+
for (i = 0; i < nv50->num_vtxbufs; ++i)
pipe_resource_reference(&nv50->vtxbuf[i].buffer, NULL);