Lines Matching refs:updateStateBlock

758         if (wined3d_stateblock_decref(device->updateStateBlock)
759 && device->updateStateBlock != device->stateBlock)
761 device->updateStateBlock = NULL;
1511 prev_buffer = device->updateStateBlock->state.stream_output[idx].buffer;
1512 device->updateStateBlock->state.stream_output[idx].buffer = buffer;
1513 device->updateStateBlock->state.stream_output[idx].offset = offset;
1574 stream = &device->updateStateBlock->state.streams[stream_idx];
1577 device->updateStateBlock->changed.streamSource |= 1 << stream_idx;
1670 stream = &device->updateStateBlock->state.streams[stream_idx];
1677 device->updateStateBlock->changed.streamFreq |= 1 << stream_idx;
1692 stream = &device->updateStateBlock->state.streams[stream_idx];
1714 device->updateStateBlock->changed.transform[d3dts >> 5] |= 1 << (d3dts & 0x1f);
1715 device->updateStateBlock->state.transforms[d3dts] = *matrix;
1753 /* Note: Using 'updateStateBlock' rather than 'stateblock' in the code
1763 mat = &device->updateStateBlock->state.transforms[state];
1816 LIST_FOR_EACH(e, &device->updateStateBlock->state.light_map[hash_idx])
1831 list_add_head(&device->updateStateBlock->state.light_map[hash_idx], &object->entry);
1969 LIST_FOR_EACH(e, &device->updateStateBlock->state.light_map[hash_idx])
1985 LIST_FOR_EACH(e, &device->updateStateBlock->state.light_map[hash_idx])
2009 device->updateStateBlock->state.lights[light_info->glIndex] = NULL;
2032 if (!device->updateStateBlock->state.lights[i])
2034 device->updateStateBlock->state.lights[i] = light_info;
2101 device->updateStateBlock->changed.clipplane |= 1 << plane_idx;
2103 if (!memcmp(&device->updateStateBlock->state.clip_planes[plane_idx], plane, sizeof(*plane)))
2109 device->updateStateBlock->state.clip_planes[plane_idx] = *plane;
2166 device->updateStateBlock->changed.material = TRUE;
2167 device->updateStateBlock->state.material = *material;
2183 *material = device->updateStateBlock->state.material;
2208 prev_buffer = device->updateStateBlock->state.index_buffer;
2210 device->updateStateBlock->changed.indices = TRUE;
2211 device->updateStateBlock->state.index_buffer = buffer;
2212 device->updateStateBlock->state.index_format = format_id;
2254 device->updateStateBlock->state.base_vertex_index = base_index;
2270 device->updateStateBlock->changed.viewport = TRUE;
2271 device->updateStateBlock->state.viewport = *viewport;
2313 device->updateStateBlock->changed.renderState[state >> 5] |= 1 << (state & 0x1f);
2314 device->updateStateBlock->state.render_states[state] = value;
2362 device->updateStateBlock->state.sampler_states[sampler_idx][state] = value;
2363 device->updateStateBlock->changed.samplerState[sampler_idx] |= 1 << state;
2404 device->updateStateBlock->changed.scissorRect = TRUE;
2405 if (EqualRect(&device->updateStateBlock->state.scissor_rect, rect))
2410 CopyRect(&device->updateStateBlock->state.scissor_rect, rect);
2425 *rect = device->updateStateBlock->state.scissor_rect;
2432 struct wined3d_vertex_declaration *prev = device->updateStateBlock->state.vertex_declaration;
2441 device->updateStateBlock->state.vertex_declaration = declaration;
2442 device->updateStateBlock->changed.vertexDecl = TRUE;
2469 struct wined3d_shader *prev = device->updateStateBlock->state.vertex_shader;
2478 device->updateStateBlock->state.vertex_shader = shader;
2479 device->updateStateBlock->changed.vertexShader = TRUE;
2515 prev = device->updateStateBlock->state.vs_cb[idx];
2516 device->updateStateBlock->state.vs_cb[idx] = buffer;
2567 prev = device->updateStateBlock->state.vs_sampler[idx];
2568 device->updateStateBlock->state.vs_sampler[idx] = sampler;
2601 memcpy(&device->updateStateBlock->state.vs_consts_b[start_register], constants, count * sizeof(BOOL));
2606 device->updateStateBlock->changed.vertexShaderConstantsB |= (1 << i);
2642 memcpy(&device->updateStateBlock->state.vs_consts_i[start_register * 4], constants, count * sizeof(int) * 4);
2649 device->updateStateBlock->changed.vertexShaderConstantsI |= (1 << i);
2688 memcpy(&device->updateStateBlock->state.vs_consts_f[start_register * 4],
2704 memset(device->updateStateBlock->changed.vertexShaderConstantsF + start_register, 1,
2705 sizeof(*device->updateStateBlock->changed.vertexShaderConstantsF) * vector4f_count);
2940 struct wined3d_shader *prev = device->updateStateBlock->state.pixel_shader;
2949 device->updateStateBlock->state.pixel_shader = shader;
2950 device->updateStateBlock->changed.pixelShader = TRUE;
2986 prev = device->updateStateBlock->state.ps_cb[idx];
2987 device->updateStateBlock->state.ps_cb[idx] = buffer;
3038 prev = device->updateStateBlock->state.ps_sampler[idx];
3039 device->updateStateBlock->state.ps_sampler[idx] = sampler;
3072 memcpy(&device->updateStateBlock->state.ps_consts_b[start_register], constants, count * sizeof(BOOL));
3077 device->updateStateBlock->changed.pixelShaderConstantsB |= (1 << i);
3113 memcpy(&device->updateStateBlock->state.ps_consts_i[start_register * 4], constants, count * sizeof(int) * 4);
3120 device->updateStateBlock->changed.pixelShaderConstantsI |= (1 << i);
3160 memcpy(&device->updateStateBlock->state.ps_consts_f[start_register * 4],
3176 memset(device->updateStateBlock->changed.pixelShaderConstantsF + start_register, 1,
3177 sizeof(*device->updateStateBlock->changed.pixelShaderConstantsF) * vector4f_count);
3201 struct wined3d_shader *prev = device->updateStateBlock->state.geometry_shader;
3210 device->updateStateBlock->state.geometry_shader = shader;
3237 prev = device->updateStateBlock->state.gs_cb[idx];
3238 device->updateStateBlock->state.gs_cb[idx] = buffer;
3289 prev = device->updateStateBlock->state.gs_sampler[idx];
3290 device->updateStateBlock->state.gs_sampler[idx] = sampler;
3664 old_value = device->updateStateBlock->state.texture_states[stage][state];
3665 device->updateStateBlock->changed.textureState[stage] |= 1 << state;
3666 device->updateStateBlock->state.texture_states[stage][state] = value;
3721 if (device->updateStateBlock->state.texture_states[i][WINED3D_TSS_COLOR_OP] == WINED3D_TOP_DISABLE)
3746 return device->updateStateBlock->state.texture_states[stage][state];
3773 device->updateStateBlock->changed.textures |= 1 << stage;
3775 prev = device->updateStateBlock->state.textures[stage];
3785 device->updateStateBlock->state.textures[stage] = texture;
3838 if (device->updateStateBlock->state.textures[i] == prev)
3923 wined3d_stateblock_decref(device->updateStateBlock);
3924 device->updateStateBlock = stateblock;
3935 struct wined3d_stateblock *object = device->updateStateBlock;
3950 device->updateStateBlock = device->stateBlock;
3951 wined3d_stateblock_incref(device->updateStateBlock);
4063 device->updateStateBlock->changed.primitive_type = TRUE;
4065 prev = device->updateStateBlock->state.gl_primitive_type;
4066 device->updateStateBlock->state.gl_primitive_type = gl_primitive_type;
5275 wined3d_stateblock_decref(device->updateStateBlock);
5287 device->updateStateBlock = device->stateBlock;
5288 wined3d_stateblock_incref(device->updateStateBlock);
5431 if (device->updateStateBlock != device->stateBlock
5432 && device->updateStateBlock->state.textures[i] == texture)
5435 texture, device->updateStateBlock, i);
5436 device->updateStateBlock->state.textures[i] = NULL;
5454 if (device->updateStateBlock != device->stateBlock
5455 && device->updateStateBlock->state.streams[i].buffer == buffer)
5458 buffer, device->updateStateBlock, i);
5459 device->updateStateBlock->state.streams[i].buffer = NULL;
5471 if (device->updateStateBlock != device->stateBlock
5472 && device->updateStateBlock->state.index_buffer == buffer)
5475 buffer, device->updateStateBlock);
5476 device->updateStateBlock->state.index_buffer = NULL;
5577 device->updateStateBlock = device->stateBlock;
5578 wined3d_stateblock_incref(device->updateStateBlock);