summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/basetexture9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-20 22:10:34 +0200
committerAxel Davy <[email protected]>2016-12-20 23:44:22 +0100
commitb748b8fd8619ab412517f859dbf9a42b62ef6309 (patch)
treec2f892a75ad5e7126641051f191a091842842774 /src/gallium/state_trackers/nine/basetexture9.c
parenta0a18920c7cdba1ffc6d642aff039476755c1cae (diff)
st/nine: Track dirty state groups in nine_context
Part of the refactor to move all gallium calls to nine_state.c, and have all internal states required for those calls in nine_context. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/basetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/basetexture9.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c
index 633fa232877..ddbc5623e73 100644
--- a/src/gallium/state_trackers/nine/basetexture9.c
+++ b/src/gallium/state_trackers/nine/basetexture9.c
@@ -207,11 +207,12 @@ NineBaseTexture9_UploadSelf( struct NineBaseTexture9 *This )
if (This->bind_count) {
/* mark state dirty */
struct nine_state *state = &This->base.base.device->state;
+ struct nine_context *context = &This->base.base.device->context;
unsigned s;
for (s = 0; s < NINE_MAX_SAMPLERS; ++s)
/* Dirty tracking is done in device9 state, not nine_context. */
if (state->texture[s] == This)
- state->changed.group |= NINE_STATE_TEXTURE;
+ context->changed.group |= NINE_STATE_TEXTURE;
}
/* Allocate a new resource */