1*c2c66affSColin Finck /* All testcase are base how windows 2000 sp4 acting */
2*c2c66affSColin Finck
3*c2c66affSColin Finck
4*c2c66affSColin Finck #include <stdio.h>
5*c2c66affSColin Finck #include <windows.h>
6*c2c66affSColin Finck #include <wingdi.h>
7*c2c66affSColin Finck #include <winddi.h>
8*c2c66affSColin Finck #include <d3dnthal.h>
9*c2c66affSColin Finck
10*c2c66affSColin Finck #include "test.h"
11*c2c66affSColin Finck
12*c2c66affSColin Finck /* this flag are only set for dx5 and lower but we need check see if we getting it back from win32k or not */
13*c2c66affSColin Finck #define D3DLIGHTCAPS_GLSPOT 0x00000010
14*c2c66affSColin Finck
15*c2c66affSColin Finck /* this flag are only set for dx6 and lower but we need check see if we getting it back from win32k or not */
16*c2c66affSColin Finck #define D3DLIGHTCAPS_PARALLELPOINT 0x00000008
17*c2c66affSColin Finck
18*c2c66affSColin Finck #define checkflag(dwflag,dwvalue,text) \
19*c2c66affSColin Finck if (dwflag & dwvalue) \
20*c2c66affSColin Finck { \
21*c2c66affSColin Finck if (count!=0) \
22*c2c66affSColin Finck { \
23*c2c66affSColin Finck printf("| "); \
24*c2c66affSColin Finck } \
25*c2c66affSColin Finck dwflag = (ULONG)dwflag - (ULONG)dwvalue; \
26*c2c66affSColin Finck printf("%s ",text); \
27*c2c66affSColin Finck count++; \
28*c2c66affSColin Finck }
29*c2c66affSColin Finck
30*c2c66affSColin Finck #define endcheckflag(dwflag,text) \
31*c2c66affSColin Finck if (count==0) \
32*c2c66affSColin Finck printf("0x%08lx\n", (ULONG) dwflag);\
33*c2c66affSColin Finck else \
34*c2c66affSColin Finck printf("\n");\
35*c2c66affSColin Finck if (flag != 0) \
36*c2c66affSColin Finck printf("undoc value in %s flags value %08lx\n",text, (ULONG) dwflag);
37*c2c66affSColin Finck
38*c2c66affSColin Finck
39*c2c66affSColin Finck
40*c2c66affSColin Finck void
dump_CallBackFlags(DWORD * pCallBackFlags,char * text)41*c2c66affSColin Finck dump_CallBackFlags(DWORD *pCallBackFlags, char *text)
42*c2c66affSColin Finck {
43*c2c66affSColin Finck UINT flag;
44*c2c66affSColin Finck INT count;
45*c2c66affSColin Finck
46*c2c66affSColin Finck printf("dumping the CallBackFlags from %s\n",text);
47*c2c66affSColin Finck printf("pCallBackFlags[0] : ");
48*c2c66affSColin Finck
49*c2c66affSColin Finck flag=pCallBackFlags[0];
50*c2c66affSColin Finck count=0;
51*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_CANCREATESURFACE,"DDHAL_CB32_CANCREATESURFACE");
52*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_CREATEPALETTE,"DDHAL_CB32_CREATEPALETTE");
53*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_CREATESURFACE,"DDHAL_CB32_CREATESURFACE");
54*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_GETSCANLINE,"DDHAL_CB32_GETSCANLINE");
55*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_MAPMEMORY,"DDHAL_CB32_MAPMEMORY");
56*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_SETCOLORKEY,"DDHAL_CB32_SETCOLORKEY");
57*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_SETMODE,"DDHAL_CB32_SETMODE");
58*c2c66affSColin Finck checkflag(flag,DDHAL_CB32_WAITFORVERTICALBLANK,"DDHAL_CB32_WAITFORVERTICALBLANK");
59*c2c66affSColin Finck endcheckflag(flag,"pCallBackFlags[0]");
60*c2c66affSColin Finck
61*c2c66affSColin Finck /* SURFACE callback */
62*c2c66affSColin Finck printf("pCallBackFlags[1] : ");
63*c2c66affSColin Finck flag = pCallBackFlags[1];
64*c2c66affSColin Finck count = 0;
65*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_ADDATTACHEDSURFACE,"DDHAL_SURFCB32_ADDATTACHEDSURFACE");
66*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_BLT,"DDHAL_SURFCB32_BLT");
67*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_DESTROYSURFACE,"DDHAL_SURFCB32_DESTROYSURFACE");
68*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_FLIP,"DDHAL_SURFCB32_FLIP");
69*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_GETBLTSTATUS,"DDHAL_SURFCB32_GETBLTSTATUS");
70*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_GETFLIPSTATUS,"DDHAL_SURFCB32_GETFLIPSTATUS");
71*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_LOCK,"DDHAL_SURFCB32_LOCK");
72*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_RESERVED4,"DDHAL_SURFCB32_RESERVED4");
73*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_SETCLIPLIST,"DDHAL_SURFCB32_SETCLIPLIST");
74*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_SETCOLORKEY,"DDHAL_SURFCB32_SETCOLORKEY");
75*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_SETOVERLAYPOSITION,"DDHAL_SURFCB32_SETOVERLAYPOSITION");
76*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_SETPALETTE,"DDHAL_SURFCB32_SETPALETTE");
77*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_UNLOCK,"DDHAL_SURFCB32_UNLOCK");
78*c2c66affSColin Finck checkflag(flag,DDHAL_SURFCB32_UPDATEOVERLAY,"DDHAL_SURFCB32_UPDATEOVERLAY");
79*c2c66affSColin Finck endcheckflag(flag,"pCallBackFlags[1]");
80*c2c66affSColin Finck
81*c2c66affSColin Finck
82*c2c66affSColin Finck /* palleted */
83*c2c66affSColin Finck printf("pCallBackFlags[2] : ");
84*c2c66affSColin Finck flag = pCallBackFlags[2];
85*c2c66affSColin Finck count = 0;
86*c2c66affSColin Finck checkflag(flag,DDHAL_PALCB32_DESTROYPALETTE,"DDHAL_PALCB32_DESTROYPALETTE");
87*c2c66affSColin Finck checkflag(flag,DDHAL_PALCB32_SETENTRIES,"DDHAL_PALCB32_SETENTRIES");
88*c2c66affSColin Finck endcheckflag(flag,"pCallBackFlags[2]");
89*c2c66affSColin Finck }
90*c2c66affSColin Finck
91*c2c66affSColin Finck void
dump_halinfo(DD_HALINFO * pHalInfo,char * text)92*c2c66affSColin Finck dump_halinfo(DD_HALINFO *pHalInfo, char *text)
93*c2c66affSColin Finck {
94*c2c66affSColin Finck printf("dumping the DD_HALINFO from %s\n",text);
95*c2c66affSColin Finck
96*c2c66affSColin Finck if (pHalInfo->dwSize == sizeof(DD_HALINFO_V4))
97*c2c66affSColin Finck {
98*c2c66affSColin Finck DD_HALINFO_V4 *pHalInfo4 = (DD_HALINFO_V4 *) pHalInfo;
99*c2c66affSColin Finck int t;
100*c2c66affSColin Finck
101*c2c66affSColin Finck printf("DD_HALINFO Version NT4 found \n");
102*c2c66affSColin Finck printf(" pHalInfo4->dwSize : 0x%08lx\n",(long)pHalInfo4->dwSize);
103*c2c66affSColin Finck printf(" pHalInfo4->vmiData->fpPrimary : 0x%08lx\n",(long)pHalInfo4->vmiData.fpPrimary);
104*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwFlags : 0x%08lx\n",(long)pHalInfo4->vmiData.dwFlags);
105*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwDisplayWidth : 0x%08lx\n",(long)pHalInfo4->vmiData.dwDisplayWidth);
106*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwDisplayHeight : 0x%08lx\n",(long)pHalInfo4->vmiData.dwDisplayHeight);
107*c2c66affSColin Finck printf(" pHalInfo4->vmiData->lDisplayPitch : 0x%08lx\n",(long)pHalInfo4->vmiData.lDisplayPitch);
108*c2c66affSColin Finck
109*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwSize : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwSize);
110*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwFlags : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwFlags);
111*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwFourCC : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwFourCC);
112*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwRGBBitCount : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRGBBitCount);
113*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwRBitMask : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRBitMask);
114*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwGBitMask : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwGBitMask);
115*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwBBitMask : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwBBitMask);
116*c2c66affSColin Finck printf(" pHalInfo4->vmiData->ddpfDisplay.dwRGBAlphaBitMask : 0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRGBAlphaBitMask);
117*c2c66affSColin Finck
118*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwOffscreenAlign : 0x%08lx\n",(long)pHalInfo4->vmiData.dwOffscreenAlign);
119*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwOverlayAlign : 0x%08lx\n",(long)pHalInfo4->vmiData.dwOverlayAlign);
120*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwTextureAlign : 0x%08lx\n",(long)pHalInfo4->vmiData.dwTextureAlign);
121*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwZBufferAlign : 0x%08lx\n",(long)pHalInfo4->vmiData.dwZBufferAlign);
122*c2c66affSColin Finck printf(" pHalInfo4->vmiData->dwAlphaAlign : 0x%08lx\n",(long)pHalInfo4->vmiData.dwAlphaAlign);
123*c2c66affSColin Finck printf(" pHalInfo4->vmiData->pvPrimary : 0x%08lx\n",(long)pHalInfo4->vmiData.pvPrimary);
124*c2c66affSColin Finck
125*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSize : 0x%08lx\n",pHalInfo4->ddCaps.dwSize);
126*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwCaps);
127*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwCaps2 : 0x%08lx\n",pHalInfo4->ddCaps.dwCaps2);
128*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwCKeyCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwCKeyCaps);
129*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwFXCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwFXCaps);
130*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwFXAlphaCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwFXAlphaCaps);
131*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwPalCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwPalCaps);
132*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSVCaps);
133*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaBltConstBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltConstBitDepths);
134*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaBltPixelBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltPixelBitDepths);
135*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaBltSurfaceBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltSurfaceBitDepths);
136*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaOverlayConstBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlayConstBitDepths);
137*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaOverlayPixelBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlayPixelBitDepths);
138*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlphaOverlaySurfaceBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlaySurfaceBitDepths);
139*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwZBufferBitDepths : 0x%08lx\n",pHalInfo4->ddCaps.dwZBufferBitDepths);
140*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVidMemTotal : 0x%08lx\n",pHalInfo4->ddCaps.dwVidMemTotal);
141*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVidMemFree : 0x%08lx\n",pHalInfo4->ddCaps.dwVidMemFree);
142*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMaxVisibleOverlays : 0x%08lx\n",pHalInfo4->ddCaps.dwMaxVisibleOverlays);
143*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwCurrVisibleOverlays : 0x%08lx\n",pHalInfo4->ddCaps.dwCurrVisibleOverlays);
144*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwNumFourCCCodes : 0x%08lx\n",pHalInfo4->ddCaps.dwNumFourCCCodes);
145*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlignBoundarySrc : 0x%08lx\n",pHalInfo4->ddCaps.dwAlignBoundarySrc);
146*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlignSizeSrc : 0x%08lx\n",pHalInfo4->ddCaps.dwAlignSizeSrc);
147*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlignBoundaryDes : 0x%08lx\n",pHalInfo4->ddCaps.dwAlignBoundaryDest);
148*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlignSizeDest : 0x%08lx\n",pHalInfo4->ddCaps.dwAlignSizeDest);
149*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwAlignStrideAlign : 0x%08lx\n",pHalInfo4->ddCaps.dwAlignStrideAlign);
150*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
151*c2c66affSColin Finck {
152*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwRops[0x%04x] : 0x%08lx\n",t,pHalInfo4->ddCaps.dwRops[t]);
153*c2c66affSColin Finck }
154*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.ddsCaps.dwCaps : 0x%08lx\n",pHalInfo4->ddCaps.ddsCaps.dwCaps);
155*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMinOverlayStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMinOverlayStretch);
156*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMaxOverlayStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMaxOverlayStretch);
157*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMinLiveVideoStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMinLiveVideoStretch);
158*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMaxLiveVideoStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMaxLiveVideoStretch);
159*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMinHwCodecStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMinHwCodecStretch);
160*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMaxHwCodecStretch : 0x%08lx\n",pHalInfo4->ddCaps.dwMaxHwCodecStretch);
161*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwReserved1 : 0x%08lx\n",pHalInfo4->ddCaps.dwReserved1);
162*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwReserved2 : 0x%08lx\n",pHalInfo4->ddCaps.dwReserved2);
163*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwReserved3 : 0x%08lx\n",pHalInfo4->ddCaps.dwReserved3);
164*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVBCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSVBCaps);
165*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVBCKeyCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSVBCKeyCaps);
166*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVBFXCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSVBFXCaps);
167*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
168*c2c66affSColin Finck {
169*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVBRops[0x%04x] : 0x%08lx\n",t,pHalInfo4->ddCaps.dwSVBRops[t]);
170*c2c66affSColin Finck }
171*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVSBCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwVSBCaps);
172*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVSBCKeyCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwVSBCKeyCaps);
173*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVSBFXCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwVSBFXCaps);
174*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
175*c2c66affSColin Finck {
176*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwVSBRops[0x%04x] : 0x%08lx\n",t,pHalInfo4->ddCaps.dwVSBRops[t]);
177*c2c66affSColin Finck }
178*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSSBCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSSBCaps);
179*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSSBCKeyCa : 0x%08lx\n",pHalInfo4->ddCaps.dwSSBCKeyCaps);
180*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSSBFXCaps : 0x%08lx\n",pHalInfo4->ddCaps.dwSSBFXCaps);
181*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
182*c2c66affSColin Finck {
183*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSSBRops[0x%04x] : 0x%08lx\n",t,pHalInfo4->ddCaps.dwSSBRops[t]);
184*c2c66affSColin Finck }
185*c2c66affSColin Finck
186*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwMaxVideoPorts : 0x%08lx\n",pHalInfo4->ddCaps.dwMaxVideoPorts);
187*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwCurrVideoPorts : 0x%08lx\n",pHalInfo4->ddCaps.dwCurrVideoPorts);
188*c2c66affSColin Finck printf(" pHalInfo4->ddCaps.dwSVBCaps2 : 0x%08lx\n",pHalInfo4->ddCaps.dwSVBCaps2);
189*c2c66affSColin Finck
190*c2c66affSColin Finck
191*c2c66affSColin Finck printf(" pHalInfo4->GetDriverInfo : 0x%08lx\n",(long)pHalInfo4->GetDriverInfo);
192*c2c66affSColin Finck printf(" pHalInfo4->dwFlags : 0x%08lx\n",(long)pHalInfo4->dwFlags);
193*c2c66affSColin Finck
194*c2c66affSColin Finck }
195*c2c66affSColin Finck else if (pHalInfo->dwSize == sizeof(DD_HALINFO))
196*c2c66affSColin Finck {
197*c2c66affSColin Finck int t;
198*c2c66affSColin Finck UINT flag;
199*c2c66affSColin Finck INT count=0;
200*c2c66affSColin Finck
201*c2c66affSColin Finck printf("DD_HALINFO Version NT 2000/XP/2003 found \n");
202*c2c66affSColin Finck printf(" pHalInfo->dwSize : 0x%08lx\n",(long)pHalInfo->dwSize);
203*c2c66affSColin Finck
204*c2c66affSColin Finck printf(" pHalInfo->vmiData->fpPrimary : 0x%08lx\n",(long)pHalInfo->vmiData.fpPrimary);
205*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwFlags : 0x%08lx\n",(long)pHalInfo->vmiData.dwFlags);
206*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwDisplayWidth : 0x%08lx\n",(long)pHalInfo->vmiData.dwDisplayWidth);
207*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwDisplayHeight : 0x%08lx\n",(long)pHalInfo->vmiData.dwDisplayHeight);
208*c2c66affSColin Finck printf(" pHalInfo->vmiData->lDisplayPitch : 0x%08lx\n",(long)pHalInfo->vmiData.lDisplayPitch);
209*c2c66affSColin Finck
210*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwSize : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwSize);
211*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwFlags : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwFlags);
212*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwFourCC : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwFourCC);
213*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwRGBBitCount : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRGBBitCount);
214*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwRBitMask : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRBitMask);
215*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwGBitMask : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwGBitMask);
216*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwBBitMask : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwBBitMask);
217*c2c66affSColin Finck printf(" pHalInfo->vmiData->ddpfDisplay.dwRGBAlphaBitMask : 0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRGBAlphaBitMask);
218*c2c66affSColin Finck
219*c2c66affSColin Finck
220*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwOffscreenAlign : 0x%08lx\n",(long)pHalInfo->vmiData.dwOffscreenAlign);
221*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwOverlayAlign : 0x%08lx\n",(long)pHalInfo->vmiData.dwOverlayAlign);
222*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwTextureAlign : 0x%08lx\n",(long)pHalInfo->vmiData.dwTextureAlign);
223*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwZBufferAlign : 0x%08lx\n",(long)pHalInfo->vmiData.dwZBufferAlign);
224*c2c66affSColin Finck printf(" pHalInfo->vmiData->dwAlphaAlign : 0x%08lx\n",(long)pHalInfo->vmiData.dwAlphaAlign);
225*c2c66affSColin Finck printf(" pHalInfo->vmiData->pvPrimary : 0x%08lx\n",(long)pHalInfo->vmiData.pvPrimary);
226*c2c66affSColin Finck
227*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSize : 0x%08lx\n",pHalInfo->ddCaps.dwSize);
228*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwCaps : ");
229*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwCaps;
230*c2c66affSColin Finck count = 0;
231*c2c66affSColin Finck checkflag(flag,DDCAPS_3D,"DDCAPS_3D");
232*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYDEST,"DDCAPS_ALIGNBOUNDARYDEST");
233*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYSRC,"DDCAPS_ALIGNBOUNDARYSRC");
234*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZEDEST,"DDCAPS_ALIGNSIZEDEST");
235*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZESRC,"DDCAPS_ALIGNSIZESRC");
236*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSTRIDE,"DDCAPS_ALIGNSTRIDE");
237*c2c66affSColin Finck checkflag(flag,DDCAPS_ALPHA,"DDCAPS_ALPHA");
238*c2c66affSColin Finck checkflag(flag,DDCAPS_BANKSWITCHED,"DDCAPS_BANKSWITCHED");
239*c2c66affSColin Finck checkflag(flag,DDCAPS_BLT,"DDCAPS_BLT");
240*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTCOLORFILL,"DDCAPS_BLTCOLORFILL");
241*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTDEPTHFILL,"DDCAPS_BLTDEPTHFILL");
242*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTFOURCC,"DDCAPS_BLTFOURCC");
243*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTQUEUE,"DDCAPS_BLTQUEUE");
244*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTSTRETCH,"DDCAPS_BLTSTRETCH");
245*c2c66affSColin Finck checkflag(flag,DDCAPS_CANBLTSYSMEM,"DDCAPS_CANBLTSYSMEM");
246*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIP,"DDCAPS_CANCLIP");
247*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIPSTRETCHED,"DDCAPS_CANCLIPSTRETCHED");
248*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEY,"DDCAPS_COLORKEY");
249*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEYHWASSIST,"DDCAPS_COLORKEYHWASSIST");
250*c2c66affSColin Finck checkflag(flag,DDCAPS_GDI,"DDCAPS_GDI");
251*c2c66affSColin Finck checkflag(flag,DDCAPS_NOHARDWARE,"DDCAPS_NOHARDWARE");
252*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAY,"DDCAPS_OVERLAY");
253*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYCANTCLIP,"DDCAPS_OVERLAYCANTCLIP");
254*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYFOURCC,"DDCAPS_OVERLAYFOURCC");
255*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYSTRETCH,"DDCAPS_OVERLAYSTRETCH");
256*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTE,"DDCAPS_PALETTE");
257*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTEVSYNC,"DDCAPS_PALETTEVSYNC");
258*c2c66affSColin Finck checkflag(flag,DDCAPS_READSCANLINE,"DDCAPS_READSCANLINE");
259*c2c66affSColin Finck checkflag(flag,DDCAPS_STEREOVIEW,"DDCAPS_STEREOVIEW");
260*c2c66affSColin Finck checkflag(flag,DDCAPS_VBI,"DDCAPS_VBI");
261*c2c66affSColin Finck checkflag(flag,DDCAPS_ZBLTS,"DDCAPS_ZBLTS");
262*c2c66affSColin Finck checkflag(flag,DDCAPS_ZOVERLAYS,"DDCAPS_ZOVERLAYS");
263*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwCaps");
264*c2c66affSColin Finck
265*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwCaps2 : ");
266*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwCaps2;
267*c2c66affSColin Finck count = 0;
268*c2c66affSColin Finck checkflag(flag,DDCAPS2_AUTOFLIPOVERLAY,"DDCAPS2_AUTOFLIPOVERLAY");
269*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANAUTOGENMIPMAP,"DDCAPS2_CANAUTOGENMIPMAP");
270*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANBOBHARDWARE,"DDCAPS2_CANBOBHARDWARE");
271*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANBOBINTERLEAVED,"DDCAPS2_CANBOBINTERLEAVED");
272*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANBOBNONINTERLEAVED,"DDCAPS2_CANBOBNONINTERLEAVED");
273*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANCALIBRATEGAMMA,"DDCAPS2_CANCALIBRATEGAMMA");
274*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANDROPZ16BIT,"DDCAPS2_CANDROPZ16BIT");
275*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANFLIPODDEVEN,"DDCAPS2_CANFLIPODDEVEN");
276*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANMANAGERESOURCE,"DDCAPS2_CANMANAGERESOURCE");
277*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANMANAGETEXTURE,"DDCAPS2_CANMANAGETEXTURE");
278*c2c66affSColin Finck
279*c2c66affSColin Finck checkflag(flag,DDCAPS2_CANRENDERWINDOWED,"DDCAPS2_CANRENDERWINDOWED");
280*c2c66affSColin Finck checkflag(flag,DDCAPS2_CERTIFIED,"DDCAPS2_CERTIFIED");
281*c2c66affSColin Finck checkflag(flag,DDCAPS2_COLORCONTROLOVERLAY,"DDCAPS2_COLORCONTROLOVERLAY");
282*c2c66affSColin Finck checkflag(flag,DDCAPS2_COLORCONTROLPRIMARY,"DDCAPS2_COLORCONTROLPRIMARY");
283*c2c66affSColin Finck checkflag(flag,DDCAPS2_COPYFOURCC,"DDCAPS2_COPYFOURCC");
284*c2c66affSColin Finck checkflag(flag,DDCAPS2_FLIPINTERVAL,"DDCAPS2_FLIPINTERVAL");
285*c2c66affSColin Finck checkflag(flag,DDCAPS2_FLIPNOVSYNC,"DDCAPS2_FLIPNOVSYNC");
286*c2c66affSColin Finck checkflag(flag,DDCAPS2_NO2DDURING3DSCENE,"DDCAPS2_NO2DDURING3DSCENE");
287*c2c66affSColin Finck checkflag(flag,DDCAPS2_NONLOCALVIDMEM,"DDCAPS2_NONLOCALVIDMEM");
288*c2c66affSColin Finck checkflag(flag,DDCAPS2_NONLOCALVIDMEMCAPS,"DDCAPS2_NONLOCALVIDMEMCAPS");
289*c2c66affSColin Finck checkflag(flag,DDCAPS2_NOPAGELOCKREQUIRED,"DDCAPS2_NOPAGELOCKREQUIRED");
290*c2c66affSColin Finck checkflag(flag,DDCAPS2_PRIMARYGAMMA,"DDCAPS2_PRIMARYGAMMA");
291*c2c66affSColin Finck checkflag(flag,DDCAPS2_VIDEOPORT,"DDCAPS2_VIDEOPORT");
292*c2c66affSColin Finck checkflag(flag,DDCAPS2_WIDESURFACES,"DDCAPS2_WIDESURFACES");
293*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwCaps2");
294*c2c66affSColin Finck
295*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwCKeyCaps : ");
296*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwCKeyCaps;
297*c2c66affSColin Finck count = 0;
298*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTBLT,"DDCKEYCAPS_DESTBLT");
299*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTBLTCLRSPACE,"DDCKEYCAPS_DESTBLTCLRSPACE");
300*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTBLTCLRSPACEYUV,"DDCKEYCAPS_DESTBLTCLRSPACEYUV");
301*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTBLTYUV,"DDCKEYCAPS_DESTBLTYUV");
302*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTOVERLAY,"DDCKEYCAPS_DESTOVERLAY");
303*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTOVERLAYCLRSPACE,"DDCKEYCAPS_DESTOVERLAYCLRSPACE");
304*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV,"DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV");
305*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTOVERLAYONEACTIVE,"DDCKEYCAPS_DESTOVERLAYONEACTIVE");
306*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_DESTOVERLAYYUV,"DDCKEYCAPS_DESTOVERLAYYUV");
307*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_NOCOSTOVERLAY,"DDCKEYCAPS_NOCOSTOVERLAY");
308*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCBLT,"DDCKEYCAPS_SRCBLT");
309*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCBLTCLRSPACE,"DDCKEYCAPS_SRCBLTCLRSPACE");
310*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCBLTCLRSPACEYUV,"DDCKEYCAPS_SRCBLTCLRSPACEYUV");
311*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCBLTYUV,"DDCKEYCAPS_SRCBLTYUV");
312*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCOVERLAY,"DDCKEYCAPS_SRCOVERLAY");
313*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCOVERLAYCLRSPACE,"DDCKEYCAPS_SRCOVERLAYCLRSPACE");
314*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV,"DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV");
315*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCOVERLAYONEACTIVE,"DDCKEYCAPS_SRCOVERLAYONEACTIVE");
316*c2c66affSColin Finck checkflag(flag,DDCKEYCAPS_SRCOVERLAYYUV,"DDCKEYCAPS_SRCOVERLAYYUV");
317*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwCKeyCaps");
318*c2c66affSColin Finck
319*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwFXCaps : ");
320*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwFXCaps;
321*c2c66affSColin Finck count = 0;
322*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTARITHSTRETCHY,"DDFXCAPS_BLTARITHSTRETCHY");
323*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTARITHSTRETCHYN,"DDFXCAPS_BLTARITHSTRETCHYN");
324*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTMIRRORLEFTRIGHT,"DDFXCAPS_BLTMIRRORLEFTRIGHT");
325*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTMIRRORUPDOWN,"DDFXCAPS_BLTMIRRORUPDOWN");
326*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTROTATION,"DDFXCAPS_BLTROTATION");
327*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTROTATION90,"DDFXCAPS_BLTROTATION90");
328*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSHRINKX,"DDFXCAPS_BLTSHRINKX");
329*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSHRINKXN,"DDFXCAPS_BLTSHRINKXN");
330*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSHRINKY,"DDFXCAPS_BLTSHRINKY");
331*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSHRINKYN,"DDFXCAPS_BLTSHRINKYN");
332*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSTRETCHX,"DDFXCAPS_BLTSTRETCHX");
333*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSTRETCHXN,"DDFXCAPS_BLTSTRETCHXN");
334*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSTRETCHY,"DDFXCAPS_BLTSTRETCHY");
335*c2c66affSColin Finck checkflag(flag,DDFXCAPS_BLTSTRETCHYN,"DDFXCAPS_BLTSTRETCHYN");
336*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYARITHSTRETCHY,"DDFXCAPS_OVERLAYARITHSTRETCHY");
337*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYARITHSTRETCHYN,"DDFXCAPS_OVERLAYARITHSTRETCHYN");
338*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYMIRRORLEFTRIGHT,"DDFXCAPS_OVERLAYMIRRORLEFTRIGHT");
339*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYMIRRORUPDOWN,"DDFXCAPS_OVERLAYMIRRORUPDOWN");
340*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSHRINKX,"DDFXCAPS_OVERLAYSHRINKX");
341*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSHRINKXN,"DDFXCAPS_OVERLAYSHRINKXN");
342*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSHRINKY,"DDFXCAPS_OVERLAYSHRINKY");
343*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSHRINKYN,"DDFXCAPS_OVERLAYSHRINKYN");
344*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSTRETCHX,"DDFXCAPS_OVERLAYSTRETCHX");
345*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSTRETCHX,"DDFXCAPS_OVERLAYSTRETCHX");
346*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSTRETCHY,"DDFXCAPS_OVERLAYSTRETCHY");
347*c2c66affSColin Finck checkflag(flag,DDFXCAPS_OVERLAYSTRETCHYN,"DDFXCAPS_OVERLAYSTRETCHYN");
348*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwFXCaps");
349*c2c66affSColin Finck
350*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwFXAlphaCaps : 0x%08lx\n",pHalInfo->ddCaps.dwFXAlphaCaps);
351*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwPalCaps : 0x%08lx\n",pHalInfo->ddCaps.dwPalCaps);
352*c2c66affSColin Finck
353*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSVCaps : ");
354*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwSVCaps;
355*c2c66affSColin Finck count = 0;
356*c2c66affSColin Finck checkflag(flag,DDSVCAPS_ENIGMA,"DDSVCAPS_ENIGMA");
357*c2c66affSColin Finck checkflag(flag,DDSVCAPS_FLICKER,"DDSVCAPS_FLICKER");
358*c2c66affSColin Finck checkflag(flag,DDSVCAPS_REDBLUE,"DDSVCAPS_REDBLUE");
359*c2c66affSColin Finck checkflag(flag,DDSVCAPS_SPLIT,"DDSVCAPS_SPLIT");
360*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwSVCaps");
361*c2c66affSColin Finck
362*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaBltConstBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltConstBitDepths);
363*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaBltPixelBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltPixelBitDepths);
364*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaBltSurfaceBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltSurfaceBitDepths);
365*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaOverlayConstBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlayConstBitDepths);
366*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaOverlayPixelBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlayPixelBitDepths);
367*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlphaOverlaySurfaceBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlaySurfaceBitDepths);
368*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwZBufferBitDepths : 0x%08lx\n",pHalInfo->ddCaps.dwZBufferBitDepths);
369*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVidMemTotal : 0x%08lx\n",pHalInfo->ddCaps.dwVidMemTotal);
370*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVidMemFree : 0x%08lx\n",pHalInfo->ddCaps.dwVidMemFree);
371*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMaxVisibleOverlays : 0x%08lx\n",pHalInfo->ddCaps.dwMaxVisibleOverlays);
372*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwCurrVisibleOverlays : 0x%08lx\n",pHalInfo->ddCaps.dwCurrVisibleOverlays);
373*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwNumFourCCCodes : 0x%08lx\n",pHalInfo->ddCaps.dwNumFourCCCodes);
374*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlignBoundarySrc : 0x%08lx\n",pHalInfo->ddCaps.dwAlignBoundarySrc);
375*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlignSizeSrc : 0x%08lx\n",pHalInfo->ddCaps.dwAlignSizeSrc);
376*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlignBoundaryDes : 0x%08lx\n",pHalInfo->ddCaps.dwAlignBoundaryDest);
377*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlignSizeDest : 0x%08lx\n",pHalInfo->ddCaps.dwAlignSizeDest);
378*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwAlignStrideAlign : 0x%08lx\n",pHalInfo->ddCaps.dwAlignStrideAlign);
379*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
380*c2c66affSColin Finck {
381*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwRops[0x%04x] : 0x%08lx\n",t,pHalInfo->ddCaps.dwRops[t]);
382*c2c66affSColin Finck }
383*c2c66affSColin Finck printf(" pHalInfo->ddCaps.ddsCaps.dwCaps : ");
384*c2c66affSColin Finck flag = pHalInfo->ddCaps.ddsCaps.dwCaps;
385*c2c66affSColin Finck count = 0;
386*c2c66affSColin Finck checkflag(flag,DDSCAPS_3DDEVICE,"DDSCAPS_3DDEVICE");
387*c2c66affSColin Finck checkflag(flag,DDSCAPS_ALLOCONLOAD,"DDSCAPS_ALLOCONLOAD");
388*c2c66affSColin Finck checkflag(flag,DDSCAPS_ALPHA,"DDSCAPS_ALPHA");
389*c2c66affSColin Finck checkflag(flag,DDSCAPS_BACKBUFFER,"DDSCAPS_BACKBUFFER");
390*c2c66affSColin Finck checkflag(flag,DDSCAPS_COMPLEX,"DDSCAPS_COMPLEX");
391*c2c66affSColin Finck checkflag(flag,DDSCAPS_EXECUTEBUFFER,"DDSCAPS_EXECUTEBUFFER");
392*c2c66affSColin Finck checkflag(flag,DDSCAPS_FLIP,"DDSCAPS_FLIP");
393*c2c66affSColin Finck checkflag(flag,DDSCAPS_FRONTBUFFER,"DDSCAPS_FRONTBUFFER");
394*c2c66affSColin Finck checkflag(flag,DDSCAPS_HWCODEC,"DDSCAPS_HWCODEC");
395*c2c66affSColin Finck checkflag(flag,DDSCAPS_LIVEVIDEO,"DDSCAPS_LIVEVIDEO");
396*c2c66affSColin Finck checkflag(flag,DDSCAPS_LOCALVIDMEM,"DDSCAPS_LOCALVIDMEM");
397*c2c66affSColin Finck checkflag(flag,DDSCAPS_MIPMAP,"DDSCAPS_MIPMAP");
398*c2c66affSColin Finck checkflag(flag,DDSCAPS_MODEX,"DDSCAPS_MODEX");
399*c2c66affSColin Finck checkflag(flag,DDSCAPS_NONLOCALVIDMEM,"DDSCAPS_NONLOCALVIDMEM");
400*c2c66affSColin Finck checkflag(flag,DDSCAPS_OFFSCREENPLAIN,"DDSCAPS_OFFSCREENPLAIN");
401*c2c66affSColin Finck checkflag(flag,DDSCAPS_OVERLAY,"DDSCAPS_OVERLAY");
402*c2c66affSColin Finck checkflag(flag,DDSCAPS_OPTIMIZED,"DDSCAPS_OPTIMIZED");
403*c2c66affSColin Finck checkflag(flag,DDSCAPS_OWNDC,"DDSCAPS_OWNDC");
404*c2c66affSColin Finck checkflag(flag,DDSCAPS_PALETTE,"DDSCAPS_PALETTE");
405*c2c66affSColin Finck checkflag(flag,DDSCAPS_PRIMARYSURFACE,"DDSCAPS_PRIMARYSURFACE");
406*c2c66affSColin Finck checkflag(flag,DDSCAPS_PRIMARYSURFACELEFT,"DDSCAPS_PRIMARYSURFACELEFT");
407*c2c66affSColin Finck checkflag(flag,DDSCAPS_STANDARDVGAMODE,"DDSCAPS_STANDARDVGAMODE");
408*c2c66affSColin Finck checkflag(flag,DDSCAPS_SYSTEMMEMORY,"DDSCAPS_SYSTEMMEMORY");
409*c2c66affSColin Finck checkflag(flag,DDSCAPS_TEXTURE,"DDSCAPS_TEXTURE");
410*c2c66affSColin Finck checkflag(flag,DDSCAPS_VIDEOMEMORY,"DDSCAPS_VIDEOMEMORY");
411*c2c66affSColin Finck checkflag(flag,DDSCAPS_VIDEOPORT,"DDSCAPS_VIDEOPORT");
412*c2c66affSColin Finck checkflag(flag,DDSCAPS_VISIBLE,"DDSCAPS_VISIBLE");
413*c2c66affSColin Finck checkflag(flag,DDSCAPS_WRITEONLY,"DDSCAPS_WRITEONLY");
414*c2c66affSColin Finck checkflag(flag,DDSCAPS_ZBUFFER,"DDSCAPS_ZBUFFER");
415*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.ddsCaps.dwCaps");
416*c2c66affSColin Finck
417*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMinOverlayStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMinOverlayStretch);
418*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMaxOverlayStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMaxOverlayStretch);
419*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMinLiveVideoStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMinLiveVideoStretch);
420*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMaxLiveVideoStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMaxLiveVideoStretch);
421*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMinHwCodecStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMinHwCodecStretch);
422*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwMaxHwCodecStretch : 0x%08lx\n",pHalInfo->ddCaps.dwMaxHwCodecStretch);
423*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwReserved1 : 0x%08lx\n",pHalInfo->ddCaps.dwReserved1);
424*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwReserved2 : 0x%08lx\n",pHalInfo->ddCaps.dwReserved2);
425*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwReserved3 : 0x%08lx\n",pHalInfo->ddCaps.dwReserved3);
426*c2c66affSColin Finck
427*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSVBCaps : ");
428*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwSVBCaps;
429*c2c66affSColin Finck count = 0;
430*c2c66affSColin Finck checkflag(flag,DDCAPS_3D,"DDCAPS_3D");
431*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYDEST,"DDCAPS_ALIGNBOUNDARYDEST");
432*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYSRC,"DDCAPS_ALIGNBOUNDARYSRC");
433*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZEDEST,"DDCAPS_ALIGNSIZEDEST");
434*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZESRC,"DDCAPS_ALIGNSIZESRC");
435*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSTRIDE,"DDCAPS_ALIGNSTRIDE");
436*c2c66affSColin Finck checkflag(flag,DDCAPS_ALPHA,"DDCAPS_ALPHA");
437*c2c66affSColin Finck checkflag(flag,DDCAPS_BANKSWITCHED,"DDCAPS_BANKSWITCHED");
438*c2c66affSColin Finck checkflag(flag,DDCAPS_BLT,"DDCAPS_BLT");
439*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTCOLORFILL,"DDCAPS_BLTCOLORFILL");
440*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTDEPTHFILL,"DDCAPS_BLTDEPTHFILL");
441*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTFOURCC,"DDCAPS_BLTFOURCC");
442*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTQUEUE,"DDCAPS_BLTQUEUE");
443*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTSTRETCH,"DDCAPS_BLTSTRETCH");
444*c2c66affSColin Finck checkflag(flag,DDCAPS_CANBLTSYSMEM,"DDCAPS_CANBLTSYSMEM");
445*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIP,"DDCAPS_CANCLIP");
446*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIPSTRETCHED,"DDCAPS_CANCLIPSTRETCHED");
447*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEY,"DDCAPS_COLORKEY");
448*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEYHWASSIST,"DDCAPS_COLORKEYHWASSIST");
449*c2c66affSColin Finck checkflag(flag,DDCAPS_GDI,"DDCAPS_GDI");
450*c2c66affSColin Finck checkflag(flag,DDCAPS_NOHARDWARE,"DDCAPS_NOHARDWARE");
451*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAY,"DDCAPS_OVERLAY");
452*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYCANTCLIP,"DDCAPS_OVERLAYCANTCLIP");
453*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYFOURCC,"DDCAPS_OVERLAYFOURCC");
454*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYSTRETCH,"DDCAPS_OVERLAYSTRETCH");
455*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTE,"DDCAPS_PALETTE");
456*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTEVSYNC,"DDCAPS_PALETTEVSYNC");
457*c2c66affSColin Finck checkflag(flag,DDCAPS_READSCANLINE,"DDCAPS_READSCANLINE");
458*c2c66affSColin Finck checkflag(flag,DDCAPS_STEREOVIEW,"DDCAPS_STEREOVIEW");
459*c2c66affSColin Finck checkflag(flag,DDCAPS_VBI,"DDCAPS_VBI");
460*c2c66affSColin Finck checkflag(flag,DDCAPS_ZBLTS,"DDCAPS_ZBLTS");
461*c2c66affSColin Finck checkflag(flag,DDCAPS_ZOVERLAYS,"DDCAPS_ZOVERLAYS");
462*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwSVBCaps");
463*c2c66affSColin Finck
464*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSVBCKeyCaps : 0x%08lx\n",pHalInfo->ddCaps.dwSVBCKeyCaps);
465*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSVBFXCaps : 0x%08lx\n",pHalInfo->ddCaps.dwSVBFXCaps);
466*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
467*c2c66affSColin Finck {
468*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSVBRops[0x%04x] : 0x%08lx\n",t,pHalInfo->ddCaps.dwSVBRops[t]);
469*c2c66affSColin Finck }
470*c2c66affSColin Finck
471*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVSBCaps : ");
472*c2c66affSColin Finck flag = pHalInfo->ddCaps.dwVSBCaps;
473*c2c66affSColin Finck count = 0;
474*c2c66affSColin Finck checkflag(flag,DDCAPS_3D,"DDCAPS_3D");
475*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYDEST,"DDCAPS_ALIGNBOUNDARYDEST");
476*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNBOUNDARYSRC,"DDCAPS_ALIGNBOUNDARYSRC");
477*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZEDEST,"DDCAPS_ALIGNSIZEDEST");
478*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSIZESRC,"DDCAPS_ALIGNSIZESRC");
479*c2c66affSColin Finck checkflag(flag,DDCAPS_ALIGNSTRIDE,"DDCAPS_ALIGNSTRIDE");
480*c2c66affSColin Finck checkflag(flag,DDCAPS_ALPHA,"DDCAPS_ALPHA");
481*c2c66affSColin Finck checkflag(flag,DDCAPS_BANKSWITCHED,"DDCAPS_BANKSWITCHED");
482*c2c66affSColin Finck checkflag(flag,DDCAPS_BLT,"DDCAPS_BLT");
483*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTCOLORFILL,"DDCAPS_BLTCOLORFILL");
484*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTDEPTHFILL,"DDCAPS_BLTDEPTHFILL");
485*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTFOURCC,"DDCAPS_BLTFOURCC");
486*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTQUEUE,"DDCAPS_BLTQUEUE");
487*c2c66affSColin Finck checkflag(flag,DDCAPS_BLTSTRETCH,"DDCAPS_BLTSTRETCH");
488*c2c66affSColin Finck checkflag(flag,DDCAPS_CANBLTSYSMEM,"DDCAPS_CANBLTSYSMEM");
489*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIP,"DDCAPS_CANCLIP");
490*c2c66affSColin Finck checkflag(flag,DDCAPS_CANCLIPSTRETCHED,"DDCAPS_CANCLIPSTRETCHED");
491*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEY,"DDCAPS_COLORKEY");
492*c2c66affSColin Finck checkflag(flag,DDCAPS_COLORKEYHWASSIST,"DDCAPS_COLORKEYHWASSIST");
493*c2c66affSColin Finck checkflag(flag,DDCAPS_GDI,"DDCAPS_GDI");
494*c2c66affSColin Finck checkflag(flag,DDCAPS_NOHARDWARE,"DDCAPS_NOHARDWARE");
495*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAY,"DDCAPS_OVERLAY");
496*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYCANTCLIP,"DDCAPS_OVERLAYCANTCLIP");
497*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYFOURCC,"DDCAPS_OVERLAYFOURCC");
498*c2c66affSColin Finck checkflag(flag,DDCAPS_OVERLAYSTRETCH,"DDCAPS_OVERLAYSTRETCH");
499*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTE,"DDCAPS_PALETTE");
500*c2c66affSColin Finck checkflag(flag,DDCAPS_PALETTEVSYNC,"DDCAPS_PALETTEVSYNC");
501*c2c66affSColin Finck checkflag(flag,DDCAPS_READSCANLINE,"DDCAPS_READSCANLINE");
502*c2c66affSColin Finck checkflag(flag,DDCAPS_STEREOVIEW,"DDCAPS_STEREOVIEW");
503*c2c66affSColin Finck checkflag(flag,DDCAPS_VBI,"DDCAPS_VBI");
504*c2c66affSColin Finck checkflag(flag,DDCAPS_ZBLTS,"DDCAPS_ZBLTS");
505*c2c66affSColin Finck checkflag(flag,DDCAPS_ZOVERLAYS,"DDCAPS_ZOVERLAYS");
506*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->ddCaps.dwVSBCaps");
507*c2c66affSColin Finck
508*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVSBCKeyCaps : 0x%08lx\n",pHalInfo->ddCaps.dwVSBCKeyCaps);
509*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVSBFXCaps : 0x%08lx\n",pHalInfo->ddCaps.dwVSBFXCaps);
510*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
511*c2c66affSColin Finck {
512*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwVSBRops[0x%04x] : 0x%08lx\n",t,pHalInfo->ddCaps.dwVSBRops[t]);
513*c2c66affSColin Finck }
514*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSSBCaps : 0x%08lx\n",pHalInfo->ddCaps.dwSSBCaps);
515*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSSBCKeyCa : 0x%08lx\n",pHalInfo->ddCaps.dwSSBCKeyCaps);
516*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSSBFXCaps : 0x%08lx\n",pHalInfo->ddCaps.dwSSBFXCaps);
517*c2c66affSColin Finck for (t=0;t<DD_ROP_SPACE;t++)
518*c2c66affSColin Finck {
519*c2c66affSColin Finck printf(" pHalInfo->ddCaps.dwSSBRops[0x%04x] : 0x%08lx\n",t,pHalInfo->ddCaps.dwSSBRops[t]);
520*c2c66affSColin Finck }
521*c2c66affSColin Finck
522*c2c66affSColin Finck printf(" pHalInfo->GetDriverInfo : 0x%08lx\n",(long)pHalInfo->GetDriverInfo);
523*c2c66affSColin Finck printf(" pHalInfo->dwFlags : ");
524*c2c66affSColin Finck
525*c2c66affSColin Finck flag = pHalInfo->dwFlags;
526*c2c66affSColin Finck count = 0;
527*c2c66affSColin Finck checkflag(flag,DDHALINFO_ISPRIMARYDISPLAY,"DDHALINFO_ISPRIMARYDISPLAY");
528*c2c66affSColin Finck checkflag(flag,DDHALINFO_MODEXILLEGAL,"DDHALINFO_MODEXILLEGAL");
529*c2c66affSColin Finck checkflag(flag,DDHALINFO_GETDRIVERINFOSET,"DDHALINFO_GETDRIVERINFOSET");
530*c2c66affSColin Finck checkflag(flag,DDHALINFO_GETDRIVERINFO2,"DDHALINFO_GETDRIVERINFO2");
531*c2c66affSColin Finck endcheckflag(flag,"pHalInfo->dwFlags");
532*c2c66affSColin Finck
533*c2c66affSColin Finck printf(" pHalInfo->lpD3DGlobalDriverData : 0x%08lx\n",(long)pHalInfo->lpD3DGlobalDriverData);
534*c2c66affSColin Finck printf(" pHalInfo->lpD3DHALCallbacks : 0x%08lx\n",(long)pHalInfo->lpD3DHALCallbacks);
535*c2c66affSColin Finck printf(" pHalInfo->lpD3DBufCallbacks : 0x%08lx\n",(long)pHalInfo->lpD3DBufCallbacks);
536*c2c66affSColin Finck }
537*c2c66affSColin Finck else
538*c2c66affSColin Finck {
539*c2c66affSColin Finck if (pHalInfo->dwSize !=0)
540*c2c66affSColin Finck {
541*c2c66affSColin Finck printf("unkonwn dwSize DD_HALINFO : the size found is 0x%08lx\n",pHalInfo->dwSize);
542*c2c66affSColin Finck }
543*c2c66affSColin Finck else
544*c2c66affSColin Finck {
545*c2c66affSColin Finck printf("none pHalInfo from the driver 0x%08lx\n",pHalInfo->dwSize);
546*c2c66affSColin Finck }
547*c2c66affSColin Finck }
548*c2c66affSColin Finck }
549*c2c66affSColin Finck
550*c2c66affSColin Finck
551*c2c66affSColin Finck void
dump_D3dCallbacks(D3DNTHAL_CALLBACKS * puD3dCallbacks,char * text)552*c2c66affSColin Finck dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text)
553*c2c66affSColin Finck {
554*c2c66affSColin Finck printf("dumping the D3DNTHAL_CALLBACKS from %s\n",text);
555*c2c66affSColin Finck if (puD3dCallbacks->dwSize == sizeof(D3DNTHAL_CALLBACKS))
556*c2c66affSColin Finck {
557*c2c66affSColin Finck printf(" puD3dCallbacks->dwSize : 0x%08lx\n",(long)puD3dCallbacks->dwSize);
558*c2c66affSColin Finck printf(" puD3dCallbacks->ContextCreate : 0x%08lx\n",(long)puD3dCallbacks->ContextCreate);
559*c2c66affSColin Finck printf(" puD3dCallbacks->ContextDestroy : 0x%08lx\n",(long)puD3dCallbacks->ContextDestroy);
560*c2c66affSColin Finck printf(" puD3dCallbacks->ContextDestroyAll : 0x%08lx\n",(long)puD3dCallbacks->ContextDestroyAll);
561*c2c66affSColin Finck printf(" puD3dCallbacks->SceneCapture : 0x%08lx\n",(long)puD3dCallbacks->SceneCapture);
562*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved10 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved10);
563*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved11 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved11);
564*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved22 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved22);
565*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved23 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved23);
566*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved : 0x%08lx\n",(long)puD3dCallbacks->dwReserved);
567*c2c66affSColin Finck printf(" puD3dCallbacks->TextureCreate : 0x%08lx\n",(long)puD3dCallbacks->TextureCreate);
568*c2c66affSColin Finck printf(" puD3dCallbacks->TextureDestroy : 0x%08lx\n",(long)puD3dCallbacks->TextureDestroy);
569*c2c66affSColin Finck printf(" puD3dCallbacks->TextureSwap : 0x%08lx\n",(long)puD3dCallbacks->TextureSwap);
570*c2c66affSColin Finck printf(" puD3dCallbacks->TextureGetSurf : 0x%08lx\n",(long)puD3dCallbacks->TextureGetSurf);
571*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved12 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved12);
572*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved13 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved13);
573*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved14 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved14);
574*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved15 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved15);
575*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved16 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved16);
576*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved17 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved17);
577*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved18 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved18);
578*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved19 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved19);
579*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved20 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved20);
580*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved21 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved21);
581*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved24 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved24);
582*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved0 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved0);
583*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved1 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved1);
584*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved2 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved2);
585*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved3 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved3);
586*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved4 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved4);
587*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved5 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved5);
588*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved6 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved6);
589*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved7 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved7);
590*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved8 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved8);
591*c2c66affSColin Finck printf(" puD3dCallbacks->dwReserved9 : 0x%08lx\n",(long)puD3dCallbacks->dwReserved9);
592*c2c66affSColin Finck }
593*c2c66affSColin Finck else
594*c2c66affSColin Finck {
595*c2c66affSColin Finck printf("none puD3dCallbacks from the driver 0x%08lx\n",puD3dCallbacks->dwSize);
596*c2c66affSColin Finck }
597*c2c66affSColin Finck }
598*c2c66affSColin Finck
599*c2c66affSColin Finck
600*c2c66affSColin Finck void
dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA * puD3dDriverData,char * text)601*c2c66affSColin Finck dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text)
602*c2c66affSColin Finck {
603*c2c66affSColin Finck UINT flag = 0;
604*c2c66affSColin Finck INT count = 0;
605*c2c66affSColin Finck
606*c2c66affSColin Finck printf("dumping the D3DNTHAL_GLOBALDRIVERDATA from %s\n",text);
607*c2c66affSColin Finck if (puD3dDriverData->dwSize == sizeof(D3DNTHAL_GLOBALDRIVERDATA))
608*c2c66affSColin Finck {
609*c2c66affSColin Finck printf(" puD3dDriverData->dwSize : 0x%08lx\n",(long)puD3dDriverData->dwSize);
610*c2c66affSColin Finck if (puD3dDriverData->hwCaps.dwSize == sizeof(D3DNTHALDEVICEDESC_V1))
611*c2c66affSColin Finck {
612*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwSize : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dwSize);
613*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwFlags : ");
614*c2c66affSColin Finck
615*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dwFlags;
616*c2c66affSColin Finck checkflag(flag,D3DDD_BCLIPPING,"D3DDD_BCLIPPING");
617*c2c66affSColin Finck checkflag(flag,D3DDD_COLORMODEL,"D3DDD_COLORMODEL");
618*c2c66affSColin Finck checkflag(flag,D3DDD_DEVCAPS,"D3DDD_DEVCAPS");
619*c2c66affSColin Finck checkflag(flag,D3DDD_DEVICERENDERBITDEPTH,"D3DDD_DEVICERENDERBITDEPTH");
620*c2c66affSColin Finck checkflag(flag,D3DDD_DEVICEZBUFFERBITDEPTH,"D3DDD_DEVICEZBUFFERBITDEPTH");
621*c2c66affSColin Finck checkflag(flag,D3DDD_LIGHTINGCAPS,"D3DDD_LIGHTINGCAPS");
622*c2c66affSColin Finck checkflag(flag,D3DDD_LINECAPS,"D3DDD_LINECAPS");
623*c2c66affSColin Finck checkflag(flag,D3DDD_MAXBUFFERSIZE,"D3DDD_MAXBUFFERSIZE");
624*c2c66affSColin Finck checkflag(flag,D3DDD_MAXVERTEXCOUNT,"D3DDD_MAXVERTEXCOUNT");
625*c2c66affSColin Finck checkflag(flag,D3DDD_TRANSFORMCAPS,"D3DDD_TRANSFORMCAPS");
626*c2c66affSColin Finck checkflag(flag,D3DDD_TRICAPS,"D3DDD_TRICAPS");
627*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dwFlags ");
628*c2c66affSColin Finck
629*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dcmColorModel : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dcmColorModel);
630*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwDevCaps : ");
631*c2c66affSColin Finck
632*c2c66affSColin Finck count = 0;
633*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dwDevCaps;
634*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_CANBLTSYSTONONLOCAL,"D3DDEVCAPS_CANBLTSYSTONONLOCAL");
635*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_CANRENDERAFTERFLIP,"D3DDEVCAPS_CANRENDERAFTERFLIP");
636*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_DRAWPRIMITIVES2,"D3DDEVCAPS_DRAWPRIMITIVES2");
637*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_DRAWPRIMITIVES2EX,"D3DDEVCAPS_DRAWPRIMITIVES2EX");
638*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_DRAWPRIMTLVERTEX,"D3DDEVCAPS_DRAWPRIMTLVERTEX");
639*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_EXECUTESYSTEMMEMORY,"D3DDEVCAPS_EXECUTESYSTEMMEMORY");
640*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_EXECUTEVIDEOMEMORY,"D3DDEVCAPS_EXECUTEVIDEOMEMORY");
641*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_FLOATTLVERTEX,"D3DDEVCAPS_FLOATTLVERTEX");
642*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_HWRASTERIZATION,"D3DDEVCAPS_HWRASTERIZATION");
643*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_HWTRANSFORMANDLIGHT,"D3DDEVCAPS_HWTRANSFORMANDLIGHT");
644*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_SEPARATETEXTUREMEMORIES,"D3DDEVCAPS_SEPARATETEXTUREMEMORIES");
645*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_SORTDECREASINGZ,"D3DDEVCAPS_SORTDECREASINGZ");
646*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_SORTEXACT,"D3DDEVCAPS_SORTEXACT");
647*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_SORTINCREASINGZ,"D3DDEVCAPS_SORTINCREASINGZ");
648*c2c66affSColin Finck // not in ddk or dxsdk I have but it is msdn checkflag(flag,D3DDEVCAPS_TEXTURENONLOCALVIDEOMEMORY,"D3DDEVCAPS_TEXTURENONLOCALVIDEOMEMORY");
649*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_TLVERTEXSYSTEMMEMORY,"D3DDEVCAPS_TLVERTEXSYSTEMMEMORY");
650*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_TLVERTEXVIDEOMEMORY,"D3DDEVCAPS_TLVERTEXVIDEOMEMORY");
651*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_TEXTURESYSTEMMEMORY,"D3DDEVCAPS_TEXTURESYSTEMMEMORY");
652*c2c66affSColin Finck checkflag(flag,D3DDEVCAPS_TEXTUREVIDEOMEMORY,"D3DDEVCAPS_TEXTUREVIDEOMEMORY");
653*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dwDevCaps");
654*c2c66affSColin Finck
655*c2c66affSColin Finck if (puD3dDriverData->hwCaps.dtcTransformCaps.dwSize == sizeof(D3DTRANSFORMCAPS))
656*c2c66affSColin Finck {
657*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dtcTransformCaps.dwSize : 0x%08lx\n",(long) puD3dDriverData->hwCaps.dtcTransformCaps.dwSize);
658*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dtcTransformCaps.dwCaps : ");
659*c2c66affSColin Finck
660*c2c66affSColin Finck count = 0;
661*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dtcTransformCaps.dwCaps;
662*c2c66affSColin Finck checkflag(flag,D3DTRANSFORMCAPS_CLIP,"D3DTRANSFORMCAPS_CLIP");
663*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dtcTransformCaps.dwCaps");
664*c2c66affSColin Finck }
665*c2c66affSColin Finck else
666*c2c66affSColin Finck {
667*c2c66affSColin Finck printf("none puD3dDriverData->hwCaps.dtcTransformCaps.dwSize from the driver 0x%08lx\n",puD3dDriverData->hwCaps.dtcTransformCaps.dwSize);
668*c2c66affSColin Finck }
669*c2c66affSColin Finck
670*c2c66affSColin Finck if (puD3dDriverData->hwCaps.dlcLightingCaps.dwSize == sizeof(D3DLIGHTINGCAPS))
671*c2c66affSColin Finck {
672*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dlcLightingCaps.dwSize : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dlcLightingCaps.dwSize);
673*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dlcLightingCaps.dwCaps : ");
674*c2c66affSColin Finck
675*c2c66affSColin Finck count = 0;
676*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dlcLightingCaps.dwCaps;
677*c2c66affSColin Finck
678*c2c66affSColin Finck checkflag(flag,D3DLIGHTCAPS_DIRECTIONAL,"D3DLIGHTCAPS_DIRECTIONAL");
679*c2c66affSColin Finck checkflag(flag,D3DLIGHTCAPS_GLSPOT,"D3DLIGHTCAPS_GLSPOT");
680*c2c66affSColin Finck checkflag(flag,D3DLIGHTCAPS_PARALLELPOINT,"D3DLIGHTCAPS_PARALLELPOINT");
681*c2c66affSColin Finck checkflag(flag,D3DLIGHTCAPS_POINT,"D3DLIGHTCAPS_POINT");
682*c2c66affSColin Finck checkflag(flag,D3DLIGHTCAPS_SPOT,"D3DLIGHTCAPS_SPOT");
683*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dlcLightingCaps.dwCaps");
684*c2c66affSColin Finck
685*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dlcLightingCaps.dwLightingModel : ");
686*c2c66affSColin Finck
687*c2c66affSColin Finck count = 0;
688*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dlcLightingCaps.dwLightingModel;
689*c2c66affSColin Finck
690*c2c66affSColin Finck checkflag(flag,D3DLIGHTINGMODEL_MONO,"D3DLIGHTINGMODEL_MONO");
691*c2c66affSColin Finck checkflag(flag,D3DLIGHTINGMODEL_RGB,"D3DLIGHTINGMODEL_RGB");
692*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dlcLightingCaps.dwLightingModel");
693*c2c66affSColin Finck
694*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dlcLightingCaps.dwNumLights : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dlcLightingCaps.dwNumLights);
695*c2c66affSColin Finck }
696*c2c66affSColin Finck else
697*c2c66affSColin Finck {
698*c2c66affSColin Finck printf("none puD3dDriverData->hwCaps.dlcLightingCaps.dwSize from the driver 0x%08lx\n",puD3dDriverData->hwCaps.dlcLightingCaps.dwSize);
699*c2c66affSColin Finck }
700*c2c66affSColin Finck
701*c2c66affSColin Finck
702*c2c66affSColin Finck if (puD3dDriverData->hwCaps.dpcLineCaps.dwSize == sizeof(D3DPRIMCAPS))
703*c2c66affSColin Finck {
704*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwSize : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcLineCaps.dwSize);
705*c2c66affSColin Finck
706*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwMiscCaps : ");
707*c2c66affSColin Finck count = 0;
708*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwMiscCaps;
709*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CONFORMANT,"D3DPMISCCAPS_CONFORMANT");
710*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLCCW,"D3DPMISCCAPS_CULLCCW");
711*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLCW,"D3DPMISCCAPS_CULLCW");
712*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLNONE,"D3DPMISCCAPS_CULLNONE");
713*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_LINEPATTERNREP,"D3DPMISCCAPS_LINEPATTERNREP");
714*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_MASKPLANES,"D3DPMISCCAPS_MASKPLANES");
715*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_MASKZ,"D3DPMISCCAPS_MASKZ");
716*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwMiscCaps");
717*c2c66affSColin Finck
718*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwRasterCaps : ");
719*c2c66affSColin Finck count = 0;
720*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwRasterCaps;
721*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANISOTROPY,"D3DPRASTERCAPS_ANISOTROPY");
722*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASEDGES,"D3DPRASTERCAPS_ANTIALIASEDGES");
723*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT,"D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT");
724*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT,"D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT");
725*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_DITHER,"D3DPRASTERCAPS_DITHER");
726*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGRANGE,"D3DPRASTERCAPS_FOGRANGE");
727*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGTABLE,"D3DPRASTERCAPS_FOGTABLE");
728*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGVERTEX,"D3DPRASTERCAPS_FOGVERTEX");
729*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_PAT,"D3DPRASTERCAPS_PAT");
730*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ROP2,"D3DPRASTERCAPS_ROP2");
731*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_STIPPLE,"D3DPRASTERCAPS_STIPPLE");
732*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_SUBPIXEL,"D3DPRASTERCAPS_SUBPIXEL");
733*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_SUBPIXELX,"D3DPRASTERCAPS_SUBPIXELX");
734*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT,"D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT");
735*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_WBUFFER,"D3DPRASTERCAPS_WBUFFER");
736*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_WFOG,"D3DPRASTERCAPS_WFOG");
737*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_XOR,"D3DPRASTERCAPS_XOR");
738*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZBIAS,"D3DPRASTERCAPS_ZBIAS");
739*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZBUFFERLESSHSR,"D3DPRASTERCAPS_ZBUFFERLESSHSR");
740*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZFOG,"D3DPRASTERCAPS_ZFOG");
741*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZTEST,"D3DPRASTERCAPS_ZTEST");
742*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwRasterCaps");
743*c2c66affSColin Finck
744*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwZCmpCaps : ");
745*c2c66affSColin Finck count = 0;
746*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwZCmpCaps;
747*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_ALWAYS,"D3DPCMPCAPS_ALWAYS");
748*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_EQUAL,"D3DPCMPCAPS_EQUAL");
749*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATER,"D3DPCMPCAPS_GREATER");
750*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATEREQUAL,"D3DPCMPCAPS_GREATEREQUAL");
751*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESS,"D3DPCMPCAPS_LESS");
752*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESSEQUAL,"D3DPCMPCAPS_LESSEQUAL");
753*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NEVER,"D3DPCMPCAPS_NEVER");
754*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NOTEQUAL,"D3DPCMPCAPS_NOTEQUAL");
755*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwZCmpCaps ");
756*c2c66affSColin Finck
757*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwSrcBlendCaps : ");
758*c2c66affSColin Finck count = 0;
759*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwSrcBlendCaps;
760*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHINVSRCALPHA,"D3DPBLENDCAPS_BOTHINVSRCALPHA");
761*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHSRCALPHA,"D3DPBLENDCAPS_BOTHSRCALPHA");
762*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTALPHA,"D3DPBLENDCAPS_DESTALPHA");
763*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTCOLOR,"D3DPBLENDCAPS_DESTCOLOR");
764*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTALPHA,"D3DPBLENDCAPS_INVDESTALPHA");
765*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTCOLOR,"D3DPBLENDCAPS_INVDESTCOLOR");
766*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCALPHA,"D3DPBLENDCAPS_INVSRCALPHA");
767*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCCOLOR,"D3DPBLENDCAPS_INVSRCCOLOR");
768*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ONE,"D3DPBLENDCAPS_ONE");
769*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHA,"D3DPBLENDCAPS_SRCALPHA");
770*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHASAT,"D3DPBLENDCAPS_SRCALPHASAT");
771*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCCOLOR,"D3DPBLENDCAPS_SRCCOLOR");
772*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ZERO,"D3DPBLENDCAPS_ZERO");
773*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwSrcBlendCaps ");
774*c2c66affSColin Finck
775*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwDestBlendCaps : ");
776*c2c66affSColin Finck count = 0;
777*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwDestBlendCaps;
778*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHINVSRCALPHA,"D3DPBLENDCAPS_BOTHINVSRCALPHA");
779*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHSRCALPHA,"D3DPBLENDCAPS_BOTHSRCALPHA");
780*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTALPHA,"D3DPBLENDCAPS_DESTALPHA");
781*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTCOLOR,"D3DPBLENDCAPS_DESTCOLOR");
782*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTALPHA,"D3DPBLENDCAPS_INVDESTALPHA");
783*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTCOLOR,"D3DPBLENDCAPS_INVDESTCOLOR");
784*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCALPHA,"D3DPBLENDCAPS_INVSRCALPHA");
785*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCCOLOR,"D3DPBLENDCAPS_INVSRCCOLOR");
786*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ONE,"D3DPBLENDCAPS_ONE");
787*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHA,"D3DPBLENDCAPS_SRCALPHA");
788*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHASAT,"D3DPBLENDCAPS_SRCALPHASAT");
789*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCCOLOR,"D3DPBLENDCAPS_SRCCOLOR");
790*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ZERO,"D3DPBLENDCAPS_ZERO");
791*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwDestBlendCaps ");
792*c2c66affSColin Finck
793*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwAlphaCmpCaps : ");
794*c2c66affSColin Finck count = 0;
795*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwAlphaCmpCaps;
796*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_ALWAYS,"D3DPCMPCAPS_ALWAYS");
797*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_EQUAL,"D3DPCMPCAPS_EQUAL");
798*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATER,"D3DPCMPCAPS_GREATER");
799*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATEREQUAL,"D3DPCMPCAPS_GREATEREQUAL");
800*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESS,"D3DPCMPCAPS_LESS");
801*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESSEQUAL,"D3DPCMPCAPS_LESSEQUAL");
802*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NEVER,"D3DPCMPCAPS_NEVER");
803*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NOTEQUAL,"D3DPCMPCAPS_NOTEQUAL");
804*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwAlphaCmpCaps ");
805*c2c66affSColin Finck
806*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwShadeCaps : ");
807*c2c66affSColin Finck count = 0;
808*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwShadeCaps;
809*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAFLATBLEND,"D3DPSHADECAPS_ALPHAFLATBLEND");
810*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAFLATSTIPPLED,"D3DPSHADECAPS_ALPHAFLATSTIPPLED");
811*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAGOURAUDBLEND,"D3DPSHADECAPS_ALPHAGOURAUDBLEND");
812*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED,"D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED");
813*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAPHONGBLEND,"D3DPSHADECAPS_ALPHAPHONGBLEND");
814*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAPHONGSTIPPLED,"D3DPSHADECAPS_ALPHAPHONGSTIPPLED");
815*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORFLATMONO,"D3DPSHADECAPS_COLORFLATMONO");
816*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORFLATRGB,"D3DPSHADECAPS_COLORFLATRGB");
817*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORGOURAUDMONO,"D3DPSHADECAPS_COLORGOURAUDMONO");
818*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORGOURAUDRGB,"D3DPSHADECAPS_COLORGOURAUDRGB");
819*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORPHONGMONO,"D3DPSHADECAPS_COLORPHONGMONO");
820*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORPHONGRGB,"D3DPSHADECAPS_COLORPHONGRGB");
821*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGFLAT,"D3DPSHADECAPS_FOGFLAT");
822*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGGOURAUD,"D3DPSHADECAPS_FOGGOURAUD");
823*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGPHONG,"D3DPSHADECAPS_FOGPHONG");
824*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARFLATMONO,"D3DPSHADECAPS_SPECULARFLATMONO");
825*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARFLATRGB,"D3DPSHADECAPS_SPECULARFLATRGB");
826*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARGOURAUDMONO,"D3DPSHADECAPS_SPECULARGOURAUDMONO");
827*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARGOURAUDRGB,"D3DPSHADECAPS_SPECULARGOURAUDRGB");
828*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARPHONGMONO,"D3DPSHADECAPS_SPECULARPHONGMONO");
829*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARPHONGRGB,"D3DPSHADECAPS_SPECULARPHONGRGB");
830*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwShadeCaps ");
831*c2c66affSColin Finck
832*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwTextureCaps : ");
833*c2c66affSColin Finck count = 0;
834*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwTextureCaps;
835*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_ALPHA,"D3DPTEXTURECAPS_ALPHA");
836*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_ALPHAPALETTE,"D3DPTEXTURECAPS_ALPHAPALETTE");
837*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_BORDER,"D3DPTEXTURECAPS_BORDER");
838*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_COLORKEYBLEND,"D3DPTEXTURECAPS_COLORKEYBLEND");
839*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_CUBEMAP,"D3DPTEXTURECAPS_CUBEMAP");
840*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_PERSPECTIVE,"D3DPTEXTURECAPS_PERSPECTIVE");
841*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_POW2,"D3DPTEXTURECAPS_POW2");
842*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_PROJECTED,"D3DPTEXTURECAPS_PROJECTED");
843*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_NONPOW2CONDITIONAL,"D3DPTEXTURECAPS_NONPOW2CONDITIONAL");
844*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_SQUAREONLY,"D3DPTEXTURECAPS_SQUAREONLY");
845*c2c66affSColin Finck // not in ddk or dxsdk but it is in msdn checkflag(flag,D3DPTEXTURECAPS_TEXREPEATNOTSCALESBYSIZE,"D3DPTEXTURECAPS_TEXREPEATNOTSCALESBYSIZE");
846*c2c66affSColin Finck // not in ddk or dxsdk but it is in msdn checkflag(flag,D3DPTEXTURECAPS_TEXTURETRANSFORM,"D3DPTEXTURECAPS_TEXTURETRANSFORM");
847*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_TRANSPARENCY,"D3DPTEXTURECAPS_TRANSPARENCY");
848*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwTextureCaps ");
849*c2c66affSColin Finck
850*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwTextureFilterCaps : ");
851*c2c66affSColin Finck count = 0;
852*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwTextureFilterCaps;
853*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEAR,"D3DPTFILTERCAPS_LINEAR");
854*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEARMIPLINEAR,"D3DPTFILTERCAPS_LINEARMIPLINEAR");
855*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEARMIPNEAREST,"D3DPTFILTERCAPS_LINEARMIPNEAREST");
856*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFAFLATCUBIC,"D3DPTFILTERCAPS_MAGFAFLATCUBIC");
857*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFANISOTROPIC,"D3DPTFILTERCAPS_MAGFANISOTROPIC");
858*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC,"D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC");
859*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFLINEAR,"D3DPTFILTERCAPS_MAGFLINEAR");
860*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFPOINT,"D3DPTFILTERCAPS_MAGFPOINT");
861*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFANISOTROPIC,"D3DPTFILTERCAPS_MINFANISOTROPIC");
862*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFLINEAR,"D3DPTFILTERCAPS_MINFLINEAR");
863*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFPOINT,"D3DPTFILTERCAPS_MINFPOINT");
864*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPFLINEAR,"D3DPTFILTERCAPS_MIPFLINEAR");
865*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPFPOINT,"D3DPTFILTERCAPS_MIPFPOINT");
866*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPLINEAR,"D3DPTFILTERCAPS_MIPLINEAR");
867*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPNEAREST,"D3DPTFILTERCAPS_MIPNEAREST");
868*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_NEAREST,"D3DPTFILTERCAPS_NEAREST");
869*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwTextureFilterCaps ");
870*c2c66affSColin Finck
871*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwTextureBlendCaps : ");
872*c2c66affSColin Finck count = 0;
873*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwTextureBlendCaps;
874*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_ADD,"D3DPTBLENDCAPS_ADD");
875*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_COPY,"D3DPTBLENDCAPS_COPY");
876*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECAL,"D3DPTBLENDCAPS_DECAL");
877*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECALALPHA,"D3DPTBLENDCAPS_DECALALPHA");
878*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECALMASK,"D3DPTBLENDCAPS_DECALMASK");
879*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATE,"D3DPTBLENDCAPS_MODULATE");
880*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATEALPHA,"D3DPTBLENDCAPS_MODULATEALPHA");
881*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATEMASK,"D3DPTBLENDCAPS_MODULATEMASK");
882*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwTextureBlendCaps ");
883*c2c66affSColin Finck
884*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwTextureAddressCaps : ");
885*c2c66affSColin Finck count = 0;
886*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcLineCaps.dwTextureAddressCaps;
887*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_BORDER,"D3DPTADDRESSCAPS_BORDER");
888*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_CLAMP,"D3DPTADDRESSCAPS_CLAMP");
889*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_INDEPENDENTUV,"D3DPTADDRESSCAPS_INDEPENDENTUV");
890*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_MIRROR,"D3DPTADDRESSCAPS_MIRROR");
891*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_WRAP,"D3DPTADDRESSCAPS_WRAP");
892*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcLineCaps.dwTextureAddressCaps ");
893*c2c66affSColin Finck
894*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwStippleWidth : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcLineCaps.dwStippleWidth);
895*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcLineCaps.dwStippleHeight : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcLineCaps.dwStippleHeight);
896*c2c66affSColin Finck }
897*c2c66affSColin Finck else
898*c2c66affSColin Finck {
899*c2c66affSColin Finck printf("none puD3dDriverData->hwCaps.dpcLineCaps.dwSize from the driver 0x%08lx\n",puD3dDriverData->hwCaps.dpcLineCaps.dwSize);
900*c2c66affSColin Finck }
901*c2c66affSColin Finck
902*c2c66affSColin Finck if (puD3dDriverData->hwCaps.dpcTriCaps.dwSize == sizeof(D3DPRIMCAPS))
903*c2c66affSColin Finck {
904*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwSize : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcTriCaps.dwSize);
905*c2c66affSColin Finck
906*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwMiscCaps : ");
907*c2c66affSColin Finck count = 0;
908*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwMiscCaps;
909*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CONFORMANT,"D3DPMISCCAPS_CONFORMANT");
910*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLCCW,"D3DPMISCCAPS_CULLCCW");
911*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLCW,"D3DPMISCCAPS_CULLCW");
912*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_CULLNONE,"D3DPMISCCAPS_CULLNONE");
913*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_LINEPATTERNREP,"D3DPMISCCAPS_LINEPATTERNREP");
914*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_MASKPLANES,"D3DPMISCCAPS_MASKPLANES");
915*c2c66affSColin Finck checkflag(flag,D3DPMISCCAPS_MASKZ,"D3DPMISCCAPS_MASKZ");
916*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwMiscCaps");
917*c2c66affSColin Finck
918*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwRasterCaps : ");
919*c2c66affSColin Finck count = 0;
920*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwRasterCaps;
921*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANISOTROPY,"D3DPRASTERCAPS_ANISOTROPY");
922*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASEDGES,"D3DPRASTERCAPS_ANTIALIASEDGES");
923*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT,"D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT");
924*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT,"D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT");
925*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_DITHER,"D3DPRASTERCAPS_DITHER");
926*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGRANGE,"D3DPRASTERCAPS_FOGRANGE");
927*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGTABLE,"D3DPRASTERCAPS_FOGTABLE");
928*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_FOGVERTEX,"D3DPRASTERCAPS_FOGVERTEX");
929*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_PAT,"D3DPRASTERCAPS_PAT");
930*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ROP2,"D3DPRASTERCAPS_ROP2");
931*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_STIPPLE,"D3DPRASTERCAPS_STIPPLE");
932*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_SUBPIXEL,"D3DPRASTERCAPS_SUBPIXEL");
933*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_SUBPIXELX,"D3DPRASTERCAPS_SUBPIXELX");
934*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT,"D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT");
935*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_WBUFFER,"D3DPRASTERCAPS_WBUFFER");
936*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_WFOG,"D3DPRASTERCAPS_WFOG");
937*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_XOR,"D3DPRASTERCAPS_XOR");
938*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZBIAS,"D3DPRASTERCAPS_ZBIAS");
939*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZBUFFERLESSHSR,"D3DPRASTERCAPS_ZBUFFERLESSHSR");
940*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZFOG,"D3DPRASTERCAPS_ZFOG");
941*c2c66affSColin Finck checkflag(flag,D3DPRASTERCAPS_ZTEST,"D3DPRASTERCAPS_ZTEST");
942*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwRasterCaps");
943*c2c66affSColin Finck
944*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwZCmpCaps : ");
945*c2c66affSColin Finck count = 0;
946*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwZCmpCaps;
947*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_ALWAYS,"D3DPCMPCAPS_ALWAYS");
948*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_EQUAL,"D3DPCMPCAPS_EQUAL");
949*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATER,"D3DPCMPCAPS_GREATER");
950*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATEREQUAL,"D3DPCMPCAPS_GREATEREQUAL");
951*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESS,"D3DPCMPCAPS_LESS");
952*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESSEQUAL,"D3DPCMPCAPS_LESSEQUAL");
953*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NEVER,"D3DPCMPCAPS_NEVER");
954*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NOTEQUAL,"D3DPCMPCAPS_NOTEQUAL");
955*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwZCmpCaps ");
956*c2c66affSColin Finck
957*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwSrcBlendCaps : ");
958*c2c66affSColin Finck count = 0;
959*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwSrcBlendCaps;
960*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHINVSRCALPHA,"D3DPBLENDCAPS_BOTHINVSRCALPHA");
961*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHSRCALPHA,"D3DPBLENDCAPS_BOTHSRCALPHA");
962*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTALPHA,"D3DPBLENDCAPS_DESTALPHA");
963*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTCOLOR,"D3DPBLENDCAPS_DESTCOLOR");
964*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTALPHA,"D3DPBLENDCAPS_INVDESTALPHA");
965*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTCOLOR,"D3DPBLENDCAPS_INVDESTCOLOR");
966*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCALPHA,"D3DPBLENDCAPS_INVSRCALPHA");
967*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCCOLOR,"D3DPBLENDCAPS_INVSRCCOLOR");
968*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ONE,"D3DPBLENDCAPS_ONE");
969*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHA,"D3DPBLENDCAPS_SRCALPHA");
970*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHASAT,"D3DPBLENDCAPS_SRCALPHASAT");
971*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCCOLOR,"D3DPBLENDCAPS_SRCCOLOR");
972*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ZERO,"D3DPBLENDCAPS_ZERO");
973*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwSrcBlendCaps ");
974*c2c66affSColin Finck
975*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwDestBlendCaps : ");
976*c2c66affSColin Finck count = 0;
977*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwDestBlendCaps;
978*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHINVSRCALPHA,"D3DPBLENDCAPS_BOTHINVSRCALPHA");
979*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_BOTHSRCALPHA,"D3DPBLENDCAPS_BOTHSRCALPHA");
980*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTALPHA,"D3DPBLENDCAPS_DESTALPHA");
981*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_DESTCOLOR,"D3DPBLENDCAPS_DESTCOLOR");
982*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTALPHA,"D3DPBLENDCAPS_INVDESTALPHA");
983*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVDESTCOLOR,"D3DPBLENDCAPS_INVDESTCOLOR");
984*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCALPHA,"D3DPBLENDCAPS_INVSRCALPHA");
985*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_INVSRCCOLOR,"D3DPBLENDCAPS_INVSRCCOLOR");
986*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ONE,"D3DPBLENDCAPS_ONE");
987*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHA,"D3DPBLENDCAPS_SRCALPHA");
988*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCALPHASAT,"D3DPBLENDCAPS_SRCALPHASAT");
989*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_SRCCOLOR,"D3DPBLENDCAPS_SRCCOLOR");
990*c2c66affSColin Finck checkflag(flag,D3DPBLENDCAPS_ZERO,"D3DPBLENDCAPS_ZERO");
991*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwDestBlendCaps ");
992*c2c66affSColin Finck
993*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwAlphaCmpCaps : ");
994*c2c66affSColin Finck count = 0;
995*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwAlphaCmpCaps;
996*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_ALWAYS,"D3DPCMPCAPS_ALWAYS");
997*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_EQUAL,"D3DPCMPCAPS_EQUAL");
998*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATER,"D3DPCMPCAPS_GREATER");
999*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_GREATEREQUAL,"D3DPCMPCAPS_GREATEREQUAL");
1000*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESS,"D3DPCMPCAPS_LESS");
1001*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_LESSEQUAL,"D3DPCMPCAPS_LESSEQUAL");
1002*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NEVER,"D3DPCMPCAPS_NEVER");
1003*c2c66affSColin Finck checkflag(flag,D3DPCMPCAPS_NOTEQUAL,"D3DPCMPCAPS_NOTEQUAL");
1004*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwAlphaCmpCaps ");
1005*c2c66affSColin Finck
1006*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwShadeCaps : ");
1007*c2c66affSColin Finck count = 0;
1008*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwShadeCaps;
1009*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAFLATBLEND,"D3DPSHADECAPS_ALPHAFLATBLEND");
1010*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAFLATSTIPPLED,"D3DPSHADECAPS_ALPHAFLATSTIPPLED");
1011*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAGOURAUDBLEND,"D3DPSHADECAPS_ALPHAGOURAUDBLEND");
1012*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED,"D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED");
1013*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAPHONGBLEND,"D3DPSHADECAPS_ALPHAPHONGBLEND");
1014*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_ALPHAPHONGSTIPPLED,"D3DPSHADECAPS_ALPHAPHONGSTIPPLED");
1015*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORFLATMONO,"D3DPSHADECAPS_COLORFLATMONO");
1016*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORFLATRGB,"D3DPSHADECAPS_COLORFLATRGB");
1017*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORGOURAUDMONO,"D3DPSHADECAPS_COLORGOURAUDMONO");
1018*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORGOURAUDRGB,"D3DPSHADECAPS_COLORGOURAUDRGB");
1019*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORPHONGMONO,"D3DPSHADECAPS_COLORPHONGMONO");
1020*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_COLORPHONGRGB,"D3DPSHADECAPS_COLORPHONGRGB");
1021*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGFLAT,"D3DPSHADECAPS_FOGFLAT");
1022*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGGOURAUD,"D3DPSHADECAPS_FOGGOURAUD");
1023*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_FOGPHONG,"D3DPSHADECAPS_FOGPHONG");
1024*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARFLATMONO,"D3DPSHADECAPS_SPECULARFLATMONO");
1025*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARFLATRGB,"D3DPSHADECAPS_SPECULARFLATRGB");
1026*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARGOURAUDMONO,"D3DPSHADECAPS_SPECULARGOURAUDMONO");
1027*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARGOURAUDRGB,"D3DPSHADECAPS_SPECULARGOURAUDRGB");
1028*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARPHONGMONO,"D3DPSHADECAPS_SPECULARPHONGMONO");
1029*c2c66affSColin Finck checkflag(flag,D3DPSHADECAPS_SPECULARPHONGRGB,"D3DPSHADECAPS_SPECULARPHONGRGB");
1030*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwShadeCaps ");
1031*c2c66affSColin Finck
1032*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwTextureCaps : ");
1033*c2c66affSColin Finck count = 0;
1034*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwTextureCaps;
1035*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_ALPHA,"D3DPTEXTURECAPS_ALPHA");
1036*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_ALPHAPALETTE,"D3DPTEXTURECAPS_ALPHAPALETTE");
1037*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_BORDER,"D3DPTEXTURECAPS_BORDER");
1038*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_COLORKEYBLEND,"D3DPTEXTURECAPS_COLORKEYBLEND");
1039*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_CUBEMAP,"D3DPTEXTURECAPS_CUBEMAP");
1040*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_PERSPECTIVE,"D3DPTEXTURECAPS_PERSPECTIVE");
1041*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_POW2,"D3DPTEXTURECAPS_POW2");
1042*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_PROJECTED,"D3DPTEXTURECAPS_PROJECTED");
1043*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_NONPOW2CONDITIONAL,"D3DPTEXTURECAPS_NONPOW2CONDITIONAL");
1044*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_SQUAREONLY,"D3DPTEXTURECAPS_SQUAREONLY");
1045*c2c66affSColin Finck //not in ddk or dxsdk but it is in msdn checkflag(flag,D3DPTEXTURECAPS_TEXREPEATNOTSCALESBYSIZE,"D3DPTEXTURECAPS_TEXREPEATNOTSCALESBYSIZE");
1046*c2c66affSColin Finck //not in ddk or dxsdk but it is in msdn checkflag(flag,D3DPTEXTURECAPS_TEXTURETRANSFORM,"D3DPTEXTURECAPS_TEXTURETRANSFORM");
1047*c2c66affSColin Finck checkflag(flag,D3DPTEXTURECAPS_TRANSPARENCY,"D3DPTEXTURECAPS_TRANSPARENCY");
1048*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwTextureCaps ");
1049*c2c66affSColin Finck
1050*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwTextureFilterCaps : ");
1051*c2c66affSColin Finck count = 0;
1052*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwTextureFilterCaps;
1053*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEAR,"D3DPTFILTERCAPS_LINEAR");
1054*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEARMIPLINEAR,"D3DPTFILTERCAPS_LINEARMIPLINEAR");
1055*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_LINEARMIPNEAREST,"D3DPTFILTERCAPS_LINEARMIPNEAREST");
1056*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFAFLATCUBIC,"D3DPTFILTERCAPS_MAGFAFLATCUBIC");
1057*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFANISOTROPIC,"D3DPTFILTERCAPS_MAGFANISOTROPIC");
1058*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC,"D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC");
1059*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFLINEAR,"D3DPTFILTERCAPS_MAGFLINEAR");
1060*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MAGFPOINT,"D3DPTFILTERCAPS_MAGFPOINT");
1061*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFANISOTROPIC,"D3DPTFILTERCAPS_MINFANISOTROPIC");
1062*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFLINEAR,"D3DPTFILTERCAPS_MINFLINEAR");
1063*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MINFPOINT,"D3DPTFILTERCAPS_MINFPOINT");
1064*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPFLINEAR,"D3DPTFILTERCAPS_MIPFLINEAR");
1065*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPFPOINT,"D3DPTFILTERCAPS_MIPFPOINT");
1066*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPLINEAR,"D3DPTFILTERCAPS_MIPLINEAR");
1067*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_MIPNEAREST,"D3DPTFILTERCAPS_MIPNEAREST");
1068*c2c66affSColin Finck checkflag(flag,D3DPTFILTERCAPS_NEAREST,"D3DPTFILTERCAPS_NEAREST");
1069*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwTextureFilterCaps ");
1070*c2c66affSColin Finck
1071*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwTextureBlendCaps : ");
1072*c2c66affSColin Finck count = 0;
1073*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwTextureBlendCaps;
1074*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_ADD,"D3DPTBLENDCAPS_ADD");
1075*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_COPY,"D3DPTBLENDCAPS_COPY");
1076*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECAL,"D3DPTBLENDCAPS_DECAL");
1077*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECALALPHA,"D3DPTBLENDCAPS_DECALALPHA");
1078*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_DECALMASK,"D3DPTBLENDCAPS_DECALMASK");
1079*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATE,"D3DPTBLENDCAPS_MODULATE");
1080*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATEALPHA,"D3DPTBLENDCAPS_MODULATEALPHA");
1081*c2c66affSColin Finck checkflag(flag,D3DPTBLENDCAPS_MODULATEMASK,"D3DPTBLENDCAPS_MODULATEMASK");
1082*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwTextureBlendCaps ");
1083*c2c66affSColin Finck
1084*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwTextureAddressCaps : ");
1085*c2c66affSColin Finck count = 0;
1086*c2c66affSColin Finck flag = puD3dDriverData->hwCaps.dpcTriCaps.dwTextureAddressCaps;
1087*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_BORDER,"D3DPTADDRESSCAPS_BORDER");
1088*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_CLAMP,"D3DPTADDRESSCAPS_CLAMP");
1089*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_INDEPENDENTUV,"D3DPTADDRESSCAPS_INDEPENDENTUV");
1090*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_MIRROR,"D3DPTADDRESSCAPS_MIRROR");
1091*c2c66affSColin Finck checkflag(flag,D3DPTADDRESSCAPS_WRAP,"D3DPTADDRESSCAPS_WRAP");
1092*c2c66affSColin Finck endcheckflag(flag,"puD3dDriverData->hwCaps.dpcTriCaps.dwTextureAddressCaps ");
1093*c2c66affSColin Finck
1094*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwStippleWidth : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcTriCaps.dwStippleWidth);
1095*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dpcTriCaps.dwStippleHeight : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dpcTriCaps.dwStippleHeight);
1096*c2c66affSColin Finck }
1097*c2c66affSColin Finck else
1098*c2c66affSColin Finck {
1099*c2c66affSColin Finck printf("none puD3dDriverData->hwCaps.dpcTriCaps.dwSize from the driver 0x%08lx\n",puD3dDriverData->hwCaps.dpcTriCaps.dwSize);
1100*c2c66affSColin Finck }
1101*c2c66affSColin Finck
1102*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwDeviceRenderBitDepth : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dwDeviceRenderBitDepth);
1103*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwDeviceZBufferBitDepth : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dwDeviceZBufferBitDepth);
1104*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwMaxBufferSize : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dwMaxBufferSize);
1105*c2c66affSColin Finck printf(" puD3dDriverData->hwCaps.dwMaxVertexCount : 0x%08lx\n",(long)puD3dDriverData->hwCaps.dwMaxVertexCount);
1106*c2c66affSColin Finck }
1107*c2c66affSColin Finck else
1108*c2c66affSColin Finck {
1109*c2c66affSColin Finck printf("none puD3dDriverData->hwCaps.dwSize from the driver 0x%08lx\n",puD3dDriverData->hwCaps.dwSize);
1110*c2c66affSColin Finck }
1111*c2c66affSColin Finck
1112*c2c66affSColin Finck printf(" puD3dDriverData->dwNumVertices : 0x%08lx\n",(long)puD3dDriverData->dwNumVertices);
1113*c2c66affSColin Finck printf(" puD3dDriverData->dwNumClipVertices : 0x%08lx\n",(long)puD3dDriverData->dwNumClipVertices);
1114*c2c66affSColin Finck printf(" puD3dDriverData->dwNumTextureFormats : 0x%08lx\n",(long)puD3dDriverData->dwNumTextureFormats);
1115*c2c66affSColin Finck printf(" puD3dDriverData->lpTextureFormats : 0x%08lx\n",(long)puD3dDriverData->lpTextureFormats);
1116*c2c66affSColin Finck printf(" puD3dDriverData->lpTextureFormats : 0x%08lx\n",(long)puD3dDriverData->lpTextureFormats);
1117*c2c66affSColin Finck }
1118*c2c66affSColin Finck else
1119*c2c66affSColin Finck {
1120*c2c66affSColin Finck printf("none puD3dDriverData from the driver 0x%08lx\n",puD3dDriverData->dwSize);
1121*c2c66affSColin Finck }
1122*c2c66affSColin Finck }
1123*c2c66affSColin Finck
1124*c2c66affSColin Finck
1125*c2c66affSColin Finck void
dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS * puD3dBufferCallbacks,char * text)1126*c2c66affSColin Finck dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dBufferCallbacks, char *text)
1127*c2c66affSColin Finck {
1128*c2c66affSColin Finck int count = 0;
1129*c2c66affSColin Finck DWORD flag = 0;
1130*c2c66affSColin Finck
1131*c2c66affSColin Finck printf("dumping the DD_D3DBUFCALLBACKS from %s\n",text);
1132*c2c66affSColin Finck
1133*c2c66affSColin Finck if (puD3dBufferCallbacks->dwSize == sizeof(DD_D3DBUFCALLBACKS))
1134*c2c66affSColin Finck {
1135*c2c66affSColin Finck printf(" puD3dBufferCallbacks->dwSize : 0x%08lx\n",(long)puD3dBufferCallbacks->dwSize);
1136*c2c66affSColin Finck printf(" puD3dBufferCallbacks->dwFlags : ");
1137*c2c66affSColin Finck
1138*c2c66affSColin Finck /* rember this flags are not in msdn only in ms ddk */
1139*c2c66affSColin Finck count = 0;
1140*c2c66affSColin Finck flag = puD3dBufferCallbacks->dwFlags;
1141*c2c66affSColin Finck checkflag(flag,DDHAL_D3DBUFCB32_CANCREATED3DBUF,"DDHAL_D3DBUFCB32_CANCREATED3DBUF");
1142*c2c66affSColin Finck checkflag(flag,DDHAL_D3DBUFCB32_CREATED3DBUF,"DDHAL_D3DBUFCB32_CREATED3DBUF");
1143*c2c66affSColin Finck
1144*c2c66affSColin Finck checkflag(flag,DDHAL_D3DBUFCB32_DESTROYD3DBUF,"DDHAL_D3DBUFCB32_DESTROYD3DBUF");
1145*c2c66affSColin Finck
1146*c2c66affSColin Finck checkflag(flag,DDHAL_D3DBUFCB32_LOCKD3DBUF,"DDHAL_D3DBUFCB32_LOCKD3DBUF");
1147*c2c66affSColin Finck checkflag(flag,DDHAL_D3DBUFCB32_UNLOCKD3DBUF,"DDHAL_D3DBUFCB32_UNLOCKD3DBUF");
1148*c2c66affSColin Finck endcheckflag(flag,"puD3dBufferCallbacks->dwFlags");
1149*c2c66affSColin Finck
1150*c2c66affSColin Finck printf(" puD3dBufferCallbacks->CanCreateD3DBuffer : 0x%08lx\n",(long)puD3dBufferCallbacks->CanCreateD3DBuffer);
1151*c2c66affSColin Finck printf(" puD3dBufferCallbacks->CreateD3DBuffer : 0x%08lx\n",(long)puD3dBufferCallbacks->CreateD3DBuffer);
1152*c2c66affSColin Finck printf(" puD3dBufferCallbacks->DestroyD3DBuffer : 0x%08lx\n",(long)puD3dBufferCallbacks->DestroyD3DBuffer);
1153*c2c66affSColin Finck printf(" puD3dBufferCallbacks->LockD3DBuffer : 0x%08lx\n",(long)puD3dBufferCallbacks->LockD3DBuffer);
1154*c2c66affSColin Finck printf(" puD3dBufferCallbacks->UnlockD3DBuffer : 0x%08lx\n",(long)puD3dBufferCallbacks->UnlockD3DBuffer);
1155*c2c66affSColin Finck }
1156*c2c66affSColin Finck else
1157*c2c66affSColin Finck {
1158*c2c66affSColin Finck printf("none puD3dBufferCallbacks from the driver 0x%08lx\n",puD3dBufferCallbacks->dwSize);
1159*c2c66affSColin Finck }
1160*c2c66affSColin Finck
1161*c2c66affSColin Finck }
1162*c2c66affSColin Finck
1163*c2c66affSColin Finck void
dump_D3dTextureFormats(DDSURFACEDESC * puD3dTextureFormats,int dwNum,char * text)1164*c2c66affSColin Finck dump_D3dTextureFormats(DDSURFACEDESC *puD3dTextureFormats, int dwNum, char *text)
1165*c2c66affSColin Finck {
1166*c2c66affSColin Finck int t=0;
1167*c2c66affSColin Finck int count = 0;
1168*c2c66affSColin Finck DWORD flag = 0;
1169*c2c66affSColin Finck DDSURFACEDESC * myTextureFormats = puD3dTextureFormats;
1170*c2c66affSColin Finck
1171*c2c66affSColin Finck printf("dumping the DDSURFACEDESC/DDSURFACEDESC2 from %s\n",text);
1172*c2c66affSColin Finck
1173*c2c66affSColin Finck for (t=0;t<dwNum;t++)
1174*c2c66affSColin Finck {
1175*c2c66affSColin Finck printf("Show %d of %d DDSURFACEDESC\n",t+1,dwNum);
1176*c2c66affSColin Finck if (myTextureFormats->dwSize == sizeof(DDSURFACEDESC))
1177*c2c66affSColin Finck {
1178*c2c66affSColin Finck printf(" puD3dTextureFormats->dwSize : 0x%08lx\n",(long)myTextureFormats->dwSize);
1179*c2c66affSColin Finck
1180*c2c66affSColin Finck printf(" puD3dTextureFormats->dwFlags : ");
1181*c2c66affSColin Finck count = 0;
1182*c2c66affSColin Finck flag = myTextureFormats->dwFlags;
1183*c2c66affSColin Finck checkflag(flag,DDSD_ALPHABITDEPTH,"DDSD_ALPHABITDEPTH");
1184*c2c66affSColin Finck checkflag(flag,DDSD_BACKBUFFERCOUNT ,"DDSD_BACKBUFFERCOUNT");
1185*c2c66affSColin Finck checkflag(flag,DDSD_CAPS,"DDSD_CAPS ");
1186*c2c66affSColin Finck checkflag(flag,DDSD_CKDESTBLT,"DDSD_CKDESTBLT");
1187*c2c66affSColin Finck checkflag(flag,DDSD_CKDESTOVERLAY,"DDSD_CKDESTOVERLAY");
1188*c2c66affSColin Finck checkflag(flag,DDSD_CKSRCBLT,"DDSD_CKSRCBLT");
1189*c2c66affSColin Finck checkflag(flag,DDSD_CKSRCOVERLAY,"DDSD_CKSRCOVERLAY");
1190*c2c66affSColin Finck checkflag(flag,DDSD_HEIGHT,"DDSD_HEIGHT");
1191*c2c66affSColin Finck checkflag(flag,DDSD_LINEARSIZE,"DDSD_LINEARSIZE");
1192*c2c66affSColin Finck checkflag(flag,DDSD_LPSURFACE,"DDSD_LPSURFACE");
1193*c2c66affSColin Finck checkflag(flag,DDSD_MIPMAPCOUNT,"DDSD_MIPMAPCOUNT");
1194*c2c66affSColin Finck checkflag(flag,DDSD_PITCH,"DDSD_PITCH");
1195*c2c66affSColin Finck checkflag(flag,DDSD_PIXELFORMAT,"DDSD_PIXELFORMAT");
1196*c2c66affSColin Finck checkflag(flag,DDSD_REFRESHRATE,"DDSD_REFRESHRATE");
1197*c2c66affSColin Finck checkflag(flag,DDSD_WIDTH,"DDSD_WIDTH");
1198*c2c66affSColin Finck checkflag(flag,DDSD_ZBUFFERBITDEPTH,"DDSD_ZBUFFERBITDEPTH");
1199*c2c66affSColin Finck endcheckflag(flag,"puD3dTextureFormats->dwFlags");
1200*c2c66affSColin Finck
1201*c2c66affSColin Finck printf(" puD3dTextureFormats->dwHeight : 0x%08lx\n",(long)myTextureFormats->dwHeight);
1202*c2c66affSColin Finck printf(" puD3dTextureFormats->dwWidth : 0x%08lx\n",(long)myTextureFormats->dwWidth);
1203*c2c66affSColin Finck printf(" puD3dTextureFormats->dwLinearSize : 0x%08lx\n",(long)myTextureFormats->dwLinearSize);
1204*c2c66affSColin Finck printf(" puD3dTextureFormats->dwBackBufferCount : 0x%08lx\n",(long)myTextureFormats->dwBackBufferCount);
1205*c2c66affSColin Finck printf(" puD3dTextureFormats->dwZBufferBitDepth : 0x%08lx\n",(long)myTextureFormats->dwZBufferBitDepth);
1206*c2c66affSColin Finck printf(" puD3dTextureFormats->dwAlphaBitDepth : 0x%08lx\n",(long)myTextureFormats->dwAlphaBitDepth);
1207*c2c66affSColin Finck printf(" puD3dTextureFormats->dwReserved : 0x%08lx\n",(long)myTextureFormats->dwReserved);
1208*c2c66affSColin Finck printf(" puD3dTextureFormats->lpSurface : 0x%08lx\n",(long)myTextureFormats->lpSurface);
1209*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKDestOverlay.dwColorSpaceLowValue : 0x%08lx\n",(long)myTextureFormats->ddckCKDestOverlay.dwColorSpaceLowValue);
1210*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKDestOverlay.dwColorSpaceHighValue : 0x%08lx\n",(long)myTextureFormats->ddckCKDestOverlay.dwColorSpaceHighValue);
1211*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKDestBlt.dwColorSpaceLowValue : 0x%08lx\n",(long)myTextureFormats->ddckCKDestBlt.dwColorSpaceLowValue);
1212*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKDestBlt : 0x%08lx\n",(long)myTextureFormats->ddckCKDestBlt.dwColorSpaceHighValue);
1213*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKSrcOverlay.dwColorSpaceLowValue : 0x%08lx\n",(long)myTextureFormats->ddckCKSrcOverlay.dwColorSpaceLowValue);
1214*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKSrcOverlay.dwColorSpaceHighValue : 0x%08lx\n",(long)myTextureFormats->ddckCKSrcOverlay.dwColorSpaceHighValue);
1215*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKSrcBlt.dwColorSpaceLowValue : 0x%08lx\n",(long)myTextureFormats->ddckCKSrcBlt.dwColorSpaceLowValue);
1216*c2c66affSColin Finck printf(" puD3dTextureFormats->ddckCKSrcBlt.dwColorSpaceHighValue : 0x%08lx\n",(long)myTextureFormats->ddckCKSrcBlt.dwColorSpaceHighValue);
1217*c2c66affSColin Finck
1218*c2c66affSColin Finck // DDPIXELFORMAT
1219*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwSize : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwSize);
1220*c2c66affSColin Finck if (puD3dTextureFormats->ddpfPixelFormat.dwSize == sizeof(DDPIXELFORMAT))
1221*c2c66affSColin Finck {
1222*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwFlags : ");
1223*c2c66affSColin Finck count = 0;
1224*c2c66affSColin Finck flag = myTextureFormats->ddpfPixelFormat.dwFlags;
1225*c2c66affSColin Finck checkflag(flag,DDPF_ALPHA,"DDPF_ALPHA");
1226*c2c66affSColin Finck checkflag(flag,DDPF_ALPHAPIXELS ,"DDPF_ALPHAPIXELS");
1227*c2c66affSColin Finck checkflag(flag,DDPF_ALPHAPREMULT,"DDPF_ALPHAPREMULT");
1228*c2c66affSColin Finck checkflag(flag,DDPF_BUMPLUMINANCE ,"DDPF_BUMPLUMINANCE");
1229*c2c66affSColin Finck checkflag(flag,DDPF_BUMPDUDV,"DDPF_BUMPDUDV");
1230*c2c66affSColin Finck checkflag(flag,DDPF_COMPRESSED,"DDPF_COMPRESSED");
1231*c2c66affSColin Finck checkflag(flag,DDPF_FOURCC,"DDPF_FOURCC");
1232*c2c66affSColin Finck checkflag(flag,DDPF_LUMINANCE,"DDPF_LUMINANCE");
1233*c2c66affSColin Finck checkflag(flag,DDPF_PALETTEINDEXED1,"DDPF_PALETTEINDEXED1");
1234*c2c66affSColin Finck checkflag(flag,DDPF_PALETTEINDEXED2,"DDPF_PALETTEINDEXED2");
1235*c2c66affSColin Finck checkflag(flag,DDPF_PALETTEINDEXED4,"DDPF_PALETTEINDEXED4");
1236*c2c66affSColin Finck checkflag(flag,DDPF_PALETTEINDEXED8,"DDPF_PALETTEINDEXED8");
1237*c2c66affSColin Finck checkflag(flag,DDPF_PALETTEINDEXEDTO8,"DDPF_PALETTEINDEXEDTO8");
1238*c2c66affSColin Finck checkflag(flag,DDPF_RGB ,"DDPF_RGB");
1239*c2c66affSColin Finck checkflag(flag,DDPF_RGBTOYUV,"DDPF_RGBTOYUV");
1240*c2c66affSColin Finck checkflag(flag,DDPF_STENCILBUFFER,"DDPF_STENCILBUFFER");
1241*c2c66affSColin Finck checkflag(flag,DDPF_YUV,"DDPF_YUV");
1242*c2c66affSColin Finck checkflag(flag,DDPF_ZBUFFER,"DDPF_ZBUFFER");
1243*c2c66affSColin Finck checkflag(flag,DDPF_ZPIXELS,"DDPF_ZPIXELS");
1244*c2c66affSColin Finck endcheckflag(flag,"puD3dTextureFormats->ddpfPixelFormat.dwFlags");
1245*c2c66affSColin Finck
1246*c2c66affSColin Finck
1247*c2c66affSColin Finck if (myTextureFormats->ddpfPixelFormat.dwFlags & DDPF_FOURCC)
1248*c2c66affSColin Finck {
1249*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwFourCC : ");
1250*c2c66affSColin Finck switch(myTextureFormats->ddpfPixelFormat.dwFourCC)
1251*c2c66affSColin Finck {
1252*c2c66affSColin Finck case MAKEFOURCC('A','U','R','2'):
1253*c2c66affSColin Finck printf("AUR2\n");
1254*c2c66affSColin Finck break;
1255*c2c66affSColin Finck
1256*c2c66affSColin Finck case MAKEFOURCC('A','U','R','A'):
1257*c2c66affSColin Finck printf("AURA\n");
1258*c2c66affSColin Finck break;
1259*c2c66affSColin Finck
1260*c2c66affSColin Finck case MAKEFOURCC('C','H','A','M'):
1261*c2c66affSColin Finck printf("CHAM\n");
1262*c2c66affSColin Finck break;
1263*c2c66affSColin Finck
1264*c2c66affSColin Finck case MAKEFOURCC('C','V','I','D'):
1265*c2c66affSColin Finck printf("CVID\n");
1266*c2c66affSColin Finck break;
1267*c2c66affSColin Finck
1268*c2c66affSColin Finck case MAKEFOURCC('D','X','T','1'):
1269*c2c66affSColin Finck printf("DXT1\n");
1270*c2c66affSColin Finck break;
1271*c2c66affSColin Finck
1272*c2c66affSColin Finck case MAKEFOURCC('D','X','T','2'):
1273*c2c66affSColin Finck printf("DXT2\n");
1274*c2c66affSColin Finck break;
1275*c2c66affSColin Finck
1276*c2c66affSColin Finck case MAKEFOURCC('D','X','T','3'):
1277*c2c66affSColin Finck printf("DXT3\n");
1278*c2c66affSColin Finck break;
1279*c2c66affSColin Finck
1280*c2c66affSColin Finck case MAKEFOURCC('D','X','T','4'):
1281*c2c66affSColin Finck printf("DXT4\n");
1282*c2c66affSColin Finck break;
1283*c2c66affSColin Finck
1284*c2c66affSColin Finck case MAKEFOURCC('D','X','T','5'):
1285*c2c66affSColin Finck printf("DXT5\n");
1286*c2c66affSColin Finck break;
1287*c2c66affSColin Finck
1288*c2c66affSColin Finck case MAKEFOURCC('F','V','F','1'):
1289*c2c66affSColin Finck printf("FVF1\n");
1290*c2c66affSColin Finck break;
1291*c2c66affSColin Finck
1292*c2c66affSColin Finck case MAKEFOURCC('I','F','0','9'):
1293*c2c66affSColin Finck printf("IF09\n");
1294*c2c66affSColin Finck break;
1295*c2c66affSColin Finck
1296*c2c66affSColin Finck case MAKEFOURCC('I','V','3','1'):
1297*c2c66affSColin Finck printf("IV31\n");
1298*c2c66affSColin Finck break;
1299*c2c66affSColin Finck
1300*c2c66affSColin Finck case MAKEFOURCC('J','P','E','G'):
1301*c2c66affSColin Finck printf("JPEG\n");
1302*c2c66affSColin Finck break;
1303*c2c66affSColin Finck
1304*c2c66affSColin Finck case MAKEFOURCC('M','J','P','G'):
1305*c2c66affSColin Finck printf("MJPG\n");
1306*c2c66affSColin Finck break;
1307*c2c66affSColin Finck
1308*c2c66affSColin Finck case MAKEFOURCC('M','R','L','E'):
1309*c2c66affSColin Finck printf("MRLE\n");
1310*c2c66affSColin Finck break;
1311*c2c66affSColin Finck
1312*c2c66affSColin Finck case MAKEFOURCC('M','S','V','C'):
1313*c2c66affSColin Finck printf("MSVC\n");
1314*c2c66affSColin Finck break;
1315*c2c66affSColin Finck
1316*c2c66affSColin Finck case MAKEFOURCC('P','H','M','O'):
1317*c2c66affSColin Finck printf("PHMO\n");
1318*c2c66affSColin Finck break;
1319*c2c66affSColin Finck
1320*c2c66affSColin Finck case MAKEFOURCC('R','T','2','1'):
1321*c2c66affSColin Finck printf("RT21\n");
1322*c2c66affSColin Finck break;
1323*c2c66affSColin Finck
1324*c2c66affSColin Finck case MAKEFOURCC('U','L','T','I'):
1325*c2c66affSColin Finck printf("ULTI\n");
1326*c2c66affSColin Finck break;
1327*c2c66affSColin Finck
1328*c2c66affSColin Finck case MAKEFOURCC('V','4','2','2'):
1329*c2c66affSColin Finck printf("V422\n");
1330*c2c66affSColin Finck break;
1331*c2c66affSColin Finck
1332*c2c66affSColin Finck case MAKEFOURCC('V','6','5','5'):
1333*c2c66affSColin Finck printf("V655\n");
1334*c2c66affSColin Finck break;
1335*c2c66affSColin Finck
1336*c2c66affSColin Finck case MAKEFOURCC('V','D','C','T'):
1337*c2c66affSColin Finck printf("VDCT\n");
1338*c2c66affSColin Finck break;
1339*c2c66affSColin Finck
1340*c2c66affSColin Finck case MAKEFOURCC('V','I','D','S'):
1341*c2c66affSColin Finck printf("VIDS\n");
1342*c2c66affSColin Finck break;
1343*c2c66affSColin Finck
1344*c2c66affSColin Finck case MAKEFOURCC('Y','U','9','2'):
1345*c2c66affSColin Finck printf("YU92\n");
1346*c2c66affSColin Finck break;
1347*c2c66affSColin Finck
1348*c2c66affSColin Finck case MAKEFOURCC('Y','U','V','8'):
1349*c2c66affSColin Finck printf("YUV8\n");
1350*c2c66affSColin Finck break;
1351*c2c66affSColin Finck
1352*c2c66affSColin Finck case MAKEFOURCC('Y','U','V','9'):
1353*c2c66affSColin Finck printf("YUV9\n");
1354*c2c66affSColin Finck break;
1355*c2c66affSColin Finck
1356*c2c66affSColin Finck case MAKEFOURCC('Y','U','Y','V'):
1357*c2c66affSColin Finck printf("YUYV\n");
1358*c2c66affSColin Finck break;
1359*c2c66affSColin Finck
1360*c2c66affSColin Finck case MAKEFOURCC('Z','P','E','G'):
1361*c2c66affSColin Finck printf("ZPEG\n");
1362*c2c66affSColin Finck break;
1363*c2c66affSColin Finck
1364*c2c66affSColin Finck default:
1365*c2c66affSColin Finck printf("0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwFourCC);
1366*c2c66affSColin Finck break;
1367*c2c66affSColin Finck }
1368*c2c66affSColin Finck }
1369*c2c66affSColin Finck else
1370*c2c66affSColin Finck {
1371*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwFourCC : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwFourCC);
1372*c2c66affSColin Finck }
1373*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwRGBBitCount : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwRGBBitCount);
1374*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwRBitMask : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwRBitMask);
1375*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwGBitMask : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwGBitMask);
1376*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwBBitMask : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwBBitMask);
1377*c2c66affSColin Finck printf(" puD3dTextureFormats->ddpfPixelFormat.dwRGBAlphaBitMask : 0x%08lx\n",(long)myTextureFormats->ddpfPixelFormat.dwRGBAlphaBitMask);
1378*c2c66affSColin Finck }
1379*c2c66affSColin Finck else
1380*c2c66affSColin Finck {
1381*c2c66affSColin Finck printf("none uD3dTextureFormats->ddpfPixelFormat from the driver 0x%08lx\n",myTextureFormats->ddpfPixelFormat.dwSize);
1382*c2c66affSColin Finck }
1383*c2c66affSColin Finck
1384*c2c66affSColin Finck printf(" puD3dTextureFormats->ddsCaps.dwCaps : ");
1385*c2c66affSColin Finck count = 0;
1386*c2c66affSColin Finck flag = myTextureFormats->ddsCaps.dwCaps;
1387*c2c66affSColin Finck // not in use longer acoing msdn checkflag(flag,DDSCAPS_3D,"DDSCAPS_3D");
1388*c2c66affSColin Finck checkflag(flag,DDSCAPS_3DDEVICE ,"DDSCAPS_3DDEVICE");
1389*c2c66affSColin Finck checkflag(flag,DDSCAPS_ALLOCONLOAD,"DDSCAPS_ALLOCONLOAD ");
1390*c2c66affSColin Finck checkflag(flag,DDSCAPS_ALPHA,"DDSCAPS_ALPHA");
1391*c2c66affSColin Finck checkflag(flag,DDSCAPS_BACKBUFFER,"DDSCAPS_BACKBUFFER");
1392*c2c66affSColin Finck checkflag(flag,DDSCAPS_FLIP,"DDSCAPS_FLIP");
1393*c2c66affSColin Finck checkflag(flag,DDSCAPS_FRONTBUFFER,"DDSCAPS_FRONTBUFFER");
1394*c2c66affSColin Finck checkflag(flag,DDSCAPS_HWCODEC,"DDSCAPS_HWCODEC");
1395*c2c66affSColin Finck checkflag(flag,DDSCAPS_LIVEVIDEO ,"DDSCAPS_LIVEVIDEO");
1396*c2c66affSColin Finck checkflag(flag,DDSCAPS_LOCALVIDMEM,"DDSCAPS_LOCALVIDMEM");
1397*c2c66affSColin Finck checkflag(flag,DDSCAPS_MIPMAP,"DDSCAPS_MIPMAP");
1398*c2c66affSColin Finck checkflag(flag,DDSCAPS_MODEX,"DDSCAPS_MODEX");
1399*c2c66affSColin Finck checkflag(flag,DDSCAPS_NONLOCALVIDMEM,"DDSCAPS_NONLOCALVIDMEM");
1400*c2c66affSColin Finck checkflag(flag,DDSCAPS_OFFSCREENPLAIN,"DDSCAPS_OFFSCREENPLAIN");
1401*c2c66affSColin Finck checkflag(flag,DDSCAPS_OPTIMIZED,"DDSCAPS_OPTIMIZED");
1402*c2c66affSColin Finck checkflag(flag,DDSCAPS_OVERLAY,"DDSCAPS_OVERLAY");
1403*c2c66affSColin Finck checkflag(flag,DDSCAPS_OWNDC,"DDSCAPS_OWNDC");
1404*c2c66affSColin Finck checkflag(flag,DDSCAPS_PALETTE,"DDSCAPS_PALETTE");
1405*c2c66affSColin Finck checkflag(flag,DDSCAPS_PRIMARYSURFACE ,"DDSCAPS_PRIMARYSURFACE");
1406*c2c66affSColin Finck checkflag(flag,DDSCAPS_STANDARDVGAMODE,"DDSCAPS_STANDARDVGAMODE");
1407*c2c66affSColin Finck checkflag(flag,DDSCAPS_SYSTEMMEMORY,"DDSCAPS_SYSTEMMEMORY");
1408*c2c66affSColin Finck checkflag(flag,DDSCAPS_TEXTURE,"DDSCAPS_TEXTURE");
1409*c2c66affSColin Finck checkflag(flag,DDSCAPS_VIDEOMEMORY,"DDSCAPS_VIDEOMEMORY");
1410*c2c66affSColin Finck checkflag(flag,DDSCAPS_VIDEOPORT,"DDSCAPS_VIDEOPORT");
1411*c2c66affSColin Finck checkflag(flag,DDSCAPS_VISIBLE,"DDSCAPS_VISIBLE");
1412*c2c66affSColin Finck checkflag(flag,DDSCAPS_WRITEONLY ,"DDSCAPS_WRITEONLY");
1413*c2c66affSColin Finck checkflag(flag,DDSCAPS_ZBUFFER,"DDSCAPS_ZBUFFER");
1414*c2c66affSColin Finck endcheckflag(flag,"puD3dTextureFormats->ddsCaps.dwCaps");
1415*c2c66affSColin Finck
1416*c2c66affSColin Finck
1417*c2c66affSColin Finck myTextureFormats = (DDSURFACEDESC *) (((DWORD) myTextureFormats) + sizeof(DDSURFACEDESC));
1418*c2c66affSColin Finck }
1419*c2c66affSColin Finck else
1420*c2c66affSColin Finck {
1421*c2c66affSColin Finck printf("error this should not happen : puD3dTextureFormats from the driver 0x%08lx\n",myTextureFormats->dwSize);
1422*c2c66affSColin Finck break;
1423*c2c66affSColin Finck }
1424*c2c66affSColin Finck }
1425*c2c66affSColin Finck
1426*c2c66affSColin Finck
1427*c2c66affSColin Finck
1428*c2c66affSColin Finck
1429*c2c66affSColin Finck
1430*c2c66affSColin Finck
1431*c2c66affSColin Finck
1432*c2c66affSColin Finck
1433*c2c66affSColin Finck
1434*c2c66affSColin Finck
1435*c2c66affSColin Finck
1436*c2c66affSColin Finck }
1437