Changeset 40747 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
- Timestamp:
- Apr 2, 2012 5:07:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
r40483 r40747 239 239 { 240 240 VBOXWDDM_CONTEXT_TYPE_UNDEFINED = 0, 241 /* system-created context (for GDI rendering) */ 241 242 VBOXWDDM_CONTEXT_TYPE_SYSTEM, 243 /* context created by the D3D User-mode driver when crogl IS available */ 242 244 VBOXWDDM_CONTEXT_TYPE_CUSTOM_3D, 245 /* context created by the D3D User-mode driver when crogl is NOT available or for ddraw overlay acceleration */ 243 246 VBOXWDDM_CONTEXT_TYPE_CUSTOM_2D, 247 /* contexts created by the cromium HGSMI transport for HGSMI commands submission */ 244 248 VBOXWDDM_CONTEXT_TYPE_CUSTOM_UHGSMI_3D, 245 249 VBOXWDDM_CONTEXT_TYPE_CUSTOM_UHGSMI_GL, 250 /* context created by the kernel->user communication mechanism for visible rects reporting, etc. */ 246 251 VBOXWDDM_CONTEXT_TYPE_CUSTOM_SESSION 247 252 } VBOXWDDM_CONTEXT_TYPE; … … 481 486 482 487 /* submit cmd func */ 488 DECLINLINE(D3DDDIFORMAT) vboxWddmFmtNoAlphaFormat(D3DDDIFORMAT enmFormat) 489 { 490 switch (enmFormat) 491 { 492 case D3DDDIFMT_A8R8G8B8: 493 return D3DDDIFMT_X8R8G8B8; 494 case D3DDDIFMT_A1R5G5B5: 495 return D3DDDIFMT_X1R5G5B5; 496 case D3DDDIFMT_A4R4G4B4: 497 return D3DDDIFMT_X4R4G4B4; 498 case D3DDDIFMT_A8B8G8R8: 499 return D3DDDIFMT_X8B8G8R8; 500 default: 501 return enmFormat; 502 } 503 } 483 504 484 505 /* tooling */
Note:
See TracChangeset
for help on using the changeset viewer.