diff options
author | Axel Davy <[email protected]> | 2016-10-16 15:56:14 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:21 +0100 |
commit | 6bbb7b9fc5bc978ac3236064a1de50376177c735 (patch) | |
tree | 2eacfcc82e4751485560888103a9541643ace105 /src/gallium/state_trackers/nine/stateblock9.c | |
parent | c1871e829aa220a7040ca6e423d404f072256db9 (diff) |
st/nine: Move texture setting to nine_context_*
And move samplers_shadow to 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/stateblock9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/stateblock9.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c index d04ac8f7bfe..4f5e9d7b8d3 100644 --- a/src/gallium/state_trackers/nine/stateblock9.c +++ b/src/gallium/state_trackers/nine/stateblock9.c @@ -570,7 +570,7 @@ NineStateBlock9_Apply( struct NineStateBlock9 *This ) else nine_state_copy_common(device, dst, src, src, TRUE, pool); - nine_context_apply_stateblock(&device->context, src); + nine_context_apply_stateblock(device, src); if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl) NineDevice9_SetVertexDeclaration(This->base.device, (IDirect3DVertexDeclaration9 *)src->vdecl); @@ -582,8 +582,6 @@ NineStateBlock9_Apply( struct NineStateBlock9 *This ) if (src->changed.texture) { uint32_t m = src->changed.texture; - dst->samplers_shadow &= ~m; - for (s = 0; m; ++s, m >>= 1) { struct NineBaseTexture9 *tex = src->texture[s]; if (!(m & 1)) @@ -592,7 +590,6 @@ NineStateBlock9_Apply( struct NineStateBlock9 *This ) tex->bind_count++; if ((tex->managed.dirty | tex->dirty_mip) && LIST_IS_EMPTY(&tex->list)) list_add(&tex->list, &This->base.device->update_textures); - dst->samplers_shadow |= tex->shadow << s; } if (src->texture[s]) src->texture[s]->bind_count--; |