Mesa (11.0): nvc0: don' t forget to reset VTX_TMP bufctx slot after blit completion
Emil Velikov
evelikov at kemper.freedesktop.org
Fri Jan 15 14:45:18 UTC 2016
Module: Mesa
Branch: 11.0
Commit: 74317eadce0239121b1ec00afa9f53ca03d72cb5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=74317eadce0239121b1ec00afa9f53ca03d72cb5
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Dec 27 20:44:01 2015 -0500
nvc0: don't forget to reset VTX_TMP bufctx slot after blit completion
Also release the scratch allocation if any.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
(cherry picked from commit 109c348284843054f708f4403260739b7db18275)
---
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
index dbdf292..5f21db2 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
@@ -1006,9 +1006,11 @@ nvc0_blitctx_post_blit(struct nvc0_blitctx *blit)
nvc0->base.pipe.render_condition(&nvc0->base.pipe, nvc0->cond_query,
nvc0->cond_cond, nvc0->cond_mode);
+ nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_VTX_TMP);
nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_FB);
nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_TEX(4, 0));
nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_TEX(4, 1));
+ nouveau_scratch_done(&nvc0->base);
nvc0->dirty = blit->saved.dirty |
(NVC0_NEW_FRAMEBUFFER | NVC0_NEW_SCISSOR | NVC0_NEW_SAMPLE_MASK |
More information about the mesa-commit
mailing list