Lines Matching refs:changed

392     if (context->changed.vs_const_f || context->changed.group & NINE_STATE_SWVP) {
425 context->changed.vs_const_f = 0;
428 if (context->changed.vs_const_i || context->changed.group & NINE_STATE_SWVP) {
438 context->changed.vs_const_i = 0;
441 if (context->changed.vs_const_b || context->changed.group & NINE_STATE_SWVP) {
451 context->changed.vs_const_b = 0;
454 context->changed.group &= ~NINE_STATE_VS_CONST;
474 if (context->changed.vs_const_i || context->changed.group & NINE_STATE_SWVP) {
477 context->changed.vs_const_i = 0;
480 if (context->changed.vs_const_b || context->changed.group & NINE_STATE_SWVP) {
484 context->changed.vs_const_b = 0;
545 context->changed.vs_const_f = 0;
547 context->changed.group &= ~NINE_STATE_VS_CONST;
562 if (context->changed.ps_const_i) {
565 context->changed.ps_const_i = 0;
567 if (context->changed.ps_const_b) {
571 context->changed.ps_const_b = 0;
633 context->changed.ps_const_f = 0;
635 context->changed.group &= ~NINE_STATE_PS_CONST;
778 context->changed.group &= ~NINE_STATE_FB;
907 context->changed.vtxbuf |= 1 << context->dummy_vbo_bound_at;
909 context->changed.vtxbuf |= 1 << dummy_vbo_stream;
925 uint32_t mask = context->changed.vtxbuf;
952 context->changed.vtxbuf = 0;
958 boolean changed = FALSE;
961 changed = TRUE;
967 changed = TRUE;
977 changed = TRUE;
981 context->changed.sampler[s] &= ~0x300; /* lod changes irrelevant */
984 return changed;
1010 if (update_sampler_derived(context, s) || (context->changed.sampler[s] & 0x05fe)) {
1011 context->changed.sampler[s] = 0;
1024 * or sampler states are changed. */
1031 context->changed.sampler[s] = ~0;
1056 if (update_sampler_derived(context, s) || (context->changed.sampler[s] & 0x05fe)) {
1057 context->changed.sampler[s] = 0;
1069 * or sampler states are changed. */
1076 context->changed.sampler[s] = ~0;
1217 DBG("changed state groups: %x\n", context->changed.group);
1223 * may be dirty anyway, even if no texture bindings changed.
1229 group = context->changed.group;
1264 if (context->changed.vtxbuf)
1284 if (unlikely(context->changed.ucp)) {
1286 context->changed.ucp = FALSE;
1312 context->changed.group &=
1424 context->changed.group |= NINE_STATE_BLEND;
1435 context->changed.group |= NINE_STATE_BLEND;
1445 context->changed.group |= nine_render_state_group[State];
1487 context->changed.group |= NINE_STATE_TEXTURE;
1535 context->changed.group |= NINE_STATE_PS_PARAMS_MISC;
1546 context->changed.group |= NINE_STATE_SAMPLER;
1547 context->changed.sampler[Sampler] |= 1 << Type;
1570 context->changed.vtxbuf |= 1 << StreamNumber;
1607 context->changed.group |= NINE_STATE_STREAMFREQ;
1621 context->changed.group |= NINE_STATE_IDXBUF;
1651 context->changed.group |= NINE_STATE_VS;
1654 context->changed.group |= NINE_STATE_VDECL;
1671 context->changed.group |= NINE_STATE_VS;
1695 context->changed.vs_const_f = TRUE;
1696 context->changed.group |= NINE_STATE_VS_CONST;
1721 context->changed.vs_const_i = TRUE;
1722 context->changed.group |= NINE_STATE_VS_CONST | NINE_STATE_VS_PARAMS_MISC;
1740 context->changed.vs_const_b = TRUE;
1741 context->changed.group |= NINE_STATE_VS_CONST | NINE_STATE_VS_PARAMS_MISC;
1757 context->changed.group |= NINE_STATE_PS;
1763 context->changed.group |= NINE_STATE_FB;
1778 context->changed.ps_const_f = TRUE;
1779 context->changed.group |= NINE_STATE_PS_CONST;
1795 context->changed.ps_const_i = TRUE;
1796 context->changed.group |= NINE_STATE_PS_CONST | NINE_STATE_PS_PARAMS_MISC;
1820 context->changed.ps_const_i = TRUE;
1821 context->changed.group |= NINE_STATE_PS_CONST | NINE_STATE_PS_PARAMS_MISC;
1839 context->changed.ps_const_b = TRUE;
1840 context->changed.group |= NINE_STATE_PS_CONST | NINE_STATE_PS_PARAMS_MISC;
1852 context->changed.group |= NINE_STATE_MULTISAMPLE;
1857 context->changed.group |= NINE_STATE_SAMPLE_MASK;
1862 context->changed.group |= NINE_STATE_FB;
1873 context->changed.group |= NINE_STATE_FB;
1885 context->changed.group |= NINE_STATE_VIEWPORT;
1897 context->changed.group |= NINE_STATE_SCISSOR;
1908 context->ff.changed.transform[State / 32] |= 1 << (State % 32);
1909 context->changed.group |= NINE_STATE_FF;
1918 context->changed.group |= NINE_STATE_FF_MATERIAL;
1928 context->changed.group |= NINE_STATE_FF_LIGHTING;
1944 context->changed.group |= NINE_STATE_FF_LIGHTING;
1954 context->changed.group |= NINE_STATE_FF_LIGHTING;
1986 context->changed.group |= NINE_STATE_PS_PARAMS_MISC;
1994 context->changed.group |= NINE_STATE_PS_CONST;
1997 context->changed.group |= NINE_STATE_FF_PS_CONSTS;
1998 context->ff.changed.tex_stage[Stage][Type / 32] |= 1 << (Type % 32);
2008 context->changed.ucp = TRUE;
2017 context->changed.group |= NINE_STATE_SWVP;
2031 /* No need to apply src->changed.group, since all calls do
2032 * set context->changed.group */
2034 for (i = 0; i < ARRAY_SIZE(src->changed.rs); ++i) {
2035 uint32_t m = src->changed.rs[i];
2044 if (src->changed.texture) {
2045 uint32_t m = src->changed.texture;
2057 if (src->changed.group & NINE_STATE_SAMPLER) {
2061 uint32_t m = src->changed.sampler[s];
2071 if (src->changed.vtxbuf | src->changed.stream_freq) {
2072 uint32_t m = src->changed.vtxbuf | src->changed.stream_freq;
2074 if (src->changed.vtxbuf & (1 << i))
2076 if (src->changed.stream_freq & (1 << i))
2082 if (src->changed.group & NINE_STATE_IDXBUF)
2086 if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl)
2090 if (src->changed.group & NINE_STATE_VS)
2094 if (src->changed.group & NINE_STATE_PS)
2098 if (src->changed.group & NINE_STATE_VS_CONST) {
2100 for (r = src->changed.vs_const_f; r; r = r->next)
2105 for (r = src->changed.vs_const_i; r; r = r->next)
2110 for (r = src->changed.vs_const_b; r; r = r->next)
2118 if (src->changed.group & NINE_STATE_PS_CONST) {
2120 for (r = src->changed.ps_const_f; r; r = r->next)
2125 if (src->changed.ps_const_i) {
2126 uint16_t m = src->changed.ps_const_i;
2132 if (src->changed.ps_const_b) {
2133 uint16_t m = src->changed.ps_const_b;
2142 if (src->changed.group & NINE_STATE_VIEWPORT)
2146 if (src->changed.group & NINE_STATE_SCISSOR)
2150 if (src->changed.ucp)
2152 if (src->changed.ucp & (1 << i))
2155 if (!(src->changed.group & NINE_STATE_FF))
2160 if (src->changed.group & NINE_STATE_FF_MATERIAL)
2163 if (src->changed.group & NINE_STATE_FF_PS_CONSTS) {
2167 if (src->ff.changed.tex_stage[s][i / 32] & (1 << (i % 32)))
2171 if (src->changed.group & NINE_STATE_FF_LIGHTING) {
2178 if (src->changed.group & NINE_STATE_FF_VSTRANSF) {
2179 for (i = 0; i < ARRAY_SIZE(src->ff.changed.transform); ++i) {
2181 if (!src->ff.changed.transform[i])
2184 if (!(src->ff.changed.transform[i] & (1 << (s % 32))))
2206 if (context->changed.group & NINE_STATE_FB)
2464 context->changed.vtxbuf |= 1;
2844 context->changed.group = NINE_STATE_ALL; /* TODO: we can remove states that have prepared commits */
2845 context->changed.vtxbuf = (1ULL << device->caps.MaxStreams) - 1;
2846 context->changed.ucp = TRUE;
2906 /* Set changed flags to initialize driver.
2908 context->changed.group = NINE_STATE_ALL;
2909 context->changed.vtxbuf = (1ULL << device->caps.MaxStreams) - 1;
2910 context->changed.ucp = TRUE;
2912 context->ff.changed.transform[0] = ~0;
2913 context->ff.changed.transform[D3DTS_WORLD / 32] |= 1 << (D3DTS_WORLD % 32);
2921 context->changed.sampler[s] = ~0;