Lines Matching refs:pCaps
464 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps);
735 D3DCAPS9 *pCaps = &pState->caps;
747 *pu32Val = pCaps->MaxActiveLights;
751 *pu32Val = pCaps->MaxSimultaneousTextures;
755 *pu32Val = pCaps->MaxUserClipPlanes;
759 switch (pCaps->VertexShaderVersion)
774 LogRel(("VMSVGA: Unsupported vertex shader version %x\n", pCaps->VertexShaderVersion));
785 switch (pCaps->PixelShaderVersion)
809 LogRel(("VMSVGA: Unsupported pixel shader version %x\n", pCaps->PixelShaderVersion));
848 *(float *)pu32Val = pCaps->MaxPointSize;
857 *pu32Val = pCaps->MaxTextureWidth;
861 *pu32Val = pCaps->MaxTextureHeight;
865 *pu32Val = pCaps->MaxVolumeExtent;
869 *pu32Val = pCaps->MaxTextureRepeat;
873 *pu32Val = pCaps->MaxTextureAspectRatio;
877 *pu32Val = pCaps->MaxAnisotropy;
881 *pu32Val = pCaps->MaxPrimitiveCount;
885 *pu32Val = pCaps->MaxVertexIndex;
889 *pu32Val = pCaps->MaxVertexShader30InstructionSlots;
893 *pu32Val = pCaps->MaxPixelShader30InstructionSlots;
897 *pu32Val = pCaps->VS20Caps.NumTemps;
901 *pu32Val = pCaps->PS20Caps.NumTemps;
920 *pu32Val = !!(pCaps->Caps2 & D3DCAPS2_CANAUTOGENMIPMAP);
928 *pu32Val = pCaps->NumSimultaneousRTs;
6040 static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps)
6045 if (pCaps->DevCaps2 & D3DDEVCAPS2_ADAPTIVETESSRTPATCH)
6047 if (pCaps->DevCaps2 & D3DDEVCAPS2_ADAPTIVETESSNPATCH)
6049 if (pCaps->DevCaps2 & D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES)
6051 if (pCaps->DevCaps2 & D3DDEVCAPS2_DMAPNPATCH)
6053 if (pCaps->DevCaps2 & D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH)
6055 if (pCaps->DevCaps2 & D3DDEVCAPS2_STREAMOFFSET)
6057 if (pCaps->DevCaps2 & D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET)
6061 if (pCaps->Caps2 & D3DCAPS2_CANAUTOGENMIPMAP)
6063 if (pCaps->Caps2 & D3DCAPS2_CANCALIBRATEGAMMA)
6065 if (pCaps->Caps2 & D3DCAPS2_CANSHARERESOURCE)
6067 if (pCaps->Caps2 & D3DCAPS2_CANMANAGERESOURCE)
6069 if (pCaps->Caps2 & D3DCAPS2_DYNAMICTEXTURES)
6071 if (pCaps->Caps2 & D3DCAPS2_FULLSCREENGAMMA)
6075 if (pCaps->Caps3 & D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD)
6077 if (pCaps->Caps3 & D3DCAPS3_COPY_TO_VIDMEM)
6079 if (pCaps->Caps3 & D3DCAPS3_COPY_TO_SYSTEMMEM)
6081 if (pCaps->Caps3 & D3DCAPS3_DXVAHD)
6083 if (pCaps->Caps3 & D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION)
6087 if (pCaps->PresentationIntervals & D3DPRESENT_INTERVAL_IMMEDIATE)
6089 if (pCaps->PresentationIntervals & D3DPRESENT_INTERVAL_ONE)
6091 if (pCaps->PresentationIntervals & D3DPRESENT_INTERVAL_TWO)
6093 if (pCaps->PresentationIntervals & D3DPRESENT_INTERVAL_THREE)
6095 if (pCaps->PresentationIntervals & D3DPRESENT_INTERVAL_FOUR)
6099 if (pCaps->DevCaps & D3DDEVCAPS_CANBLTSYSTONONLOCAL)
6101 if (pCaps->DevCaps & D3DDEVCAPS_CANRENDERAFTERFLIP)
6103 if (pCaps->DevCaps & D3DDEVCAPS_DRAWPRIMITIVES2)
6105 if (pCaps->DevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX)
6107 if (pCaps->DevCaps & D3DDEVCAPS_DRAWPRIMTLVERTEX)
6109 if (pCaps->DevCaps & D3DDEVCAPS_EXECUTESYSTEMMEMORY)
6111 if (pCaps->DevCaps & D3DDEVCAPS_EXECUTEVIDEOMEMORY)
6113 if (pCaps->DevCaps & D3DDEVCAPS_HWRASTERIZATION)
6115 if (pCaps->DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT)
6117 if (pCaps->DevCaps & D3DDEVCAPS_NPATCHES)
6119 if (pCaps->DevCaps & D3DDEVCAPS_PUREDEVICE)
6121 if (pCaps->DevCaps & D3DDEVCAPS_QUINTICRTPATCHES)
6123 if (pCaps->DevCaps & D3DDEVCAPS_RTPATCHES)
6125 if (pCaps->DevCaps & D3DDEVCAPS_RTPATCHHANDLEZERO)
6127 if (pCaps->DevCaps & D3DDEVCAPS_SEPARATETEXTUREMEMORIES)
6129 if (pCaps->DevCaps & D3DDEVCAPS_TEXTURENONLOCALVIDMEM)
6131 if (pCaps->DevCaps & D3DDEVCAPS_TEXTURESYSTEMMEMORY)
6133 if (pCaps->DevCaps & D3DDEVCAPS_TEXTUREVIDEOMEMORY)
6135 if (pCaps->DevCaps & D3DDEVCAPS_TLVERTEXSYSTEMMEMORY)
6137 if (pCaps->DevCaps & D3DDEVCAPS_TLVERTEXVIDEOMEMORY)
6141 if (pCaps->TextureCaps & D3DPTEXTURECAPS_ALPHA)
6143 if (pCaps->TextureCaps & D3DPTEXTURECAPS_ALPHAPALETTE)
6145 if (pCaps->TextureCaps & D3DPTEXTURECAPS_CUBEMAP)
6147 if (pCaps->TextureCaps & D3DPTEXTURECAPS_CUBEMAP_POW2)
6149 if (pCaps->TextureCaps & D3DPTEXTURECAPS_MIPCUBEMAP)
6151 if (pCaps->TextureCaps & D3DPTEXTURECAPS_MIPMAP)
6153 if (pCaps->TextureCaps & D3DPTEXTURECAPS_MIPVOLUMEMAP)
6155 if (pCaps->TextureCaps & D3DPTEXTURECAPS_NONPOW2CONDITIONAL)
6157 if (pCaps->TextureCaps & D3DPTEXTURECAPS_POW2)
6159 if (pCaps->TextureCaps & D3DPTEXTURECAPS_NOPROJECTEDBUMPENV)
6161 if (pCaps->TextureCaps & D3DPTEXTURECAPS_PERSPECTIVE)
6163 if (pCaps->TextureCaps & D3DPTEXTURECAPS_POW2)
6165 if (pCaps->TextureCaps & D3DPTEXTURECAPS_PROJECTED)
6167 if (pCaps->TextureCaps & D3DPTEXTURECAPS_SQUAREONLY)
6169 if (pCaps->TextureCaps & D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE)
6171 if (pCaps->TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP)
6173 if (pCaps->TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP_POW2)
6177 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_CONVOLUTIONMONO)
6179 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MAGFPOINT)
6181 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MAGFLINEAR)
6183 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MAGFANISOTROPIC)
6185 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD)
6187 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MAGFGAUSSIANQUAD)
6189 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MINFPOINT)
6191 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MINFLINEAR)
6193 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MINFANISOTROPIC)
6195 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MINFPYRAMIDALQUAD)
6197 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MINFGAUSSIANQUAD)
6199 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MIPFPOINT)
6201 if (pCaps->TextureFilterCaps & D3DPTFILTERCAPS_MIPFLINEAR)
6205 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_CONVOLUTIONMONO)
6207 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MAGFPOINT)
6209 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MAGFLINEAR)
6211 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MAGFANISOTROPIC)
6213 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD)
6215 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MAGFGAUSSIANQUAD)
6217 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MINFPOINT)
6219 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MINFLINEAR)
6221 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MINFANISOTROPIC)
6223 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MINFPYRAMIDALQUAD)
6225 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MINFGAUSSIANQUAD)
6227 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MIPFPOINT)
6229 if (pCaps->CubeTextureFilterCaps & D3DPTFILTERCAPS_MIPFLINEAR)
6233 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_CONVOLUTIONMONO)
6235 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MAGFPOINT)
6237 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MAGFLINEAR)
6239 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MAGFANISOTROPIC)
6241 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD)
6243 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MAGFGAUSSIANQUAD)
6245 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MINFPOINT)
6247 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MINFLINEAR)
6249 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MINFANISOTROPIC)
6251 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MINFPYRAMIDALQUAD)
6253 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MINFGAUSSIANQUAD)
6255 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MIPFPOINT)
6257 if (pCaps->VolumeTextureFilterCaps & D3DPTFILTERCAPS_MIPFLINEAR)
6261 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_BORDER)
6263 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_CLAMP)
6265 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_INDEPENDENTUV)
6267 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_MIRROR)
6269 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_MIRRORONCE)
6271 if (pCaps->TextureAddressCaps & D3DPTADDRESSCAPS_WRAP)
6275 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_DISABLE)
6277 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_SELECTARG1)
6279 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_SELECTARG2)
6281 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATE)
6283 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATE2X)
6285 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATE4X)
6287 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_ADD)
6289 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_ADDSIGNED)
6291 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_ADDSIGNED2X)
6293 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_SUBTRACT)
6295 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_ADDSMOOTH)
6297 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BLENDDIFFUSEALPHA)
6299 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BLENDTEXTUREALPHA)
6301 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BLENDFACTORALPHA)
6303 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BLENDTEXTUREALPHAPM)
6305 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BLENDCURRENTALPHA)
6307 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_PREMODULATE)
6309 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR)
6311 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA)
6313 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR)
6315 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA)
6317 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BUMPENVMAP)
6319 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_BUMPENVMAPLUMINANCE)
6321 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_DOTPRODUCT3)
6323 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_MULTIPLYADD)
6325 if (pCaps->TextureOpCaps & D3DTEXOPCAPS_LERP)
6330 LogRel(("PixelShaderVersion: %#x (%u.%u)\n", pCaps->PixelShaderVersion,
6331 D3DSHADER_VERSION_MAJOR(pCaps->PixelShaderVersion), D3DSHADER_VERSION_MINOR(pCaps->PixelShaderVersion)));
6332 LogRel(("VertexShaderVersion: %#x (%u.%u)\n", pCaps->VertexShaderVersion,
6333 D3DSHADER_VERSION_MAJOR(pCaps->VertexShaderVersion), D3DSHADER_VERSION_MINOR(pCaps->VertexShaderVersion)));