summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv40/nv40_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_state.c')
-rw-r--r--src/mesa/pipe/nv40/nv40_state.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/pipe/nv40/nv40_state.c b/src/mesa/pipe/nv40/nv40_state.c
index 70abc0feba..a7a5fefc6d 100644
--- a/src/mesa/pipe/nv40/nv40_state.c
+++ b/src/mesa/pipe/nv40/nv40_state.c
@@ -238,10 +238,8 @@ nv40_sampler_state_bind(struct pipe_context *pipe, unsigned unit,
struct nv40_context *nv40 = (struct nv40_context *)pipe;
struct nv40_sampler_state *ps = hwcso;
- nv40->tex_sampler[unit] = ps;
- nv40->tex_dirty |= (1 << unit);
-
- nv40->dirty |= NV40_NEW_TEXTURE;
+ nv40->tex_sampler[unit] = ps;
+ nv40->dirty_samplers |= (1 << unit);
}
static void
@@ -256,10 +254,8 @@ nv40_set_sampler_texture(struct pipe_context *pipe, unsigned unit,
{
struct nv40_context *nv40 = (struct nv40_context *)pipe;
- nv40->tex_miptree[unit] = miptree;
- nv40->tex_dirty |= (1 << unit);
-
- nv40->dirty |= NV40_NEW_TEXTURE;
+ nv40->tex_miptree[unit] = (struct nv40_miptree *)miptree;
+ nv40->dirty_samplers |= (1 << unit);
}
static void *