unsigned s;
for (s = 0; s < NINE_MAX_SAMPLERS; ++s)
if (state->texture[s] == This)
- state->changed.texture |= 1 << s;
- if (state->changed.texture)
- state->changed.group |= NINE_STATE_TEXTURE;
+ state->changed.group |= NINE_STATE_TEXTURE;
}
/* Allocate a new resource */
}
nine_bind(&state->texture[Stage], pTexture);
- state->changed.texture |= 1 << Stage;
+ if (This->is_recording)
+ state->changed.texture |= 1 << Stage;
state->changed.group |= NINE_STATE_TEXTURE;
return D3D_OK;
if (commit_samplers)
cso_single_sampler_done(device->cso, PIPE_SHADER_VERTEX);
-
- state->changed.texture = 0;
}
/* State commit only */
state->changed.group = NINE_STATE_ALL;
state->changed.vtxbuf = (1ULL << device->caps.MaxStreams) - 1;
state->changed.ucp = (1 << PIPE_MAX_CLIP_PLANES) - 1;
- state->changed.texture = NINE_PS_SAMPLERS_MASK | NINE_VS_SAMPLERS_MASK;
context->commit |= NINE_STATE_COMMIT_CONST_VS | NINE_STATE_COMMIT_CONST_PS;
}
state->changed.group = NINE_STATE_ALL;
state->changed.vtxbuf = (1ULL << device->caps.MaxStreams) - 1;
state->changed.ucp = (1 << PIPE_MAX_CLIP_PLANES) - 1;
- state->changed.texture = NINE_PS_SAMPLERS_MASK | NINE_VS_SAMPLERS_MASK;
state->ff.changed.transform[0] = ~0;
state->ff.changed.transform[D3DTS_WORLD / 32] |= 1 << (D3DTS_WORLD % 32);
uint32_t rs[(NINED3DRS_COUNT + 31) / 32]; /* stateblocks only */
uint32_t vtxbuf;
uint32_t stream_freq;
- uint32_t texture;
+ uint32_t texture; /* stateblocks only */
uint16_t sampler[NINE_MAX_SAMPLERS];
struct nine_range *vs_const_f;
struct nine_range *ps_const_f;
/* Textures */
if (src->changed.texture) {
uint32_t m = src->changed.texture;
- dst->changed.texture |= m;
dst->samplers_shadow &= ~m;