Changeset 29922 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 31, 2010 5:38:48 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62189
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r29812 r29922 144 144 VirtualBox_DEFS += VBOX_WITH_VIRTIO 145 145 endif 146 146 ifdef VBOXWDDM 147 VirtualBox_DEFS += VBOXWDDM 148 endif 147 149 ifdef VBOX_BLEEDING_EDGE 148 150 VirtualBox_src/VBoxSelectorWnd.cpp_DEFS += \ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r29794 r29922 2422 2422 } 2423 2423 2424 #ifdef VBOXWDDM 2425 int VBoxVHWAImage::vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd) 2426 { 2427 VBoxVHWAColorFormat format; 2428 Assert(!format.isValid()); 2429 if (pCmd->SurfInfo.PixelFormat.flags & VBOXVHWA_PF_RGB) 2430 format = VBoxVHWAColorFormat(pCmd->SurfInfo.PixelFormat.c.rgbBitCount, 2431 pCmd->SurfInfo.PixelFormat.m1.rgbRBitMask, 2432 pCmd->SurfInfo.PixelFormat.m2.rgbGBitMask, 2433 pCmd->SurfInfo.PixelFormat.m3.rgbBBitMask); 2434 else if (pCmd->SurfInfo.PixelFormat.flags & VBOXVHWA_PF_FOURCC) 2435 format = VBoxVHWAColorFormat(pCmd->SurfInfo.PixelFormat.fourCC); 2436 else 2437 AssertBreakpoint(); 2438 2439 Assert(format.isValid()); 2440 if (format.isValid()) 2441 { 2442 pCmd->SurfInfo.pitch = format.bitsPerPixel() * pCmd->SurfInfo.width / 8; 2443 // pCmd->SurfInfo.pitch = ((pCmd->SurfInfo.pitch + 3) & (~3)); 2444 pCmd->SurfInfo.sizeX = format.bitsPerPixelMem() * pCmd->SurfInfo.width / 8; 2445 // pCmd->SurfInfo.sizeX = ((pCmd->SurfInfo.sizeX + 3) & (~3)); 2446 pCmd->SurfInfo.sizeX *= pCmd->SurfInfo.height; 2447 pCmd->SurfInfo.sizeY = 1; 2448 return VINF_SUCCESS; 2449 } 2450 return VERR_INVALID_PARAMETER; 2451 } 2452 #endif 2424 2453 int VBoxVHWAImage::vhwaSurfaceDestroy(struct _VBOXVHWACMD_SURF_DESTROY *pCmd) 2425 2454 { … … 3883 3912 case FOURCC_AYUV: 3884 3913 mBitsPerPixel = 32; 3914 #ifdef VBOXWDDM 3915 mBitsPerPixelMem = 32; 3916 #endif 3885 3917 mWidthCompression = 1; 3886 3918 break; … … 3888 3920 case FOURCC_YUY2: 3889 3921 mBitsPerPixel = 16; 3922 #ifdef VBOXWDDM 3923 mBitsPerPixelMem = 16; 3924 #endif 3890 3925 mWidthCompression = 2; 3891 3926 break; 3892 3927 case FOURCC_YV12: 3893 3928 mBitsPerPixel = 8; 3929 #ifdef VBOXWDDM 3930 mBitsPerPixelMem = 12; 3931 #endif 3894 3932 mWidthCompression = 4; 3895 3933 break; … … 3898 3936 mBitsPerPixel = 0; 3899 3937 mBitsPerPixelTex = 0; 3938 #ifdef VBOXWDDM 3939 mBitsPerPixelMem = 0; 3940 #endif 3900 3941 mWidthCompression = 0; 3901 3942 break; … … 3907 3948 mBitsPerPixel = bitsPerPixel; 3908 3949 mBitsPerPixelTex = bitsPerPixel; 3950 #ifdef VBOXWDDM 3951 mBitsPerPixelMem = bitsPerPixel; 3952 #endif 3909 3953 mDataFormat = 0; 3910 3954 switch (bitsPerPixel) … … 3964 4008 mBitsPerPixel = 0; 3965 4009 mBitsPerPixelTex = 0; 4010 #ifdef VBOXWDDM 4011 mBitsPerPixelMem = 0; 4012 #endif 3966 4013 break; 3967 4014 } … … 4594 4641 pCmd->rc = vhwaConstruct(pBody); 4595 4642 } break; 4643 #ifdef VBOXWDDM 4644 case VBOXVHWACMD_TYPE_SURF_GETINFO: 4645 { 4646 VBOXVHWACMD_SURF_GETINFO * pBody = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_SURF_GETINFO); 4647 pCmd->rc = mOverlayImage.vhwaSurfaceGetInfo(pBody); 4648 } break; 4649 #endif 4596 4650 default: 4597 4651 Assert(0); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h
r28800 r29922 232 232 uint32_t bitsPerPixel() const { return mBitsPerPixel; } 233 233 uint32_t bitsPerPixelTex() const { return mBitsPerPixelTex; } 234 #ifdef VBOXWDDM 235 uint32_t bitsPerPixelMem() const { return mBitsPerPixelMem; } 236 #endif 234 237 void pixel2Normalized(uint32_t pix, float *r, float *g, float *b) const; 235 238 uint32_t widthCompression() const {return mWidthCompression;} … … 267 270 uint32_t mBitsPerPixel; 268 271 uint32_t mBitsPerPixelTex; 272 #ifdef VBOXWDDM 273 uint32_t mBitsPerPixelMem; 274 #endif 269 275 uint32_t mWidthCompression; 270 276 uint32_t mHeightCompression; … … 1479 1485 int vhwaSurfaceCanCreate(struct _VBOXVHWACMD_SURF_CANCREATE *pCmd); 1480 1486 int vhwaSurfaceCreate(struct _VBOXVHWACMD_SURF_CREATE *pCmd); 1487 #ifdef VBOXWDDM 1488 int vhwaSurfaceGetInfo(struct _VBOXVHWACMD_SURF_GETINFO *pCmd); 1489 #endif 1481 1490 int vhwaSurfaceDestroy(struct _VBOXVHWACMD_SURF_DESTROY *pCmd); 1482 1491 int vhwaSurfaceLock(struct _VBOXVHWACMD_SURF_LOCK *pCmd);
Note:
See TracChangeset
for help on using the changeset viewer.