nvc0: fix missing permanent bo reference on poly cache
authorBen Skeggs <bskeggs@redhat.com>
Sun, 7 Oct 2012 23:13:46 +0000 (09:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 8 Oct 2012 23:56:12 +0000 (09:56 +1000)
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nvc0/nvc0_context.c

index 2c032ab74202978317b4d17b6a55ea737c9e797c..e235fe1d4cabf138c6ca77117b2a827a811252ac 100644 (file)
@@ -186,6 +186,7 @@ nvc0_create(struct pipe_screen *pscreen, void *priv)
    BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->text);
    BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->uniform_bo);
    BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->txc);
+   BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->poly_cache);
 
    flags = NOUVEAU_BO_GART | NOUVEAU_BO_WR;