Lines Matching refs:updateStateBlock

1648     This->updateStateBlock = This->stateBlock;
1649 IWineD3DStateBlock_AddRef((IWineD3DStateBlock*)This->updateStateBlock);
1932 if(IWineD3DStateBlock_Release((IWineD3DStateBlock *)This->updateStateBlock) > 0){
1933 if(This->updateStateBlock != This->stateBlock)
1936 This->updateStateBlock = NULL;
2147 oldSrc = This->updateStateBlock->streamSource[StreamNumber];
2150 This->updateStateBlock->changed.streamSource |= 1 << StreamNumber;
2153 This->updateStateBlock->streamStride[StreamNumber] == Stride &&
2154 This->updateStateBlock->streamOffset[StreamNumber] == OffsetInBytes) {
2159 This->updateStateBlock->streamSource[StreamNumber] = pStreamData;
2161 This->updateStateBlock->streamStride[StreamNumber] = Stride;
2162 This->updateStateBlock->streamOffset[StreamNumber] = OffsetInBytes;
2215 UINT oldFlags = This->updateStateBlock->streamFlags[StreamNumber];
2216 UINT oldFreq = This->updateStateBlock->streamFreq[StreamNumber];
2233 This->updateStateBlock->streamFlags[StreamNumber] = Divider & (WINED3DSTREAMSOURCE_INSTANCEDATA | WINED3DSTREAMSOURCE_INDEXEDDATA );
2235 This->updateStateBlock->changed.streamFreq |= 1 << StreamNumber;
2236 This->updateStateBlock->streamFreq[StreamNumber] = Divider & 0x7FFFFF;
2238 if(This->updateStateBlock->streamFreq[StreamNumber] != oldFreq ||
2239 This->updateStateBlock->streamFlags[StreamNumber] != oldFlags) {
2250 *Divider = This->updateStateBlock->streamFreq[StreamNumber] | This->updateStateBlock->streamFlags[StreamNumber];
2269 This->updateStateBlock->changed.transform[d3dts >> 5] |= 1 << (d3dts & 0x1f);
2270 This->updateStateBlock->transforms[d3dts] = *lpmatrix;
2318 /* Note: Using 'updateStateBlock' rather than 'stateblock' in the code
2328 mat = &This->updateStateBlock->transforms[State];
2389 LIST_FOR_EACH(e, &This->updateStateBlock->lightMap[Hi])
2403 list_add_head(&This->updateStateBlock->lightMap[Hi], &object->entry);
2529 LIST_FOR_EACH(e, &This->updateStateBlock->lightMap[Hi])
2544 LIST_FOR_EACH(e, &This->updateStateBlock->lightMap[Hi])
2562 This->updateStateBlock->activeLights[lightInfo->glIndex] = NULL;
2577 if(This->updateStateBlock->activeLights[i] == NULL) {
2578 This->updateStateBlock->activeLights[i] = lightInfo;
2643 This->updateStateBlock->changed.clipplane |= 1 << Index;
2645 if(This->updateStateBlock->clipplane[Index][0] == pPlane[0] &&
2646 This->updateStateBlock->clipplane[Index][1] == pPlane[1] &&
2647 This->updateStateBlock->clipplane[Index][2] == pPlane[2] &&
2648 This->updateStateBlock->clipplane[Index][3] == pPlane[3]) {
2653 This->updateStateBlock->clipplane[Index][0] = pPlane[0];
2654 This->updateStateBlock->clipplane[Index][1] = pPlane[1];
2655 This->updateStateBlock->clipplane[Index][2] = pPlane[2];
2656 This->updateStateBlock->clipplane[Index][3] = pPlane[3];
2697 This->updateStateBlock->clip_status.ClipUnion = pClipStatus->ClipUnion;
2698 This->updateStateBlock->clip_status.ClipIntersection = pClipStatus->ClipIntersection;
2708 pClipStatus->ClipUnion = This->updateStateBlock->clip_status.ClipUnion;
2709 pClipStatus->ClipIntersection = This->updateStateBlock->clip_status.ClipIntersection;
2719 This->updateStateBlock->changed.material = TRUE;
2720 This->updateStateBlock->material = *pMaterial;
2734 *pMaterial = This->updateStateBlock->material;
2758 oldIdxs = This->updateStateBlock->pIndexData;
2760 This->updateStateBlock->changed.indices = TRUE;
2761 This->updateStateBlock->pIndexData = pIndexData;
2762 This->updateStateBlock->IndexFmt = fmt;
2810 if(This->updateStateBlock->baseVertexIndex == BaseIndex) {
2815 This->updateStateBlock->baseVertexIndex = BaseIndex;
2844 This->updateStateBlock->changed.viewport = TRUE;
2845 This->updateStateBlock->viewport = *pViewport;
2879 This->updateStateBlock->changed.renderState[State >> 5] |= 1 << (State & 0x1f);
2880 This->updateStateBlock->renderState[State] = Value;
2941 This->updateStateBlock->samplerState[Sampler][Type] = Value;
2942 This->updateStateBlock->changed.samplerState[Sampler] |= 1 << Type;
2983 This->updateStateBlock->changed.scissorRect = TRUE;
2984 if(EqualRect(&This->updateStateBlock->scissorRect, pRect)) {
2988 CopyRect(&This->updateStateBlock->scissorRect, pRect);
3003 *pRect = This->updateStateBlock->scissorRect;
3010 IWineD3DVertexDeclaration *oldDecl = This->updateStateBlock->vertexDecl;
3017 This->updateStateBlock->vertexDecl = pDecl;
3018 This->updateStateBlock->changed.vertexDecl = TRUE;
3045 IWineD3DVertexShader* oldShader = This->updateStateBlock->vertexShader;
3047 This->updateStateBlock->vertexShader = pShader;
3048 This->updateStateBlock->changed.vertexShader = TRUE;
3102 memcpy(&This->updateStateBlock->vertexShaderConstantB[start], srcData, cnt * sizeof(BOOL));
3107 This->updateStateBlock->changed.vertexShaderConstantsB |= (1 << i);
3155 memcpy(&This->updateStateBlock->vertexShaderConstantI[start * 4], srcData, cnt * sizeof(int) * 4);
3161 This->updateStateBlock->changed.vertexShaderConstantsI |= (1 << i);
3210 memcpy(&This->updateStateBlock->vertexShaderConstantF[start * 4], srcData, count * sizeof(float) * 4);
3223 memset(This->updateStateBlock->changed.vertexShaderConstantsF + start, 1,
3224 sizeof(*This->updateStateBlock->changed.vertexShaderConstantsF) * count);
3456 IWineD3DPixelShader *oldShader = This->updateStateBlock->pixelShader;
3457 This->updateStateBlock->pixelShader = pShader;
3458 This->updateStateBlock->changed.pixelShader = TRUE;
3520 memcpy(&This->updateStateBlock->pixelShaderConstantB[start], srcData, cnt * sizeof(BOOL));
3525 This->updateStateBlock->changed.pixelShaderConstantsB |= (1 << i);
3573 memcpy(&This->updateStateBlock->pixelShaderConstantI[start * 4], srcData, cnt * sizeof(int) * 4);
3579 This->updateStateBlock->changed.pixelShaderConstantsI |= (1 << i);
3628 memcpy(&This->updateStateBlock->pixelShaderConstantF[start * 4], srcData, count * sizeof(float) * 4);
3641 memset(This->updateStateBlock->changed.pixelShaderConstantsF + start, 1,
3642 sizeof(*This->updateStateBlock->changed.pixelShaderConstantsF) * count);
4084 DWORD oldValue = This->updateStateBlock->textureState[Stage][Type];
4096 This->updateStateBlock->changed.textureState[Stage] |= 1 << Type;
4097 This->updateStateBlock->textureState[Stage][Type] = Value;
4143 if(This->updateStateBlock->textureState[i][WINED3DTSS_COLOROP] == WINED3DTOP_DISABLE) {
4161 TRACE("(%p) : requesting Stage %d, Type %d getting %d\n", This, Stage, Type, This->updateStateBlock->textureState[Stage][Type]);
4162 *pValue = This->updateStateBlock->textureState[Stage][Type];
4199 This->updateStateBlock->changed.textures |= 1 << stage;
4201 prev = This->updateStateBlock->textures[stage];
4211 This->updateStateBlock->textures[stage] = texture;
4270 if (This->updateStateBlock->textures[i] == prev)
4391 IWineD3DStateBlock_Release((IWineD3DStateBlock*)This->updateStateBlock);
4392 This->updateStateBlock = (IWineD3DStateBlockImpl *)stateblock;
4402 IWineD3DStateBlockImpl *object = This->updateStateBlock;
4414 This->updateStateBlock = This->stateBlock;
4415 IWineD3DStateBlock_AddRef((IWineD3DStateBlock*)This->updateStateBlock);
4717 This->updateStateBlock->changed.primitive_type = TRUE;
4718 This->updateStateBlock->gl_primitive_type = gl_primitive_type_from_d3d(primitive_type);
6826 IWineD3DStateBlock_Release((IWineD3DStateBlock *)This->updateStateBlock);
6931 This->updateStateBlock = This->stateBlock;
6932 IWineD3DStateBlock_AddRef((IWineD3DStateBlock *)This->updateStateBlock);
7078 if (This->updateStateBlock != This->stateBlock ){
7079 if (This->updateStateBlock->textures[counter] == (IWineD3DBaseTexture *)resource) {
7081 This->updateStateBlock->textures[counter] = NULL;
7095 /* FINDOUT: should a warn be generated if were recording and updateStateBlock->streamSource is lost?
7098 if (This->updateStateBlock != NULL ) { /* ==NULL when device is being destroyed */
7099 if ((IWineD3DResource *)This->updateStateBlock->streamSource[streamNumber] == resource) {
7101 This->updateStateBlock->streamSource[streamNumber] = 0;
7113 if (This->updateStateBlock != NULL ) { /* ==NULL when device is being destroyed */
7114 if (This->updateStateBlock->pIndexData == (IWineD3DBuffer *)resource) {
7115 This->updateStateBlock->pIndexData = NULL;