Home
last modified time | relevance | path

Searched refs:user_assert (Results 1 – 22 of 22) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/nine/
Ddevice9.c656 user_assert(ppD3D9 != NULL, E_POINTER); in NineDevice9_GetDirect3D()
666 user_assert(pCaps != NULL, D3DERR_INVALIDCALL); in NineDevice9_GetDeviceCaps()
678 user_assert(iSwapChain < This->nswapchains, D3DERR_INVALIDCALL); in NineDevice9_GetDisplayMode()
687 user_assert(pParameters != NULL, D3DERR_INVALIDCALL); in NineDevice9_GetCreationParameters()
708 user_assert(pCursorBitmap, D3DERR_INVALIDCALL); in NineDevice9_SetCursorProperties()
709 user_assert(surf->desc.Format == D3DFMT_A8R8G8B8, D3DERR_INVALIDCALL); in NineDevice9_SetCursorProperties()
821 user_assert(pPresentationParameters, D3DERR_INVALIDCALL); in NineDevice9_CreateAdditionalSwapChain()
822 user_assert(tmplt->params.Windowed && pPresentationParameters->Windowed, D3DERR_INVALIDCALL); in NineDevice9_CreateAdditionalSwapChain()
849 user_assert(pSwapChain != NULL, D3DERR_INVALIDCALL); in NineDevice9_GetSwapChain()
852 user_assert(iSwapChain < This->nswapchains, D3DERR_INVALIDCALL); in NineDevice9_GetSwapChain()
[all …]
Dcubetexture9.c56 user_assert(EdgeLength, D3DERR_INVALIDCALL); in NineCubeTexture9_ctor()
59 user_assert(!pSharedHandle, D3DERR_INVALIDCALL); /* TODO */ in NineCubeTexture9_ctor()
61 user_assert(!(Usage & D3DUSAGE_AUTOGENMIPMAP) || in NineCubeTexture9_ctor()
78 user_assert(!(EdgeLength % w) && !(EdgeLength % h), D3DERR_INVALIDCALL); in NineCubeTexture9_ctor()
194 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineCubeTexture9_GetLevelDesc()
195 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP), in NineCubeTexture9_GetLevelDesc()
214 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineCubeTexture9_GetCubeMapSurface()
215 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP), in NineCubeTexture9_GetCubeMapSurface()
217 user_assert(FaceType < 6, D3DERR_INVALIDCALL); in NineCubeTexture9_GetCubeMapSurface()
238 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineCubeTexture9_LockRect()
[all …]
Dtexture9.c63 user_assert(Width && Height, D3DERR_INVALIDCALL); in NineTexture9_ctor()
69 user_assert(!pSharedHandle || pParams->device->ex, D3DERR_INVALIDCALL); in NineTexture9_ctor()
70 user_assert(!pSharedHandle || in NineTexture9_ctor()
74 user_assert(!(Usage & D3DUSAGE_AUTOGENMIPMAP) || in NineTexture9_ctor()
119 user_assert(!(Width % w) && !(Height % h), D3DERR_INVALIDCALL); in NineTexture9_ctor()
249 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineTexture9_GetLevelDesc()
250 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP), in NineTexture9_GetLevelDesc()
265 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineTexture9_GetSurfaceLevel()
266 user_assert(Level == 0 || !(This->base.base.usage & D3DUSAGE_AUTOGENMIPMAP), in NineTexture9_GetSurfaceLevel()
285 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineTexture9_LockRect()
[all …]
Dvolumetexture9.c51 user_assert(Width && Height && Depth, D3DERR_INVALIDCALL); in NineVolumeTexture9_ctor()
54 user_assert(!pSharedHandle, D3DERR_INVALIDCALL); /* TODO */ in NineVolumeTexture9_ctor()
57 user_assert(!(Usage & (D3DUSAGE_RENDERTARGET | D3DUSAGE_DEPTHSTENCIL)), in NineVolumeTexture9_ctor()
59 user_assert(!(Usage & D3DUSAGE_AUTOGENMIPMAP), D3DERR_INVALIDCALL); in NineVolumeTexture9_ctor()
76 user_assert(!(Width % w) && !(Height % h), D3DERR_INVALIDCALL); in NineVolumeTexture9_ctor()
155 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineVolumeTexture9_GetLevelDesc()
167 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineVolumeTexture9_GetVolumeLevel()
185 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineVolumeTexture9_LockBox()
197 user_assert(Level <= This->base.base.info.last_level, D3DERR_INVALIDCALL); in NineVolumeTexture9_UnlockBox()
Dvolume9.c69 user_assert(!(pDesc->Usage & D3DUSAGE_DYNAMIC) || in NineVolume9_ctor()
209 user_assert(pDesc != NULL, E_POINTER); in NineVolume9_GetDesc()
264 user_assert(This->lock_count == 0, D3DERR_INVALIDCALL); in NineVolume9_LockBox()
267 user_assert(pLockedVolume, E_POINTER); in NineVolume9_LockBox()
270 user_assert(This->desc.Pool != D3DPOOL_DEFAULT || in NineVolume9_LockBox()
273 user_assert(!((Flags & D3DLOCK_DISCARD) && (Flags & D3DLOCK_READONLY)), in NineVolume9_LockBox()
279 user_assert((pBox->Left == 0 && pBox->Right == This->desc.Width && in NineVolume9_LockBox()
296 user_assert(pBox->Right > pBox->Left, D3DERR_INVALIDCALL); in NineVolume9_LockBox()
297 user_assert(pBox->Bottom > pBox->Top, D3DERR_INVALIDCALL); in NineVolume9_LockBox()
298 user_assert(pBox->Back > pBox->Front, D3DERR_INVALIDCALL); in NineVolume9_LockBox()
[all …]
Dquery9.c82 user_assert(ptype != ~0, D3DERR_INVALIDCALL); in nine_is_query_supported()
110 user_assert(ptype != ~0, D3DERR_INVALIDCALL); in NineQuery9_ctor()
169 user_assert((dwIssueFlags == D3DISSUE_BEGIN) || in NineQuery9_Issue()
219 user_assert(This->state != NINE_QUERY_STATE_RUNNING, S_FALSE); in NineQuery9_GetData()
220 user_assert(dwSize == 0 || pData, D3DERR_INVALIDCALL); in NineQuery9_GetData()
221 user_assert(dwGetDataFlags == 0 || in NineQuery9_GetData()
Dswapchain9.c146 user_assert(pParams != NULL, E_POINTER); in NineSwapChain9_Resize()
147 user_assert(pParams->SwapEffect, D3DERR_INVALIDCALL); in NineSwapChain9_Resize()
148 user_assert((pParams->SwapEffect != D3DSWAPEFFECT_COPY) || in NineSwapChain9_Resize()
150 user_assert(pDevice->ex || pParams->BackBufferCount <= in NineSwapChain9_Resize()
152 user_assert(!pDevice->ex || pParams->BackBufferCount <= in NineSwapChain9_Resize()
154 user_assert(pDevice->ex || in NineSwapChain9_Resize()
929 user_assert(dest_surface->base.pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL); in NineSwapChain9_GetFrontBufferData()
980 user_assert(ppBackBuffer != NULL, D3DERR_INVALIDCALL); in NineSwapChain9_GetBackBuffer()
981 user_assert(iBackBuffer < This->params.BackBufferCount, D3DERR_INVALIDCALL); in NineSwapChain9_GetBackBuffer()
994 user_assert(pRasterStatus != NULL, E_POINTER); in NineSwapChain9_GetRasterStatus()
[all …]
Dsurface9.c135 user_assert(!(pDesc->Width % w) && !(pDesc->Height % h), D3DERR_INVALIDCALL); in NineSurface9_ctor()
354 user_assert(pDesc != NULL, E_POINTER); in NineSurface9_GetDesc()
424 user_assert(This->lock_count == 0, D3DERR_INVALIDCALL); in NineSurface9_LockRect()
427 user_assert(pLockedRect, E_POINTER); in NineSurface9_LockRect()
431 user_assert(This->base.pool != D3DPOOL_DEFAULT || in NineSurface9_LockRect()
435 user_assert(!(Flags & ~(D3DLOCK_DISCARD | in NineSurface9_LockRect()
441 user_assert(!((Flags & D3DLOCK_DISCARD) && (Flags & D3DLOCK_READONLY)), in NineSurface9_LockRect()
444 user_assert(This->desc.MultiSampleType == D3DMULTISAMPLE_NONE, in NineSurface9_LockRect()
451 user_assert((pRect->left == 0 && pRect->right == This->desc.Width && in NineSurface9_LockRect()
541 user_assert(This->lock_count, D3DERR_INVALIDCALL); in NineSurface9_UnlockRect()
Dindexbuffer9.c56 user_assert(!"Invalid index format.", D3DERR_INVALIDCALL); in NineIndexBuffer9_ctor()
99 user_assert(pDesc, E_POINTER); in NineIndexBuffer9_GetDesc()
Dadapter9.c141 user_assert(!"Invalid device type", D3DERR_INVALIDCALL); in NineAdapter9_GetScreen()
201 user_assert(backbuffer_format(AdapterFormat, BackBufferFormat, bWindowed), in NineAdapter9_CheckDeviceType()
270 user_assert(display_format(AdapterFormat, FALSE), D3DERR_INVALIDCALL); in NineAdapter9_CheckDeviceFormat()
295 user_assert(0, D3DERR_INVALIDCALL); in NineAdapter9_CheckDeviceFormat()
396 user_assert(MultiSampleType <= D3DMULTISAMPLE_16_SAMPLES, D3DERR_INVALIDCALL); in NineAdapter9_CheckDeviceMultiSampleType()
453 user_assert(display_format(AdapterFormat, FALSE), D3DERR_NOTAVAILABLE); in NineAdapter9_CheckDepthStencilMatch()
454 user_assert(depth_stencil_format(DepthStencilFormat), D3DERR_NOTAVAILABLE); in NineAdapter9_CheckDepthStencilMatch()
496 user_assert(backbuffer_format(TargetFormat, SourceFormat, FALSE), in NineAdapter9_CheckDeviceFormatConversion()
528 user_assert(pCaps, D3DERR_INVALIDCALL); in NineAdapter9_GetDeviceCaps()
Diunknown.c168 user_assert(ppDevice, E_POINTER); in NineUnknown_GetDevice()
193 user_assert(SizeOfData == sizeof(IUnknown *), D3DERR_INVALIDCALL); in NineUnknown_SetPrivateData()
246 user_assert(pSizeOfData, E_POINTER); in NineUnknown_GetPrivateData()
Dbuffer9.c53 user_assert(Pool != D3DPOOL_SCRATCH, D3DERR_INVALIDCALL); in NineBuffer9_ctor()
220 user_assert(ppbData, E_POINTER); in NineBuffer9_Lock()
221 user_assert(!(Flags & ~(D3DLOCK_DISCARD | in NineBuffer9_Lock()
403 user_assert(This->nmaps > 0, D3DERR_INVALIDCALL); in NineBuffer9_Unlock()
Dvertexdeclaration9.c184 user_assert(pElements[nelems].Type != D3DDECLTYPE_UNUSED, E_FAIL); in NineVertexDeclaration9_ctor()
185 user_assert(!(pElements[nelems].Offset & 3), E_FAIL); in NineVertexDeclaration9_ctor()
189 user_assert(nelems <= caps->MaxStreams, D3DERR_INVALIDCALL); in NineVertexDeclaration9_ctor()
244 user_assert(pNumElements, D3DERR_INVALIDCALL); in NineVertexDeclaration9_GetDeclaration()
Dpixelshader9.c130 user_assert(pSizeOfData, D3DERR_INVALIDCALL); in NinePixelShader9_GetFunction()
136 user_assert(*pSizeOfData >= This->byte_code.size, D3DERR_INVALIDCALL); in NinePixelShader9_GetFunction()
Dvertexshader9.c158 user_assert(pSizeOfData, D3DERR_INVALIDCALL); in NineVertexShader9_GetFunction()
164 user_assert(*pSizeOfData >= This->byte_code.size, D3DERR_INVALIDCALL); in NineVertexShader9_GetFunction()
Dbasetexture9.c56 user_assert(!(Usage & (D3DUSAGE_RENDERTARGET | D3DUSAGE_DEPTHSTENCIL)) || in NineBaseTexture9_ctor()
58 user_assert(!(Usage & D3DUSAGE_DYNAMIC) || in NineBaseTexture9_ctor()
119 user_assert(This->base.pool == D3DPOOL_MANAGED, 0); in NineBaseTexture9_SetLOD()
157 user_assert(FilterType != D3DTEXF_NONE, D3DERR_INVALIDCALL); in NineBaseTexture9_SetAutoGenFilterType()
Dnine_debug.h123 #define user_assert(x, r) \ macro
Dswapchain9ex.c75 user_assert(pMode != NULL, E_POINTER); in NineSwapChain9Ex_GetDisplayModeEx()
Dvertexbuffer9.c91 user_assert(pDesc, E_POINTER); in NineVertexBuffer9_GetDesc()
Ddevice9ex.c164 user_assert(!This->base.swapchains[0]->params.Windowed, D3D_OK); in NineDevice9Ex_CheckDeviceState()
282 user_assert(iSwapChain < This->base.nswapchains, D3DERR_INVALIDCALL); in NineDevice9Ex_GetDisplayModeEx()
Dnine_state.c3705 user_assert(Index < ff_state->num_lights, D3DERR_INVALIDCALL); in nine_state_light_enable()
3717 user_assert(i < NINE_MAX_LIGHTS_ACTIVE, D3DERR_INVALIDCALL); in nine_state_light_enable()
Dnine_shader.c3507 user_assert(processor != ~0, D3DERR_INVALIDCALL); in nine_translate_shader()