Lines Matching defs:Flags

107     if (This->Flags & SFLAG_PBO)
121 if (This->Flags & SFLAG_DIBSECTION)
132 if (This->Flags & SFLAG_USERPTR) IWineD3DSurface_SetMem((IWineD3DSurface *)This, NULL);
150 else if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED)
460 /* Flags */
461 surface->Flags = SFLAG_NORMCOORD; /* Default to normalized coords. */
463 if (pool == WINED3DPOOL_SYSTEMMEM && pvClientMem) surface->Flags |= SFLAG_CLIENTMEM;
465 if (discard) surface->Flags |= SFLAG_DISCARD;
466 if (lockable || format == WINED3DFMT_D16_LOCKABLE) surface->Flags |= SFLAG_LOCKABLE;
576 This->Flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED);
603 if (This->Flags & flag)
637 This->Flags &= ~SFLAG_NORMCOORD;
641 This->Flags |= SFLAG_NORMCOORD;
697 if (This->Flags & SFLAG_CONVERTED && format_desc->format != WINED3DFMT_P8_UINT)
705 if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED)
711 if (This->Flags & SFLAG_PBO)
742 if (This->Flags & SFLAG_NONPOW2) {
755 if(This->Flags & SFLAG_PBO) {
770 if (This->Flags & SFLAG_NONPOW2) {
839 This->Flags |= SFLAG_INSYSMEM;
875 if (This->Flags & SFLAG_PBO)
884 if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED)
901 if (This->Flags & SFLAG_PBO)
952 if (Src->Flags & SFLAG_PBO)
961 if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED)
978 if (Src->Flags & SFLAG_PBO)
1043 if(This->Flags & (SFLAG_NONPOW2 | SFLAG_DIBSECTION | SFLAG_CONVERTED) || This->resource.allocatedMemory == NULL) {
1052 This->Flags &= ~SFLAG_CLIENT;
1055 This->Flags |= SFLAG_CLIENT;
1064 if (format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED && mem)
1142 if (!(This->Flags & SFLAG_SWAPCHAIN))
1178 if (!(This->Flags & SFLAG_INSYSMEM) && (This->Flags & SFLAG_INTEXTURE))
1377 This->Flags &= ~SFLAG_PBO;
1433 This->Flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED);
1439 if (This->Flags & SFLAG_PBO)
1590 if(This->Flags & SFLAG_PBO) {
1629 if(This->Flags & SFLAG_PBO) {
1674 if(This->Flags & SFLAG_PBO) {
1772 if (!(This->Flags & alloc_flag))
1775 This->Flags |= alloc_flag;
1806 if (surface->Flags & alloc_flag) return;
1809 if(convert != NO_CONVERSION) surface->Flags |= SFLAG_CONVERTED;
1810 else surface->Flags &= ~SFLAG_CONVERTED;
1814 surface->Flags |= alloc_flag;
1829 if(convert != NO_CONVERSION) This->Flags |= SFLAG_CONVERTED;
1830 else This->Flags &= ~SFLAG_CONVERTED;
1855 This->Flags |= alloc_flag;
1871 if(!(This->Flags & SFLAG_DYNLOCK)) {
1876 This->Flags |= SFLAG_DYNLOCK;
1883 if (gl_info->supported[ARB_PIXEL_BUFFER_OBJECT] && (This->Flags & SFLAG_DYNLOCK)
1884 && !(This->Flags & (SFLAG_PBO | SFLAG_CONVERTED | SFLAG_NONPOW2))
1918 if(!(This->Flags & SFLAG_CLIENT)) {
1923 This->Flags |= SFLAG_PBO;
1927 else if (!(This->resource.allocatedMemory || This->Flags & SFLAG_PBO))
1937 if(This->Flags & SFLAG_INSYSMEM) {
1943 static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) {
1949 TRACE("(%p) : rect@%p flags(%08x), output lockedRect@%p, memory@%p\n", This, pRect, Flags, pLockedRect, This->resource.allocatedMemory);
1955 if (This->Flags & SFLAG_LOCKED) {
1964 This->Flags |= SFLAG_LOCKED;
1966 if (!(This->Flags & SFLAG_LOCKABLE))
1971 if (Flags & WINED3DLOCK_DISCARD) {
1975 This->Flags |= SFLAG_INSYSMEM;
1979 if (This->Flags & SFLAG_INSYSMEM) {
1995 && ((This->Flags & SFLAG_SWAPCHAIN) || iface == myDevice->render_targets[0])))
2001 if (This->Flags & SFLAG_PBO)
2029 if (Flags & (WINED3DLOCK_NO_DIRTY_UPDATE | WINED3DLOCK_READONLY)) {
2049 hr = IWineD3DBaseSurfaceImpl_LockRect(iface, pLockedRect, pRect, Flags);
2114 if((This->Flags & SFLAG_DIBSECTION) && !(This->Flags & SFLAG_PBO)) {
2119 if(This->Flags & SFLAG_PBO) {
2125 if(This->Flags & SFLAG_LOCKED) {
2138 if(This->Flags & SFLAG_PBO) {
2162 if (!(This->Flags & SFLAG_LOCKED)) {
2167 if (This->Flags & SFLAG_PBO)
2188 TRACE("(%p) : dirtyfied(%d)\n", This, This->Flags & (SFLAG_INDRAWABLE | SFLAG_INTEXTURE) ? 0 : 1);
2190 if (This->Flags & (SFLAG_INDRAWABLE | SFLAG_INTEXTURE)) {
2195 if ((This->Flags & SFLAG_SWAPCHAIN) || (myDevice->render_targets && iface == myDevice->render_targets[0]))
2214 This->Flags |= SFLAG_INSYSMEM;
2234 This->Flags &= ~SFLAG_INSYSMEM;
2235 This->Flags |= SFLAG_INDRAWABLE;
2260 This->Flags &= ~SFLAG_LOCKED;
2323 if(This->Flags & SFLAG_USERPTR) {
2329 if (This->Flags & SFLAG_DCINUSE)
2333 if (This->Flags & SFLAG_LOCKED)
2340 if(This->Flags & SFLAG_CLIENT) {
2348 if(!(This->Flags & SFLAG_PBO))
2358 if(This->Flags & SFLAG_PBO) {
2406 This->Flags |= SFLAG_DCINUSE;
2417 if (!(This->Flags & SFLAG_DCINUSE))
2425 if((This->Flags & SFLAG_PBO) && This->resource.allocatedMemory) {
2433 This->Flags &= ~SFLAG_DCINUSE;
2614 else if(pal->Flags & WINEDDPCAPS_ALPHA)
2810 if (!(This->Flags & flag)) {
2813 ((This->Flags & SFLAG_GLCKEY) && (!(This->CKeyFlags & WINEDDSD_CKSRCBLT))) ||
2815 ((!(This->Flags & SFLAG_GLCKEY)) && (This->CKeyFlags & WINEDDSD_CKSRCBLT)) ||
2867 if (!(This->Flags & SFLAG_DONOTFREE) && !This->resource.format_desc->convert) {
2980 if (This->Flags & SFLAG_INDRAWABLE && !(This->Flags & SFLAG_INTEXTURE)) {
3098 This->Flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED);
3108 if(This->Flags & (SFLAG_LOCKED | SFLAG_DCINUSE)) {
3117 if(This->Flags & SFLAG_DIBSECTION) {
3129 This->Flags &= ~SFLAG_DIBSECTION;
3130 } else if(!(This->Flags & SFLAG_USERPTR)) {
3135 This->Flags |= SFLAG_USERPTR | SFLAG_INSYSMEM;
3141 if(This->Flags & SFLAG_CLIENT) {
3147 } else if(This->Flags & SFLAG_USERPTR) {
3152 This->Flags &= ~SFLAG_USERPTR;
3154 if(This->Flags & SFLAG_CLIENT) {
3175 BOOL hasDib = front->Flags & SFLAG_DIBSECTION;
3180 if(back->Flags & SFLAG_DIBSECTION) front->Flags |= SFLAG_DIBSECTION;
3181 else front->Flags &= ~SFLAG_DIBSECTION;
3182 if(hasDib) back->Flags |= SFLAG_DIBSECTION;
3183 else back->Flags &= ~SFLAG_DIBSECTION;
3232 DWORD tmp_flags = back->Flags;
3233 back->Flags = front->Flags;
3234 front->Flags = tmp_flags;
3238 static HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DSurface *override, DWORD Flags) {
3242 TRACE("(%p)->(%p,%x)\n", This, override, Flags);
3278 if((Flags & (WINEDDFLIP_NOVSYNC | WINEDDFLIP_INTERVAL2 | WINEDDFLIP_INTERVAL3 | WINEDDFLIP_INTERVAL4)) == 0) {
3281 } else if(Flags & WINEDDFLIP_NOVSYNC) {
3283 } else if(Flags & WINEDDFLIP_INTERVAL2) {
3285 } else if(Flags & WINEDDFLIP_INTERVAL3) {
3504 Src->Flags &= ~SFLAG_INTEXTURE;
3597 if(Src->Flags & SFLAG_NORMCOORD) {
3721 IWineD3DSurface *SrcSurface, const RECT *SrcRect, DWORD Flags, const WINEDDBLTFX *DDBltFx,
3732 TRACE("(%p)->(%p,%p,%p,%08x,%p)\n", This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx);
3762 if(Flags & (WINEDDBLT_KEYDEST | WINEDDBLT_KEYDESTOVERRIDE)) {
3835 if((Flags & ~(WINEDDBLT_DONOTWAIT | WINEDDBLT_WAIT)) == 0) {
3901 if(Flags & (WINEDDBLT_KEYSRC | WINEDDBLT_KEYSRCOVERRIDE)) {
3956 if(!(This->Flags & SFLAG_DONOTFREE)) {
3961 This->Flags &= ~SFLAG_INSYSMEM;
3973 if (!(Flags & (WINEDDBLT_KEYSRC | WINEDDBLT_KEYSRCOVERRIDE))
3992 if (!(Flags & (WINEDDBLT_KEYSRC | WINEDDBLT_KEYSRCOVERRIDE))
4007 if(Flags & WINEDDBLT_KEYSRC) {
4009 } else if(Flags & WINEDDBLT_KEYSRCOVERRIDE) {
4068 if(Flags & (WINEDDBLT_KEYSRC | WINEDDBLT_KEYSRCOVERRIDE)) {
4089 if(Flags & (WINEDDBLT_KEYSRC | WINEDDBLT_KEYSRCOVERRIDE)) {
4124 if (Flags & WINEDDBLT_COLORFILL) {
4160 IWineD3DSurface *SrcSurface, const RECT *SrcRect, DWORD Flags, const WINEDDBLTFX *DDBltFx)
4165 if (Flags & WINEDDBLT_DEPTHFILL) {
4202 IWineD3DSurface *SrcSurface, const RECT *SrcRect, DWORD Flags, const WINEDDBLTFX *DDBltFx,
4217 TRACE("(%p)->(%p,%p,%p,%08x,%p)\n", This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx);
4219 if(This->Flags & SFLAG_INSYSMEM) {
4224 if(!(This->Flags & SFLAG_INTEXTURE)
4225 && !(This->Flags & SFLAG_INSRGBTEX)) {
4230 srgb = !(This->Flags & SFLAG_INTEXTURE);
4232 if(!(Src->Flags & SFLAG_INSYSMEM)) {
4243 if(Flags & (WINEDDBLT_KEYDEST | WINEDDBLT_KEYDESTOVERRIDE)) {
4259 if ((Src->Flags & SFLAG_PBO) && src_rect.right - src_rect.left != Src->currentDesc.Width)
4274 if((convert != NO_CONVERSION) && (Src->Flags & SFLAG_PBO)) {
4284 This->Flags |= SFLAG_GLCKEY;
4287 else This->Flags &= ~SFLAG_GLCKEY;
4340 Assert(!!mem == !(Src->Flags & SFLAG_PBO));
4352 if((mem != Src->resource.allocatedMemory) && !(Src->Flags & SFLAG_PBO))
4363 const RECT *SrcRect, DWORD Flags, const WINEDDBLTFX *DDBltFx, WINED3DTEXTUREFILTERTYPE Filter) {
4369 TRACE("(%p)->(%p,%p,%p,%x,%p)\n", This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx);
4372 if ( (This->Flags & SFLAG_LOCKED) || ((Src != NULL) && (Src->Flags & SFLAG_LOCKED)))
4387 if(myDevice->inScene && !(Flags & WINEDDBLT_DEPTHFILL)) {
4391 } else if(IWineD3DSurfaceImpl_BltZ(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx) == WINED3D_OK) {
4404 if(IWineD3DSurfaceImpl_BltOverride(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter) == WINED3D_OK)
4412 if (SrcSurface && IWineD3DSurfaceImpl_BltSys2Vram(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter) == WINED3D_OK)
4423 hr = IWineD3DBaseSurfaceImpl_Blt(iface, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter);
4442 if ( (This->Flags & SFLAG_LOCKED) || (srcImpl->Flags & SFLAG_LOCKED))
4465 DWORD Flags=0;
4476 Flags |= WINEDDBLT_KEYSRC;
4478 Flags |= WINEDDBLT_KEYDEST;
4480 Flags |= WINEDDBLT_WAIT;
4482 Flags |= WINEDDBLT_DONOTWAIT;
4484 if(IWineD3DSurfaceImpl_BltOverride(This, &DstRect, Source, &SrcRect, Flags, NULL, WINED3DTEXF_POINT) == WINED3D_OK)
4492 if (IWineD3DSurfaceImpl_BltSys2Vram(This, &DstRect, Source, &SrcRect, Flags, NULL, WINED3DTEXF_POINT) == WINED3D_OK)
4529 if(!(This->Flags & SFLAG_INSYSMEM)) {
4538 if(This->Flags & SFLAG_DIBSECTION) {
4587 if (This->resource.format_desc->Flags & WINED3DFMT_FLAG_COMPRESSED)
4597 This->Flags |= SFLAG_NONPOW2;
4625 if (This->Flags & SFLAG_NONPOW2 && gl_info->supported[ARB_TEXTURE_RECTANGLE]
4633 This->Flags &= ~(SFLAG_NONPOW2 | SFLAG_NORMCOORD);
4644 This->Flags |= SFLAG_INSYSMEM;
4704 This->Flags &= ~SFLAG_DS_LOCATIONS;
4705 This->Flags |= location;
4720 if (This->Flags & location) {
4731 if (This->Flags & SFLAG_DS_ONSCREEN) {
4804 if (This->Flags & SFLAG_DS_OFFSCREEN) {
4828 This->Flags |= location;
4852 if(((This->Flags & SFLAG_INTEXTURE) && !(flag & SFLAG_INTEXTURE)) ||
4853 ((This->Flags & SFLAG_INSRGBTEX) && !(flag & SFLAG_INSRGBTEX))) {
4869 Assert(!(This->Flags & SFLAG_INTEXTURE));
4887 Assert(!(This->Flags & SFLAG_INSRGBTEX));
4905 This->Flags &= ~SFLAG_LOCATIONS;
4906 This->Flags |= flag;
4915 if((This->Flags & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX)) && (flag & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX))) {
4923 This->Flags &= ~flag;
4932 if(!(This->Flags & SFLAG_INTEXTURE)) {
4935 This->Flags &= ~SFLAG_LOCATIONS;
4936 This->Flags |= SFLAG_INTEXTURE;
4939 else if (This->Flags & SFLAG_CLIENTMEM)
4941 if(!(This->Flags & SFLAG_INSYSMEM)) {
4944 This->Flags &= ~SFLAG_LOCATIONS;
4945 This->Flags |= SFLAG_INSYSMEM;
4951 if(!(This->Flags & SFLAG_LOCATIONS)) {
4986 swapchain = (This->Flags & SFLAG_SWAPCHAIN) ? (IWineD3DSwapChainImpl *)This->container : NULL;
5052 if(This->Flags & flag) {
5061 if(!(This->Flags & SFLAG_LOCATIONS)) {
5063 This->Flags |= SFLAG_LOST;
5071 if (This->Flags & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX))
5077 surface_bind_and_dirtify(This, !(This->Flags & SFLAG_INTEXTURE));
5090 if(This->Flags & SFLAG_INTEXTURE) {
5094 if((This->Flags & SFLAG_LOCATIONS) == SFLAG_INSRGBTEX) {
5110 if ((convert != NO_CONVERSION) && (This->Flags & SFLAG_PBO))
5136 This->Flags |= SFLAG_CONVERTED;
5138 This->Flags &= ~SFLAG_CONVERTED;
5146 if((mem != This->resource.allocatedMemory) && !(This->Flags & SFLAG_PBO))
5150 if (drawable_read_ok && (This->Flags & SFLAG_INDRAWABLE)) {
5163 if((This->Flags & (SFLAG_INTEXTURE | SFLAG_INSYSMEM)) == SFLAG_INTEXTURE) {
5169 if((This->Flags & (SFLAG_INSRGBTEX | SFLAG_INSYSMEM)) == SFLAG_INSRGBTEX) {
5175 if(!(This->Flags & SFLAG_INSYSMEM)) {
5188 This->Flags |= SFLAG_GLCKEY;
5191 else This->Flags &= ~SFLAG_GLCKEY;
5199 if((convert != NO_CONVERSION) && (This->Flags & SFLAG_PBO)) {
5243 if (mem || (This->Flags & SFLAG_PBO))
5254 if((mem != This->resource.allocatedMemory) && !(This->Flags & SFLAG_PBO))
5269 Assert(!!(This->Flags & SFLAG_INTEXTURE) || !!(flag & SFLAG_INTEXTURE));
5270 This->Flags &= ~SFLAG_LOCATIONS;
5271 This->Flags |= SFLAG_INTEXTURE;
5275 // This->Flags |= SFLAG_INDRAWABLE;
5278 else if (This->Flags & SFLAG_CLIENTMEM)
5280 Assert(!!(This->Flags & SFLAG_INSYSMEM));
5281 This->Flags &= ~SFLAG_LOCATIONS;
5282 This->Flags |= SFLAG_INSYSMEM;
5288 This->Flags |= flag;
5291 if (in_fbo && (This->Flags & (SFLAG_INTEXTURE | SFLAG_INDRAWABLE))) {
5293 This->Flags |= (SFLAG_INTEXTURE | SFLAG_INDRAWABLE);
5336 if(This->overlay_dest->Flags & SFLAG_INOVERLAYDRAW) {
5339 This->overlay_dest->Flags |= SFLAG_INOVERLAYDRAW;
5343 This->overlay_dest->Flags &= ~SFLAG_INOVERLAYDRAW;
5354 if (!(This->Flags & SFLAG_SWAPCHAIN)) return TRUE;
5641 if(!((src_format_desc->Flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (src_usage & WINED3DUSAGE_RENDERTARGET))
5642 && ((dst_format_desc->Flags & WINED3DFMT_FLAG_FBO_ATTACHABLE) || (dst_usage & WINED3DUSAGE_RENDERTARGET)))