nvc0: use correct bufctx when invalidating CP textures
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Oct 2016 11:24:16 +0000 (13:24 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Oct 2016 18:22:05 +0000 (20:22 +0200)
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>
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c

index cbc270d9f19f2d7b09e6b45ba9ecd5e0c0f58a00..e57391e9a3292a28412f56b8c4ef3e9fc7354aeb 100644 (file)
@@ -607,7 +607,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;
 }