Video RAM: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
(Created page with "Video RAM is a type of memory which is used for video displays. BIOS maps VRAM to 0xB8000 for color text modes, to 0xB0000 for monochrome text modes and to 0xA0000 for VGA col...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Stub}}
Video RAM is a type of memory which is used for video displays. BIOS maps VRAM to 0xB8000 for color text modes, to 0xB0000 for monochrome text modes and to 0xA0000 for VGA color modes. In VESA defined modes, VRAM can be accessed using a Linear Frame Buffer (by setting bit 14 of corresponding VBE mode). Writing to VRAM changes characters or pixels displayed on the screen.

Video RAM or VRAM is the common name given to dedicated memory that is located on the graphics hardware.

Most plug-in video cards have memory on board, which is continuously scanned and outputted over the graphics cable. By detaching it from the system bus, this process does not interrupt the performance of other computation tasks. In some cases{{which}}, this RAM can be used as system memory even though accessing it is significantly slower, but it can also be used as dedicated caching space like the disk cache.

Video RAM is typically exposed through the 128KB at <code>0x000A0000-0x000BFFFF</code>, as well as a large secondary region typically dictated by a corresponding [[PCI]] range. This first block imitates [[VGA Hardware|a VGA]] regarding where the reads and writes appear in the memory, the large region typically maps 1:1 to the actual VRAM on the hardware. If these regions are actually accessible depends on the configuration, and both ways of accessing might require [[How_do_I_set_a_graphics_mode|setting the appropriate video mode]] using the BIOS first - typically [[VBE|a LFB mode]]. A native driver can often enable or disable the entire region without depending on specific video modes, or it can be permanently enabled.

In various low-end systems, graphics hardware actually uses the same memory as the rest of the system, leading to the presence of shared memory. On x86, shared memory is typically represented as a loss in system memory and added dedicated video memory, including fake PCI BARs. On other architectures you might have free choice in which areas of RAM to use for your graphics.
[[Category:Video]]

Latest revision as of 05:37, 10 September 2018

This page is a stub.
You can help the wiki by accurately adding more contents to it.

Video RAM or VRAM is the common name given to dedicated memory that is located on the graphics hardware.

Most plug-in video cards have memory on board, which is continuously scanned and outputted over the graphics cable. By detaching it from the system bus, this process does not interrupt the performance of other computation tasks. In some cases[which?], this RAM can be used as system memory even though accessing it is significantly slower, but it can also be used as dedicated caching space like the disk cache.

Video RAM is typically exposed through the 128KB at 0x000A0000-0x000BFFFF, as well as a large secondary region typically dictated by a corresponding PCI range. This first block imitates a VGA regarding where the reads and writes appear in the memory, the large region typically maps 1:1 to the actual VRAM on the hardware. If these regions are actually accessible depends on the configuration, and both ways of accessing might require setting the appropriate video mode using the BIOS first - typically a LFB mode. A native driver can often enable or disable the entire region without depending on specific video modes, or it can be permanently enabled.

In various low-end systems, graphics hardware actually uses the same memory as the rest of the system, leading to the presence of shared memory. On x86, shared memory is typically represented as a loss in system memory and added dedicated video memory, including fake PCI BARs. On other architectures you might have free choice in which areas of RAM to use for your graphics.