summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_surface.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-03-08 15:56:11 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 06:14:21 +0200
commit784f49e69624cba07616fd5a22ccb80ad3b5111b (patch)
tree295ddc36e2ee34c7745c1d892fba3246e949f427 /src/gallium/drivers/nvc0/nvc0_surface.c
parent2206a7f5132905bb1b53d8343d11847010f6b63a (diff)
nvc0: track texture dirty state individually
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_surface.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_surface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_surface.c b/src/gallium/drivers/nvc0/nvc0_surface.c
index cb5091ae376..d1a233fbcf6 100644
--- a/src/gallium/drivers/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nvc0/nvc0_surface.c
@@ -769,6 +769,8 @@ nvc0_blitctx_pre_blit(struct nvc0_blitctx *blit, struct nvc0_context *nvc0)
for (s = 0; s <= 4; ++s) {
blit->saved.num_textures[s] = nvc0->num_textures[s];
blit->saved.num_samplers[s] = nvc0->num_samplers[s];
+ nvc0->textures_dirty[s] = ~0;
+ nvc0->samplers_dirty[s] = ~0;
}
blit->saved.texture = nvc0->textures[4][0];
blit->saved.sampler = nvc0->samplers[4][0];
@@ -811,6 +813,8 @@ nvc0_blitctx_post_blit(struct nvc0_context *nvc0, struct nvc0_blitctx *blit)
for (s = 0; s <= 4; ++s) {
nvc0->num_textures[s] = blit->saved.num_textures[s];
nvc0->num_samplers[s] = blit->saved.num_samplers[s];
+ nvc0->textures_dirty[s] = ~0;
+ nvc0->samplers_dirty[s] = ~0;
}
nvc0->textures[4][0] = blit->saved.texture;
nvc0->samplers[4][0] = blit->saved.sampler;