Changeset 33540 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/color.c
r28800 r33540 46 46 * 8x8 pile of bits in the form of a 1BPP bitmap. It can also take an 47 47 * RGB value and make an 8x8 bitmap. These can then be used as brushes 48 * to simulate color unavai ble on the device.48 * to simulate color unavailable on the device. 49 49 * 50 50 * For monochrome the basic algorithm is equivalent to turning on bits … … 60 60 * 63 31 55 23 61 29 53 21 61 61 * 62 * Reference: A Survey of Techniques for the Display of Contin ous62 * Reference: A Survey of Techniques for the Display of Continuous 63 63 * Tone Pictures on Bilevel Displays,; 64 64 * Jarvis, Judice, & Ninke; … … 584 584 585 585 // I = .30R + .59G + .11B 586 // For conv ience the following ratios are used:586 // For convenience the following ratios are used: 587 587 // 588 588 // 77/256 = 30.08% -
trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h
r33048 r33540 256 256 typedef struct _VRDPCLIPRECTS 257 257 { 258 RECTL rclDstOrig; /* Original bounding rectan cle. */258 RECTL rclDstOrig; /* Original bounding rectangle. */ 259 259 RECTL rclDst; /* Bounding rectangle of all rects. */ 260 260 CLIPRECTS rects; /* Rectangles to update. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/drv.c
r33048 r33540 35 35 * 36 36 * 1) RDP orders: BitBlt, RectFill, Text. 37 * These are the simpl iest ones.37 * These are the simplest ones. 38 38 * 39 39 * 2) Caching: Bitmap, glyph, brush. -
trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
r33048 r33540 632 632 633 633 // 634 // On NT4.0 we create a GDI managed bitmap as the prima y surface. But634 // On NT4.0 we create a GDI managed bitmap as the primary surface. But 635 635 // on NT5.0 we create a device managed primary. 636 636 // 637 // On NT4.0 we still use our driver's acc leration capabilities by637 // On NT4.0 we still use our driver's acceleration capabilities by 638 638 // doing a trick with EngLockSurface on the GDI managed primary. 639 639 // … … 687 687 // 688 688 // Jam in the value of dhsurf into screen SURFOBJ. We do this to 689 // make sure the driver acc lerates Drv calls we hook and not689 // make sure the driver accelerates Drv calls we hook and not 690 690 // punt them back to GDI as the SURFOBJ's dhsurf = 0. 691 691 // -
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r33048 r33540 617 617 // 618 618 // try to get it from the miniport. 619 // if the miniport doesn ot support this feature, use defaults.619 // if the miniport doesn't support this feature, use defaults. 620 620 // 621 621 … … 765 765 * 766 766 * Calls the miniport to get the list of modes supported by the kernel driver, 767 * and returns the list of modes supported by the di play driver among those767 * and returns the list of modes supported by the display driver among those 768 768 * 769 769 * returns the number of entries in the videomode buffer. -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c
r33004 r33540 576 576 } 577 577 578 /* No inte section. */578 /* No intersection. */ 579 579 return FALSE; 580 580 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp
r33116 r33540 172 172 173 173 pCmd->EscapeHdr.escapeCode = VBOXESC_GETVBOXVIDEOCMCMD; 174 /* lock to ensure the context is not d istructed */174 /* lock to ensure the context is not destroyed */ 175 175 EnterCriticalSection(&pSession->CritSect); 176 176 /* use any context for identifying the kernel CmSession. We're using the first one */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r33418 r33540 1037 1037 uint32_t cbFormatOps = cFormats * sizeof (FORMATOP); 1038 1038 cbFormatOps = (cbFormatOps + 7) & ~3; 1039 /* ensure the surf descs are 8 byte al ligned */1039 /* ensure the surf descs are 8 byte aligned */ 1040 1040 uint32_t offSurfDescs = (cbFormatOps + 7) & ~3; 1041 1041 uint32_t cbSurfDescs = cSurfDescs * sizeof (DDSURFACEDESC); … … 1453 1453 case D3DDDIPOOL_LOCALVIDMEM: 1454 1454 case D3DDDIPOOL_NONLOCALVIDMEM: 1455 /* @todo: what would be prop per here? */1455 /* @todo: what would be proper here? */ 1456 1456 return D3DPOOL_DEFAULT; 1457 1457 default: … … 3803 3803 { 3804 3804 hr = pDevice9If->DrawPrimitive(pData->PrimitiveType, 3805 0 /* <- since we use our own eStreamSource buffer which has data at the very beginning*/,3805 0 /* <- since we use our own StreamSource buffer which has data at the very beginning*/, 3806 3806 pData->PrimitiveCount); 3807 3807 Assert(hr == S_OK); … … 7382 7382 else 7383 7383 { 7384 /* this is a "generic" resource whose creation is initia ded by the UMD */7384 /* this is a "generic" resource whose creation is initiated by the UMD */ 7385 7385 Assert(pData->PrivateDriverDataSize == sizeof (VBOXWDDM_RCINFO)); 7386 7386 if (pData->PrivateDriverDataSize == sizeof (VBOXWDDM_RCINFO)) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DIf.cpp
r32281 r33540 101 101 102 102 Assert(bResult != -1); 103 if(bResult == -1) /* error occur ed */103 if(bResult == -1) /* error occurred */ 104 104 break; 105 105 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxScreen.cpp
r33116 r33540 450 450 } 451 451 452 if(bResult == -1) /* error occur ed */452 if(bResult == -1) /* error occurred */ 453 453 { 454 454 DWORD winEr = GetLastError(); -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.cpp
r33048 r33540 139 139 else 140 140 { 141 /* Retry using old inte face. */141 /* Retry using old interface. */ 142 142 AssertCompile(sizeof(VMMDevVideoModeSupportedRequest2) >= sizeof(VMMDevVideoModeSupportedRequest)); 143 143 VMMDevVideoModeSupportedRequest *req = (VMMDevVideoModeSupportedRequest *)req2; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxHGSMI.h
r28800 r33540 99 99 typedef struct VBOXVIDEOPORTPROCS 100 100 { 101 /* ored VBOXVIDEOPORTPROCS_xxx constants describing the supported funct yionality */101 /* ored VBOXVIDEOPORTPROCS_xxx constants describing the supported functionality */ 102 102 uint32_t fSupportedTypes; 103 103 -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp
r33532 r33540 863 863 if (p->fu32Flags & VBOX_MOUSE_POINTER_SHAPE) 864 864 { 865 /* If shape is supplied, then alway create the pointer visible.865 /* If shape is supplied, then always create the pointer visible. 866 866 * See comments in 'vboxUpdatePointerShape' 867 867 */ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoCm.cpp
r33530 r33540 45 45 /* commands list */ 46 46 LIST_ENTRY CommandsList; 47 /* event used to notify UMD about pen ging commands */47 /* event used to notify UMD about pending commands */ 48 48 PKEVENT pUmEvent; 49 /* sync hlock */49 /* sync lock */ 50 50 FAST_MUTEX Mutex; 51 51 /* indicates whether event signaling is needed on cmd add */ … … 149 149 150 150 /** 151 * @param pvCmd memory b yffer returned by vboxVideoCmCmdCreate151 * @param pvCmd memory buffer returned by vboxVideoCmCmdCreate 152 152 * @param cbSize should be <= cbSize posted to vboxVideoCmCmdCreate on command creation 153 153 */ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVhwa.cpp
r33252 r33540 731 731 732 732 int rc = VINF_SUCCESS; 733 /* @todo: need a better sync h*/733 /* @todo: need a better sync */ 734 734 uint32_t cNew = ASMAtomicIncU32(&pSource->Vhwa.cOverlaysCreated); 735 735 if (cNew == 1) … … 774 774 Assert(!!(pSource->Vhwa.Settings.fFlags & VBOXVHWA_F_ENABLED)); 775 775 776 /* @todo: need a better sync h*/776 /* @todo: need a better sync */ 777 777 uint32_t cNew = ASMAtomicDecU32(&pSource->Vhwa.cOverlaysCreated); 778 778 int rc = VINF_SUCCESS; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVidPn.cpp
r33252 r33540 832 832 if (vboxVidPnMatchVideoSignal(&dummyMode.VideoSignalInfo, &pMonitorSMI->VideoSignalInfo)) 833 833 { 834 /* mark it as unnee ned */834 /* mark it as unneeded */ 835 835 pData->pResolutions[i].cx = 0; 836 836 break; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r33531 r33540 1239 1239 pCaps->SchedulingCaps.MultiEngineAware = 1; 1240 1240 pCaps->MemoryManagementCaps.Value = 0; 1241 /* @todo: this cor elates with pCaps->SchedulingCaps.MultiEngineAware */1241 /* @todo: this correlates with pCaps->SchedulingCaps.MultiEngineAware */ 1242 1242 pCaps->MemoryManagementCaps.PagingNode = 0; 1243 /* @todo: this cor elates with pCaps->SchedulingCaps.MultiEngineAware */1243 /* @todo: this correlates with pCaps->SchedulingCaps.MultiEngineAware */ 1244 1244 pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = 1; 1245 1245 … … 3636 3636 pModeInfos, cModeInfos, &cModeInfos2, &iPreferredModeInfo); 3637 3637 Assert(Status == STATUS_SUCCESS); 3638 Assert(iPreferredModeInfo >= 0); /* the array should contain the pref fered info */3638 Assert(iPreferredModeInfo >= 0); /* the array should contain the preferred info */ 3639 3639 if (Status != STATUS_SUCCESS) 3640 3640 drprintf((__FUNCTION__": second call to VBoxWddmGetModesForResolution failed Status(0x%x), cModeInfos(%d), cModeInfos2(%d)\n", Status, cModeInfos, cModeInfos2)); … … 4048 4048 } 4049 4049 4050 /* error has occur ed, release & break */4050 /* error has occurred, release & break */ 4051 4051 pRecommendMonitorModesArg->pMonitorSourceModeSetInterface->pfnReleaseModeInfo( 4052 4052 pRecommendMonitorModesArg->hMonitorSourceModeSet, pNewMonitorSourceModeInfo); … … 4269 4269 * need to return it back to the UMD (User Mode Drive) */ 4270 4270 pAllocInfo->SurfDesc = pAllocation->SurfDesc; 4271 /* success, just conti onue */4271 /* success, just continue */ 4272 4272 continue; 4273 4273 }
Note:
See TracChangeset
for help on using the changeset viewer.