Changeset 17665 in vbox
- Timestamp:
- Mar 11, 2009 9:18:07 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44155
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r17623 r17665 99 99 if (ppdev->bHGSMISupported) 100 100 { 101 /* In HGSMI mode the display driver decides about the size. */ 101 102 iDevice = info.iDevice; 102 u32DisplayInfoSize = 4096; /* In HGSMI mode the display driver decides about the size. */103 u32DisplayInfoSize = VBVA_DISPLAY_INFORMATION_SIZE; 103 104 } 104 105 #endif /* VBOX_WITH_HGSMI */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r17623 r17665 366 366 VBVAENABLE *pEnable = (VBVAENABLE *)p; 367 367 368 pEnable->u32Flags 369 pEnable->u32 Reserved = 0;368 pEnable->u32Flags = bEnable? VBVA_F_ENABLE: VBVA_F_DISABLE; 369 pEnable->u32Offset = ppdev->layout.offVBVABuffer; 370 370 371 371 vboxHGSMIBufferSubmit (ppdev, p); -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r17618 r17665 732 732 void VBoxComputeFrameBufferSizes (PDEVICE_EXTENSION PrimaryExtension) 733 733 { 734 #ifndef VBOX_WITH_HGSMI 734 735 ULONG ulAvailable = PrimaryExtension->u.primary.cbVRAM 735 736 - PrimaryExtension->u.primary.cbMiniportHeap 736 737 - VBOX_VIDEO_ADAPTER_INFORMATION_SIZE; 738 #else 739 ULONG ulAvailable = PrimaryExtension->u.primary.cbVRAM 740 - PrimaryExtension->u.primary.cbMiniportHeap 741 - VBVA_ADAPTER_INFORMATION_SIZE; 742 #endif /* VBOX_WITH_HGSMI */ 737 743 738 744 /* Size of a framebuffer. */ … … 748 754 ulAvailable - ulSize * PrimaryExtension->u.primary.cDisplays)); 749 755 756 #ifndef VBOX_WITH_HGSMI 750 757 if (ulSize > VBOX_VIDEO_DISPLAY_INFORMATION_SIZE) 751 758 { … … 758 765 ulSize = 0; 759 766 } 767 #endif /* !VBOX_WITH_HGSMI */ 760 768 761 769 /* Update the primary info. */ 762 770 PrimaryExtension->u.primary.ulMaxFrameBufferSize = ulSize; 771 #ifndef VBOX_WITH_HGSMI 763 772 PrimaryExtension->u.primary.ulDisplayInformationSize = VBOX_VIDEO_DISPLAY_INFORMATION_SIZE; 773 #endif /* !VBOX_WITH_HGSMI */ 764 774 765 775 /* Update the per extension info. */ … … 775 785 Extension->iDevice, ulFrameBufferOffset)); 776 786 787 #ifndef VBOX_WITH_HGSMI 777 788 ulFrameBufferOffset += PrimaryExtension->u.primary.ulMaxFrameBufferSize 778 789 + PrimaryExtension->u.primary.ulDisplayInformationSize; 790 #else 791 ulFrameBufferOffset += PrimaryExtension->u.primary.ulMaxFrameBufferSize; 792 #endif /* VBOX_WITH_HGSMI */ 779 793 780 794 Extension = Extension->pNext; … … 825 839 } 826 840 841 #ifndef VBOX_WITH_HGSMI 827 842 static void vboxQueryConf (PDEVICE_EXTENSION PrimaryExtension, uint32_t u32Index, ULONG *pulValue) 828 843 { … … 1106 1121 dprintf(("VBoxVideo::VBoxSetupDisplays: finished\n")); 1107 1122 } 1123 #endif /* VBOX_WITH_HGSMI */ 1108 1124 1109 1125 VP_STATUS VBoxVideoFindAdapter(IN PVOID HwDeviceExtension, … … 1692 1708 } 1693 1709 1710 #ifndef VBOX_WITH_HGSMI 1694 1711 case IOCTL_VIDEO_QUERY_DISPLAY_INFO: 1695 1712 { … … 1714 1731 break; 1715 1732 } 1733 #endif /* !VBOX_WITH_HGSMI */ 1716 1734 1717 1735 case IOCTL_VIDEO_VBVA_ENABLE: … … 2049 2067 2050 2068 MapInformation->VideoRamBase = RequestedAddress->RequestedVirtualAddress; 2069 #ifndef VBOX_WITH_HGSMI 2051 2070 MapInformation->VideoRamLength = DeviceExtension->pPrimary->u.primary.ulMaxFrameBufferSize 2052 2071 + DeviceExtension->pPrimary->u.primary.ulDisplayInformationSize; 2072 #else 2073 MapInformation->VideoRamLength = DeviceExtension->pPrimary->u.primary.ulMaxFrameBufferSize; 2074 #endif /* VBOX_WITH_HGSMI */ 2053 2075 2054 2076 Status = VideoPortMapMemory(DeviceExtension, FrameBuffer, -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r17583 r17665 117 117 ULONG ulMaxFrameBufferSize; /* The size of the VRAM allocated for the a single framebuffer. */ 118 118 119 #ifndef VBOX_WITH_HGSMI 119 120 ULONG ulDisplayInformationSize; /* The size of the Display information, which is at offset: 120 121 * ulFrameBufferOffset + ulMaxFrameBufferSize. 121 122 */ 123 #endif /* !VBOX_WITH_HGSMI */ 122 124 123 125 #ifdef VBOX_WITH_HGSMI
Note:
See TracChangeset
for help on using the changeset viewer.