Lines Matching defs:state

49     This->state.vs_const_f = MALLOC(VS_CONST_F_SIZE(This->base.device));
50 This->state.ps_const_f = MALLOC(This->base.device->ps_const_size);
51 This->state.vs_const_i = MALLOC(VS_CONST_I_SIZE(This->base.device));
52 This->state.vs_const_b = MALLOC(VS_CONST_B_SIZE(This->base.device));
53 if (!This->state.vs_const_f || !This->state.ps_const_f ||
54 !This->state.vs_const_i || !This->state.vs_const_b)
63 struct nine_state *state = &This->state;
68 for (i = 0; i < ARRAY_SIZE(state->rt); ++i)
69 nine_bind(&state->rt[i], NULL);
70 nine_bind(&state->ds, NULL);
71 nine_bind(&state->vs, NULL);
72 nine_bind(&state->ps, NULL);
73 nine_bind(&state->vdecl, NULL);
75 nine_bind(&state->stream[i], NULL);
77 nine_bind(&state->idxbuf, NULL);
79 nine_bind(&state->texture[i], NULL);
81 FREE(state->vs_const_f);
82 FREE(state->ps_const_f);
83 FREE(state->vs_const_i);
84 FREE(state->vs_const_b);
86 FREE(state->ff.light);
88 FREE(state->ff.transform);
90 if (This->state.changed.ps_const_f) {
91 for (r = This->state.changed.ps_const_f; r->next; r = r->next);
92 nine_range_pool_put_chain(pool, This->state.changed.ps_const_f, r);
94 if (This->state.changed.vs_const_f) {
95 for (r = This->state.changed.vs_const_f; r->next; r = r->next);
96 nine_range_pool_put_chain(pool, This->state.changed.vs_const_f, r);
98 if (This->state.changed.vs_const_i) {
99 for (r = This->state.changed.vs_const_i; r->next; r = r->next);
100 nine_range_pool_put_chain(pool, This->state.changed.vs_const_i, r);
102 if (This->state.changed.vs_const_b) {
103 for (r = This->state.changed.vs_const_b; r->next; r = r->next);
104 nine_range_pool_put_chain(pool, This->state.changed.vs_const_b, r);
134 /* Copy state marked changed in @mask from @src to @dst.
175 * Note: Currently when we apply stateblocks, it's always on the device state.
176 * Should it affect recording stateblocks ? Since it's on device state, there
248 /* Sampler state. */
309 WARN_ONCE("Fixed function state not handled properly by StateBlocks.\n");
311 /* Fixed function state. */
333 /* Can happen in Capture() if device state has created new lights after
353 * Can happen in Apply() if device state has created new lights after
445 /* Sampler state. */
485 WARN_ONCE("Fixed function state not handled properly by StateBlocks.\n");
487 /* Fixed function state. */
522 /* Apply is always used on device state.
532 /* Capture those bits of current device state that have been changed between
539 struct nine_state *dst = &This->state;
540 struct nine_state *src = &device->state;
556 /* Set state managed by this StateBlock as current device state. */
561 struct nine_state *dst = &device->state;
562 struct nine_state *src = &This->state;