summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-10-25 13:24:16 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2016-11-08 16:23:22 +0000
commit79a1cc2364b7894617a8c70f0810d6879876f1e1 (patch)
tree99de98c3de0f2e18cee1257083e55fe18c47148e
parentcac5e31b0f7f17d1213288b5e7b2bd73ceccf401 (diff)
downloadexternal_mesa3d-79a1cc2364b7894617a8c70f0810d6879876f1e1.zip
external_mesa3d-79a1cc2364b7894617a8c70f0810d6879876f1e1.tar.gz
external_mesa3d-79a1cc2364b7894617a8c70f0810d6879876f1e1.tar.bz2
nvc0: use correct bufctx when invalidating CP textures
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 7b2712c367891e96384226a1fa94679a814235d0)
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
index 716048d..efd90de 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
@@ -591,7 +591,7 @@ void nvc0_validate_textures(struct nvc0_context *nvc0)
/* Invalidate all CP textures because they are aliased. */
for (int i = 0; i < nvc0->num_textures[5]; i++)
- nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_CP_TEX(i));
+ nouveau_bufctx_reset(nvc0->bufctx_cp, NVC0_BIND_CP_TEX(i));
nvc0->textures_dirty[5] = ~0;
nvc0->dirty_cp |= NVC0_NEW_CP_TEXTURES;
}