/* likely because we dislike FF */
if (likely(context->programmable_vs)) {
- context->cso.vs = NineVertexShader9_GetVariant(vs);
+ context->cso_shader.vs = NineVertexShader9_GetVariant(vs);
} else {
vs = device->ff.vs;
- context->cso.vs = vs->ff_cso;
+ context->cso_shader.vs = vs->ff_cso;
}
if (context->rs[NINED3DRS_VSPOINTSIZE] != vs->point_size) {
return 0;
if (likely(ps)) {
- context->cso.ps = NinePixelShader9_GetVariant(ps);
+ context->cso_shader.ps = NinePixelShader9_GetVariant(ps);
} else {
ps = device->ff.ps;
- context->cso.ps = ps->ff_cso;
+ context->cso_shader.ps = ps->ff_cso;
}
if ((context->bound_samplers_mask_ps & ps->sampler_mask) != ps->sampler_mask)
{
struct nine_context *context = &device->context;
- device->pipe->bind_vs_state(device->pipe, context->cso.vs);
+ device->pipe->bind_vs_state(device->pipe, context->cso_shader.vs);
}
{
struct nine_context *context = &device->context;
- device->pipe->bind_fs_state(device->pipe, context->cso.ps);
+ device->pipe->bind_fs_state(device->pipe, context->cso_shader.ps);
}
/* State Update */
do {
if (var->cso) {
- if (This->base.device->context.cso.ps == var->cso)
+ if (This->base.device->context.cso_shader.ps == var->cso)
pipe->bind_fs_state(pipe, NULL);
pipe->delete_fs_state(pipe, var->cso);
}
} while (var);
if (This->ff_cso) {
- if (This->ff_cso == This->base.device->context.cso.ps)
+ if (This->ff_cso == This->base.device->context.cso_shader.ps)
pipe->bind_fs_state(pipe, NULL);
pipe->delete_fs_state(pipe, This->ff_cso);
}
do {
if (var->cso) {
- if (This->base.device->context.cso.vs == var->cso)
+ if (This->base.device->context.cso_shader.vs == var->cso)
pipe->bind_vs_state(pipe, NULL);
pipe->delete_vs_state(pipe, var->cso);
}
}
if (This->ff_cso) {
- if (This->ff_cso == This->base.device->context.cso.vs)
+ if (This->ff_cso == This->base.device->context.cso_shader.vs)
pipe->bind_vs_state(pipe, NULL);
pipe->delete_vs_state(pipe, This->ff_cso);
}