• Home
  • Raw
  • Download

Lines Matching refs:changed

78     if (This->state.changed.ps_const_f) {  in NineStateBlock9_dtor()
79 for (r = This->state.changed.ps_const_f; r->next; r = r->next); in NineStateBlock9_dtor()
80 nine_range_pool_put_chain(pool, This->state.changed.ps_const_f, r); in NineStateBlock9_dtor()
82 if (This->state.changed.vs_const_f) { in NineStateBlock9_dtor()
83 for (r = This->state.changed.vs_const_f; r->next; r = r->next); in NineStateBlock9_dtor()
84 nine_range_pool_put_chain(pool, This->state.changed.vs_const_f, r); in NineStateBlock9_dtor()
86 if (This->state.changed.vs_const_i) { in NineStateBlock9_dtor()
87 for (r = This->state.changed.vs_const_i; r->next; r = r->next); in NineStateBlock9_dtor()
88 nine_range_pool_put_chain(pool, This->state.changed.vs_const_i, r); in NineStateBlock9_dtor()
90 if (This->state.changed.vs_const_b) { in NineStateBlock9_dtor()
91 for (r = This->state.changed.vs_const_b; r->next; r = r->next); in NineStateBlock9_dtor()
92 nine_range_pool_put_chain(pool, This->state.changed.vs_const_b, r); in NineStateBlock9_dtor()
136 DBG("apply:%d changed.group: %x\n", (int)apply, (int)mask->changed.group ); in nine_state_copy_common()
138 dst->changed.group |= mask->changed.group; in nine_state_copy_common()
140 if (mask->changed.group & NINE_STATE_VIEWPORT) in nine_state_copy_common()
142 if (mask->changed.group & NINE_STATE_SCISSOR) in nine_state_copy_common()
145 if (mask->changed.group & NINE_STATE_VS) in nine_state_copy_common()
147 if (mask->changed.group & NINE_STATE_PS) in nine_state_copy_common()
161 if (mask->changed.group & NINE_STATE_VS_CONST) { in nine_state_copy_common()
163 for (r = mask->changed.vs_const_f; r; r = r->next) { in nine_state_copy_common()
168 for (r = mask->changed.vs_const_i; r; r = r->next) { in nine_state_copy_common()
173 for (r = mask->changed.vs_const_b; r; r = r->next) { in nine_state_copy_common()
181 if (mask->changed.group & NINE_STATE_PS_CONST) { in nine_state_copy_common()
183 for (r = mask->changed.ps_const_f; r; r = r->next) { in nine_state_copy_common()
188 if (mask->changed.ps_const_i) { in nine_state_copy_common()
189 uint16_t m = mask->changed.ps_const_i; in nine_state_copy_common()
194 if (mask->changed.ps_const_b) { in nine_state_copy_common()
195 uint16_t m = mask->changed.ps_const_b; in nine_state_copy_common()
205 for (i = 0; i < ARRAY_SIZE(dst->changed.rs); ++i) { in nine_state_copy_common()
206 uint32_t m = mask->changed.rs[i]; in nine_state_copy_common()
208 dst->changed.rs[i] |= m; in nine_state_copy_common()
219 if (mask->changed.ucp) { in nine_state_copy_common()
220 DBG("ucp: %x\n", mask->changed.ucp); in nine_state_copy_common()
222 if (mask->changed.ucp & (1 << i)) in nine_state_copy_common()
226 dst->changed.ucp |= mask->changed.ucp; in nine_state_copy_common()
230 if (mask->changed.group & NINE_STATE_SAMPLER) { in nine_state_copy_common()
232 if (mask->changed.sampler[s] == 0x3ffe) { in nine_state_copy_common()
235 uint32_t m = mask->changed.sampler[s]; in nine_state_copy_common()
244 dst->changed.sampler[s] |= mask->changed.sampler[s]; in nine_state_copy_common()
249 if (mask->changed.group & NINE_STATE_IDXBUF) in nine_state_copy_common()
256 if (mask->changed.vtxbuf | mask->changed.stream_freq) { in nine_state_copy_common()
257 DBG("vtxbuf/stream_freq: %x/%x\n", mask->changed.vtxbuf, mask->changed.stream_freq); in nine_state_copy_common()
258 uint32_t m = mask->changed.vtxbuf | mask->changed.stream_freq; in nine_state_copy_common()
260 if (mask->changed.vtxbuf & (1 << i)) { in nine_state_copy_common()
270 if (mask->changed.stream_freq & (1 << i)) in nine_state_copy_common()
274 dst->changed.vtxbuf |= mask->changed.vtxbuf; in nine_state_copy_common()
275 dst->changed.stream_freq |= mask->changed.stream_freq; in nine_state_copy_common()
280 if (mask->changed.texture) { in nine_state_copy_common()
281 uint32_t m = mask->changed.texture; in nine_state_copy_common()
287 if (!(mask->changed.group & NINE_STATE_FF)) in nine_state_copy_common()
293 if (mask->changed.group & NINE_STATE_FF_MATERIAL) in nine_state_copy_common()
296 if (mask->changed.group & NINE_STATE_FF_PSSTAGES) { in nine_state_copy_common()
299 if (mask->ff.changed.tex_stage[s][i / 32] & (1 << (i % 32))) in nine_state_copy_common()
303 dst->ff.changed.tex_stage[s][0] |= in nine_state_copy_common()
304 mask->ff.changed.tex_stage[s][0]; in nine_state_copy_common()
305 dst->ff.changed.tex_stage[s][1] |= in nine_state_copy_common()
306 mask->ff.changed.tex_stage[s][1]; in nine_state_copy_common()
310 if (mask->changed.group & NINE_STATE_FF_LIGHTING) { in nine_state_copy_common()
352 if (mask->changed.group & NINE_STATE_FF_VSTRANSF) { in nine_state_copy_common()
353 for (i = 0; i < ARRAY_SIZE(mask->ff.changed.transform); ++i) { in nine_state_copy_common()
354 if (!mask->ff.changed.transform[i]) in nine_state_copy_common()
357 if (!(mask->ff.changed.transform[i] & (1 << (s % 32)))) in nine_state_copy_common()
364 dst->ff.changed.transform[i] |= mask->ff.changed.transform[i]; in nine_state_copy_common()
381 dst->changed.group |= src->changed.group; in nine_state_copy_common_all()
405 struct nine_range *r = help->changed.ps_const_f; in nine_state_copy_common_all()
416 memcpy(dst->changed.rs, src->changed.rs, sizeof(dst->changed.rs)); in nine_state_copy_common_all()
422 dst->changed.ucp = src->changed.ucp; in nine_state_copy_common_all()
427 memcpy(dst->changed.sampler, in nine_state_copy_common_all()
428 src->changed.sampler, sizeof(dst->changed.sampler)); in nine_state_copy_common_all()
450 dst->changed.vtxbuf = (1ULL << MaxStreams) - 1; in nine_state_copy_common_all()
451 dst->changed.stream_freq = (1ULL << MaxStreams) - 1; in nine_state_copy_common_all()
462 if (!(help->changed.group & NINE_STATE_FF)) in nine_state_copy_common_all()
471 memcpy(dst->ff.changed.tex_stage, in nine_state_copy_common_all()
472 src->ff.changed.tex_stage, sizeof(dst->ff.changed.tex_stage)); in nine_state_copy_common_all()
500 memcpy(dst->ff.changed.transform, in nine_state_copy_common_all()
501 src->ff.changed.transform, sizeof(dst->ff.changed.transform)); in nine_state_copy_common_all()
523 if (dst->changed.group & NINE_STATE_VDECL) in NineStateBlock9_Capture()
548 if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl) in NineStateBlock9_Apply()