Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
GRAPHICS DEVICE CLUSTERING WITH PCI-EXPRESS
Document Type and Number:
WIPO Patent Application WO/2005/091774
Kind Code:
A2
Abstract:
A bridge associated with a broadcast aperture facilitates the transfer of rendering commands and data between a processor and multiple graphics devices. The bridge receives data written by the processor to the broadcast aperture and forwards it to multiple graphics devices, eliminating the need for the processor to perform duplicative(?) write operations. During system initialization, a broadcast aperture is allocated to the bridge in address space based on an aperture size value set using a system configuration utility and stored in system configuration memory. A graphics driver activates the broadcast aperture by sending unicast aperture parameters associated with the multiple graphics devices to the bridge via a bridge driver. Upon activating the broadcast aperture, multiple graphics devices can be operated in parallel to improve rendering performance. Parallel rendering techniques include split-frame, alternate frame, and combined split- and alternate frame rendering.

Inventors:
DIARD FRANCK R (US)
REED DAVID G (US)
HICOK GARY D (US)
COX MICHAEL BRIAN (US)
Application Number:
PCT/US2005/002980
Publication Date:
October 06, 2005
Filing Date:
February 02, 2005
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NVIDIA CORP (US)
DIARD FRANCK R (US)
REED DAVID G (US)
HICOK GARY D (US)
COX MICHAEL BRIAN (US)
International Classes:
G06F3/14; G06F15/16; G06T1/20; G06T15/00; G09G5/36
Foreign References:
US6789154B12004-09-07
US5790849A1998-08-04
US20040181806A12004-09-16
US6078339A2000-06-20
Attorney, Agent or Firm:
Cretsinger, Cathy E. (Two Embarcadero Center 8th Floo, San Francisco California, US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:
1. A method of configuring a broadcast aperture for transferring data between a processor and a plurality of graphics devices, the method comprising: receiving allocation data for a broadcast aperture in a physical address space; configuring a bridge with a first set of configuration data, wherein the bridge is adapted to facilitate transferring data between a processor and a plurality of graphics devices; configuring the bridge with a second set of configuration data, thereby activating the broadcast aperture.
2. The method of claim 1 , wherein configuring a bridge with a first set of configuration data further comprises retrieving at least a portion of the first set of configuration data including a broadcast aperature size from a system configuration memory.
3. The method of claim 2, wherein the broadcast aperture size is set by a user via a BIOS configuration utility.
4. The method of claim 1 , wherein configuring the bridge with a second set of configuration data comprises receiving at least a portion of the second set of configuration data from a graphics driver associated with the plurality of graphics devices.
5. The method of claim 1 , wherein at least one of the plurality of graphics devices includes a plurality of graphics processing units.
6. The method of claim 1 , wherein the processor executes a graphics driver adapted to communicate a set of rendering commands and rendering data to the plurality of graphics devices via the broadcast aperture.
7. The method of claim 6, wherein the set of rendering commands directs a first portion of the plurality of graphics devices to render a first portion of a frame and directs a second portion of the plurality of graphics devices to render a second portion of the frame.
8. The method of claim 6, wherein the set ofrendering commands directs a first portion of the plurality of graphics devices to render a first frame and directs a second portion of the plurality of graphics devices to render a second frame.
9. The method of claim 6, wherein the set ofrendering commands direct a first portion of the plurality of graphics devices to transfer rendered image data comprising at least a portion of a frame to one of the plurality of graphics devices connected with a display device.
10. The method of claim 9, wherein the first portion of the plurality of graphics devices is adapted to transfer rendered image data to the one of the plurality of graphics devices connected with a display device via a digital video connection.
11. The method of claim 9, wherein the first portion of the plurality of graphics devices is adapted to transfer rendered image data to the one of the plurality of graphics devices connected with a display device via a graphics bus using a blit operation.
12. The method of claim 11 , wherein the rendered image data includes an antialiased version of at least a portion of a frame.
13. The method of claim 11 , wherein the rendered image data is associated with a complex portion of a frame.
14. An apparatus for transferring data to a plurality of graphics devices, the apparatus comprising: a graphics device interface adapted to communicate a set of data with each of the plurality of graphics devices; and a graphics device broadcast unit responsive to the set of data received via a broadcast aperature, wherein in response to receiving the set of data via the broadcast aperature, the graphics device broadcast unit is adapted to communicate a copy of the set of data with each of the plurality of graphics devices.
15. The apparatus of claim 14, wherein the graphics device broadcast unit is adapted to receive the set of data from a processor via the broadcast aperature.
16. The apparatus of claim 14, further including a direct memory access transfer unit adapted to retrieve the set of data from a memory and to communicate the set of data to the graphics device broadcast unit via the broadcast aperature.
17. The apparatus of claim 14, wherein the graphics device broadcast unit includes a broadcast aperature base address register adapted to store a memory address associated with the broadcast aperature.
18. The apparatus of claim 17, further adapted to receive the memory address associated with the broadcast aperature from a bridge driver.
19. The apparatus of claim 14, wherein the graphics device broadcast unit includes a broadcast aperature size register adapted to store a size value associated with the broadcast aperature.
20. The apparatus of claim 19, further adapted to receive the size value associated with the broadcast aperature from a bridge driver, wherein the bridge driver is adapted to retrieve the size value associated with the broadcast aperature from a system configuration memory.
21. The apparatus of claim 14, wherein the graphics device broadcast unit includes a plurality of unicast aperature base address registers corresponding with the plurality of graphics devices, each unicast aperature base address register adapted to store a memory address associated with a unicast aperature of one of the plurality of graphics devices; and wherein the graphics device interface is adapted to communicate a copy of the set of data with the each of plurality of graphics devices via its associated unicast aperature.
22. The apparatus of claim 21 , further adapted to receive the memory addresses associated with the unicast aperatures of the plurality of graphics devices from a graphics driver via a bridge driver.
Description:
GRAPHICS DEVICE CLUSTERING WITH PCI-EXPRESS

CROSS-REFERENCES TO RELATED APPLICATIONS [0001] This application is related to the following patent applications, the disclosure of which are incorporated by reference herein for all purposes: "Adaptive Load Balancing in a Multi-Processor Graphics Processing System," U.S. Patent Application No. 10/642,905, filed August 18, 2003; "Programming Multiple Chips from a Command Buffer," U.S. Patent Application No. 10/639,893, filed August 12, 2003; and "Private Addressing in a Multi- Processor Graphics Processing System," U.S. Patent Application No. 10/643,072, filed August 18, 2003.

BACKGROUND OF THE INVENTION [0002] The present invention relates to the field of computer graphics. Many computer graphic images are created by mathematically modeling the interaction of light with a three dimensional scene from a given viewpoint. This process, called rendering, generates a two- dimensional image of the scene from the given viewpoint, and is analogous to taking a photograph of a real- world scene.

[0003] As the demand for computer graphics, and in particular for real-time computer graphics, has increased, computer systems with graphics processing subsystems adapted to accelerate the rendering process have become widespread. In these computer systems, the rendering process is divided between a computer's general purpose central processing unit (CPU) and the graphics processing subsystem. Typically, the CPU performs high level operations, such as determining the position, motion, and collision of objects in a given scene. From these high level operations, the CPU generates a set of rendering commands and data defining the desired rendered image or images. For example, rendering commands and data can define scene geometry, lighting, shading, texturing, motion, and/or camera parameters for a scene. The graphics processing subsystem creates one or more rendered images from the set of rendering commands and data.

[0004] To maximize rendering performance, the graphics processing subsystem may include two or more graphics processing units (GPUs) operating in parallel. The graphics processing units can divide the rendering workload in a number of different ways. For example, different portions of an image can be rendered in parallel by different GPUs. The portions are then combined to produce a complete rendered image. In another example parallel rendering scheme, each GPU renders one image in a sequence of images.

[0005] Transferring rendering commands and data with a CPU to two or more GPUs is one difficulty arising from parallel rendering schemes, hi many parallel rendering schemes, the same rendering commands and data need to be distributed to all of the GPUs; however, the CPU typically communicates rendering commands and data via a CPU bus to each GPU separately. Thus, the bandwidth required to operate multiple GPUs scales linearly with the number of GPUs. Because the bandwidth of the CPU bus is limited, a system with two or more GPUs operating in parallel will saturate the CPU bus. hi these situations, the CPU bus is the limiting factor in overall graphics performance, and additional GPUs will not provide any performance improvement. Furthermore, having the CPU communicate the same rendering commands and data with each GPU separately wastes CPU cycles; for example, requiring the CPU to write the same rendering commands and data several times.

[0006] Therefore, it is desirable to have an efficient system and method for transferring rendering commands and data between the CPU and multiple graphics processing units operating in parallel. It is further desirable to eliminate the CPU bus as a potential graphics performance bottleneck in operating multiple graphics processing units. It is also desirable to reduce the number of wasteful CPU cycles needed to communicate with multiple graphics processing units in the graphics processing subsystem.

BRIEF SUMMARY OF THE INVENTION [0007] The invention includes a bridge associated with a broadcast aperture for facilitating the transfer of rendering commands and data between a processor and multiple graphics devices. The bridge receives data written by the processor to the broadcast aperture and forwards it to multiple graphics devices, eliminating the need for the processor to perform multiple write operations and possibly saturating the processor bus. During system initialization, a broadcast aperture is allocated to the bridge in address space based on an aperture size value set using a system configuration utility and stored in system configuration memory. A graphics driver activates the broadcast aperture by sending unicast aperture parameters associated with the multiple graphics devices to the bridge via a bridge driver. Upon activating the broadcast aperture, multiple graphics devices can be operated in parallel to improve rendering performance. Parallel rendering techniques include split-frame, alternate frame, and combined split- and alternate frame rendering.

[0008] An embodiment of the invention configures a broadcast aperture adapted to transfer data between a processor and a plurality of graphics devices by receiving allocation data for a broadcast aperture in a physical address space. A bridge is configured with a first set of configuration data. The bridge is adapted to facilitate transferring data between a processor and a plurality of graphics devices. A bridge is further configured with a second set of configuration data, thereby activating the broadcast aperture. In an additional embodiment, at least one of the plurality of graphics devices includes a plurality of graphics processing units.

[0009] In another embodiment, configuring a bridge with a first set of configuration data includes retrieving at least a portion of the first set of configuration data from a system configuration memory, hi one implementation, this portion of the configuration data includes a broadcast aperture size. The broadcast aperture size may be set by a user via a BIOS configuration utility, hi a further embodiment, the first set of configuration data is stored in a set of registers included in the bridge.

[0010] hi yet another embodiment, configuring the bridge with a second set of configuration data includes receiving at least a portion of the second set of configuration data from a graphics driver associated with the plurality of graphics devices. In a further embodiment, the portion of the second set of configuration data includes a set of physical base addresses for a set of unicast apertures. Each physical base address is associated with one of the plurality of graphics devices. The second set of configuration data is stored in a set of registers included in the bridge.

[0011] In yet a further embodiment, the processor executes a graphics driver adapted to communicate a set of rendering commands and rendering data to the plurality of graphics devices via the broadcast aperture. In one implementation, the set of rendering commands directs a first portion of the plurality of graphics devices to render a first portion of a frame and directs a second portion of the plurality of graphics devices to render a second portion of the frame. In another embodiment, the set of rendering commands directs a first portion of the plurality of graphics devices to render a first frame and directs a second portion of the plurality of graphics devices to render a second frame. In an implementation, the set of rendering commands direct a first portion of the plurality of graphics devices to transfer rendered image data comprising at least a portion of a frame to one of the plurality of graphics devices connected with a display device. The first portion of the plurality of graphics devices may be adapted to transfer rendered image data to the one of the plurality of graphics devices connected with a display device via a graphics bus using a blit operation. In another implementation, the first portion of the plurality of graphics devices is adapted to transfer rendered image data to the one of the plurality of graphics devices connected with a display device via a digital video connection. The rendered image data may include an anti- aliased version of at least a portion of a frame. Additionally, the rendered image data may be associated with a complex portion of a frame.

BRIEF DESCRIPTION OF THE DRAWINGS [0012] The invention will be described with reference to the drawings, in which:

Figure 1 is a block diagram of a computer system suitable for practicing an embodiment of the invention;

Figure 2 is a block diagram of a computer system including two graphics processing subsystems operating in parallel.

Figure 3 illustrates a system for transferring data to and from two or more graphics processing subsystems in parallel according to an embodiment of the invention;

Figure 4 illustrates a bridge for transferring data to and from two or more graphics processing subsystems in parallel according to an embodiment of the invention;

Figure 5 illustrates a system for configuring a bridge for transferring data to and from two or more graphics processing subsystems in parallel according to an embodiment of the invention;

Figures 6A and 6B illustrate two different parallel rendering techniques that can be implemented with an embodiment of the invention;

Figures 7A and 7B illustrate implementations of parallel rendering techniques according to an embodiment of the invention; and

Figure 8 illustrates a cascade implementation having four graphics processing units operating in parallel according to an embodiment of the invention. DETAILED DESCRIPTION OF THE INVENTION [0013] Figure 1 is a block diagram of a computer system 100, such as a personal computer, video game console, personal digital assistant, or other digital device, suitable for practicing an embodiment of the invention. Computer system 100 includes a central processing unit (CPU) 105 for running software applications and optionally an operating system. In an embodiment, CPU 105 is actually several separate central processing units operating in parallel. Memory 110 stores applications and data for use by the CPU 105. Storage 115 provides non-volatile storage for applications and data and may include fixed disk drives, removable disk drives, flash memory devices, and CD-ROM, DVD-ROM, or other optical storage devices. User input devices 120 communicate user inputs from one or more users to the computer system 100 and may include keyboards, mice, joysticks, touch screens, and/or microphones. Network interface 125 allows computer system 100 to communicate with other computer systems via an electronic communications network, and may include wired or wireless communication over local area networks and wide area networks such as the Internet. The components of computer system 100, including CPU 105, memory 110, data storage 115, user input devices 120, and network interface 125, are connected via one or more data buses 160. Examples of data buses include ISA, PCI, AGP, PCI, PCI-X (also known as 3GIO), and HyperTransport data buses.

[0014] A graphics subsystem 130 is further connected with data bus 160 and the components of the computer system 100. The graphics subsystem 130 includes a graphics processing unit (GPU) 135 and graphics memory. Graphics memory includes a display memory 140 (e.g., a frame buffer) used for storing pixel data for each pixel of an output image. Pixel data can be provided to display memory 140 directly from the CPU 105. Alternatively, CPU 105 provides the GPU 135 with data and/or commands defining the desired output images, from which the GPU 135 generates the pixel data of one or more output images. The data and/or commands defining the desired output images is stored in additional memory 145. In an embodiment, the GPU 135 generates pixel data for output images from rendering commands and data defining the geometry, lighting, shading, texturing, motion, and/or camera parameters for a scene.

[0015] In another embodiment, display memory 140 and/or additional memory 145 are part of memory 110 and is shared with the CPU 105. Alternatively, display memory 140 and/or additional memory 145 is one or more separate memories provided for the exclusive use of the graphics subsystem 130. The graphics subsystem 130 periodically outputs pixel data for an image from display memory 218 and displayed on display device 150. Display device 150 is any device capable of displaying visual information in response to a signal from the computer system 100, including CRT, LCD, plasma, and OLED displays. Computer system 100 can provide the display device 150 with an analog or digital signal.

[0016] In a further embodiment, graphics processing subsystem 130 includes one or more additional GPUs 155, similar to GPU 135. In an even further embodiment, graphics processing subsystem 130 includes a graphics coprocessor 165. Graphics processing coprocessor 165 and additional GPUs 155 are adapted to operate in parallel with GPU 135. Additional GPUs 155 generate pixel data for output images from rendering commands, similar to GPU 135. Additional GPUs 155 can operate in conjunction with GPU 135 to simultaneously generate pixel data for different portions of an output image, or to simultaneously generate pixel data for different output images. In an embodiment, graphics coprocessor 165 performs rendering related tasks such as geometry transformation, shader computations, and backface culling operations for GPU 135 and/or additional GPUs 155.

[0017] Additional GPUs 155 can be located on the same circuit board as GPU 135 and sharing a connection with GPU 135 to data bus 160, or can be located on additional circuit boards separately connected with data bus 160. Additional GPUs 155 can also be integrated into the same module or chip package as GPU 135. Additional GPUs 155 can have their own display and additional memory, similar to display memory 140 and additional memory 145, or can share memories 140 and 145 with GPU 135. In an embodiment, the graphics coprocessor 165 is integrated with the computer system chipset (not shown), such as with the Northbridge or Southbridge chip used to control the data bus 160.

[0018] Figure 2 is a block diagram of a computer system 200 including two graphics processing subsystems operating in parallel. CPU 205 is connected via bus 210 with graphics devices 215 and 220. Bus 210 may be comprised of multiple data buses forming a data path between the CPU 205 and graphics devices 215 and 220. An embodiment of bus 210 includes a CPU bus connected between the CPU 205 and a bus controller (not shown), and a graphics bus, such as PCI-X, connected between the bus controller and graphics devices 215 and 220.

[0019] Graphics device 215 includes a graphics processing unit,' referred to as a master GPU 225. The master GPU 225 serves as the primary graphics device recognized by the system 200, and in an embodiment can be connected with a primary display device (not shown). The master GPU 225 receives rendering commands and data 230 from the CPU 205. hi an embodiment, the rendering commands and data 230 are stored in additional memory 145? (as defined in Figure 1) associated with the master GPU 225. Ia an alternate embodiment, rendering commands and data 230 are stored in system memory (as in memory 110 in Figure 1) and retrieved as needed by master GPU 225. In response to the rendering commands and data 230, master GPU 225 performs various rendering operations. Included in these rendering operations are texture mapping operations, for which the ma-ster GPU 225 accesses texture map 235. In an embodiment, texture map 235 is stored in additional memory 145? associated with master GPU 225 to facilitate rapid memory access.

[0020] Graphics device 220 is similar to graphics device 215, having a slave GPU 240, a set of rendering commands and data 245, and a texture map 250. In an embodiment, the slave GPU 240 is not recognized by the system 200 as a display device. Instead, slave GPU 240 is operated in parallel with master GPU 225 to improve the graphics performance of the primary graphics device. In this parallel processing mode of operation, slave G-PU 240 is not connected with a display device (not shown) directly; instead, its output is sent to graphics device 215 to be output. In a further embodiment, an alternate mode of operation of system 200 recognizes graphics device 220 as an auxiliary display device, hi this alternate mode of operation, the output of graphics device 220 goes to an auxiliary display. The alternate mode of operation allows system 200 to utilize two independent display devices.

[0021] In the parallel processing mode of operation, graphics devices 215 and 220 will typically require much of the same rendering commands and data and texture maps. For example, if graphics devices 215 and 220 are rendering different portions of the same surface, both graphics devices will need to access the same texture map. Additionally, the same set of rendering commands and data, including rendering commands specific to only one of graphics devices, can be sent to both graphics devices. A set device mask (SDM) command included in the set of commands will instruct the other graphics device to skip over the rendering commands inapplicable to that device. The operation and application of SDM commands is described in related patent application entitled Programming Multiple Chips from a Command Buffer," U.S. Patent Application No. 10/639,893, filed August 12, 2003..

[0022] In prior implementations of parallel processing modes of operation, the CPU 205 would be required to transfer copies of the rendering commands and data and texture maps to graphics devices 215 and 220 in two separate operations. This implementation wastes CPU cycles by requiring data to be transferred twice. More importantly, this prior implementation will often saturate the capacity of the bus 210 with data transfers. For example, a typical Intel Pentium 4 CPU bus has a bandwidth of approximately 3.2 gigabytes (GB) per second. A PCI-X graphics bus used to connect an embodiment of system 200 with graphics devices 215 and 220 allocates bandwidth of 1.5 GB per second to each graphics device. Thus, if graphics devices 215 and 220 both using the maximum bandwidth, then they will require from the CPU 205 a bandwidth of 3 GB per second, essentially saturating the CPU bus. Furthermore, adding additional graphics devices will not improve performance substantially because the CPU bus will be unable to transfer data fast enough to support the additional graphics devices.

[0023] Figure 3 illustrates a system 300 for transferring data to and from two graphics processing subsystems in parallel according to an embodiment of the invention. System 300 uses memory-mapped I/O to communicate rendering commands and data between the CPU 305 and the graphics devices 310 and 315. In memory-mapped I/O, commands and data written to a predetermined range of memory addresses are communicated to the graphics devices 310 and 315, and conversely, data from the graphics devices 310 and 315 can read from the predetermined range of memory addresses by the CPU 305.

[0024] Memory map 320 graphically represents the range of available memory addresses in system 300. Memory map 320 contains several apertures, or ranges of memory addresses used to communicate with the graphics devices 310 and 315. Unicast apertures 325 and 330 are adapted to distribute commands and data to graphics device 310 and 315, respectively. Commands and data written to a given unicast aperture will only be distributed to the graphics device associated with that unicast aperture. Similarly, data read from a unicast aperture will retrieve data from the associated graphics device.

[0025] hi addition to the unicast apertures 325 and 330, the memory map 320 also includes broadcast aperture 335. Broadcast aperture 335 enables the CPU 305 to communicate with all of the graphics devices in the system 300 simultaneously. Commands and data written to the broadcast aperture 335 are distributed to graphics devices 310 and 315, as well as any other graphics devices in the system 300. In an embodiment, data read from the broadcast aperture 335 will retrieve data from the graphics device designated as the master or primary graphics device. [0026] An embodiment of the invention includes a bridge adapted to copy data written to the broadcast aperture 335 to each graphics device in the system 300. Figure 4 illustrates a bridge for transferring data to and from two or more graphics processing subsystems in parallel according to an embodiment of the invention. System 400 includes bridge 405 connected with CPU 410 via a CPU bus 415 and with two graphics devices 420 and 430 via graphics bus 425. In an embodiment, bridge 405 is integrated into a component of the core logic of the system 400, such as in a Northbridge or Southbridge system controller.

[0027] Bridge 405 includes four registers 440, 445, 450, and 455 for storing bridge configuration information. Broadcast aperture base register 440 stores the physical memory address for the broadcast aperture. In an embodiment, the physical memory address of the broadcast aperture is determined by the system BIOS during system startup. Broadcast aperture size register 445 stores the size of the broadcast aperture, hi an embodiment, a user designates the size of the broadcast aperture using the computer system BIOS configuration utility. For example, the BIOS configuration utility can include a menu option for specifying the broadcast aperture size, such 128, 256, or 512 megabytes. The size of the broadcast aperture is stored in the computer system CMOS memory and can be retrieved during system initialization and stored in register 445.

[0028] In a further embodiment, the menu option allows users to disable the broadcast aperture in systems using multiple graphics devices to drive multiple independent displays and not needing a parallel processing mode of operation. Disabling the broadcast aperture reduces the amount of address space consumed for memory-mapped I/O, potentially improving system performance.

[0029] Base address registers 0 and 1 (BARO and BARl, respectively) 450 and 455 store the physical memory addresses for the unicast apertures associated with graphics devices 420 and 430, respectively. In an embodiment, discussed in detail below, the base address registers 450 and 455 are configured by a graphics driver communicating with a bridge driver, hi a further embodiment, bridge 405 includes additional base address registers, which allows for the inclusion of additional graphics devices.

[0030] Upon receiving a memory access request 465 from the CPU 410, bridge 405 compares the memory address included in the memory access request 465 with the range of physical memory addresses defined by the values of register 440 and 445. If the memory address is within the broadcast aperture, for example between the value of the broadcast base register 440 and the sum of the value of" the broadcast base register 440 and the broadcast size register 445, the bridge initiates a memory broadcast operation. In a further embodiment, a mask value associated with the broadcast aperture is used to prevent memory access requests from overwriting reserved portions of the memory associated with each graphics device.

[0031] In another embodiment, the bridge 405 is interfaced with a direct memory access (DMA) controller (not shown). In this embodiment, the CPU 410 instructs the DMA controller to transfer data to the broadcast aperture. The DMA controller retrieves the data from a source memory address and Λvrites the data to a destination memory address in accordance with the instructions provided by the CPU 410. The bridge 405 examines the destination address in the DMA request to determine whether the data is within the broadcast aperture, as described above.

[0032] For a memory address falling within the broadcast aperture, an internal data bus and broadcast logic elements 460 strip off the high order address bits of the memory address and forms two unicast memory access requests. Each memory access request substitutes the unicast physical memory address values in registers 450 or 455 for the removed address bits. In a further embodiment, bridge 405 allows for more than 32 address bits, for example enabling a 48-bit or a 64-bit addressing scheme. The greater number of address bits minimizes the effect of the consumption of address space by the broadcast aperture. In an implementation of this embodiment, trie base address registers 450 and 455 include only the high-order address bits for a unicast physical memory address, such as bits 47-16. By reserving the lower 16 bits of the memory address, this ensures that the unicast physical memory address is aligned with 64KB values, as required by many typical CPUs.

[0033] The two unicast memory requests are then communicated to their respective graphics devices 420 and 425 via the graphics bus 425. In an embodiment, graphics bus 425 includes two independent communication channels 428 and 432, allowing the unicast memory access requests to be issued in parallel. Alternatively, graphics bus 425 includes a single communication channel and the bridge issues the unicast memory access request in series. Regardless of the implementa.tion of graphics bus 425 and the number of graphics devices, system 400 only requires the CPU 410 to issue a single memory access request to communicate with all of the graphics devices. This prevents multiple graphics devices from saturating the CPU bus 415 and avoids wasting CPU cycles to execute redundant memory transfers. [0034] In order for bridge 405 to function properly, registers 440, 445, 450, and 455 must be properly configured. Figure 5 illustrates a system 500 for configuring a bridge for transferring data to and from two or more graphics processing subsystems in parallel according to an embodiment of the invention. During system 500 initialization, the system BIOS detects bridge 505 and graphics device 510 and 515. The BIOS configures the physical memory address space 520 to allocate broadcast aperture 522 for bridge 505 and unicast apertures 524 and 526 for graphics devices 510 and 515, respectively, hi an embodiment, the broadcast base address is determined by the BIOS and the broadcast aperture size is determined from configuration information stored in the system 500 CMOS.

[0035] Following system initialization, the operating system, such as Microsoft Windows, is loaded. During the initialization of the operating system, the apertures defined in the physical memory address space 520 are mapped to a virtual memory address space 530 defined by the operating system, hi the virtual memory address space 530, virtual broadcast aperture 532 corresponds to physical broadcast aperture 522 and virtual unicast apertures 534 and 536 correspond to physical unicast apertures 524 and 526, respectively.

[0036] Following the operating system initialization, the space for the broadcast apertures in both the physical address space 520 and the virtual address space 530 has been allocated by the system. However, the configuration registers of the bridge 505 ' do not contain the appropriate values, and hence the broadcast aperture is non-functional. To enable the broadcast aperture, a bridge driver 550 is loaded by the operating system. Bridge driver 550 automatically retrieves the broadcast aperture base address and broadcast aperture size values from the system and configures the appropriate registers of the bridge 505.

[0037] hi an embodiment, the parallel mode of operation for multiple graphics devices is disabled by default. This allows multiple graphics devices to drive different displays if desired by the user. If a user (or an application) desires increased graphics performance on a single display, the user or application signals to the graphics driver 540 to enable the parallel mode of operation. In response to this request, the graphics driver 540 retrieves the unicast aperture base address values for the graphics devices in the system. In an embodiment, these values are the physical address values for the unicast apertures 524 and 526 in the physical address space 520. The graphics driver 540 communicates these base address values 545 to the bridge driver 550 using an operating system communication channel, such as IOCTL. The bridge driver 550, upon receiving the base address values 545 for the unicast apertures 524 and 526, communicates these values to bridge 505, thereby configuring the values of the " BARO and BARl registers of bridge 550 and activating the broadcast aperture. Similarly, upon request from the graphics driver 540, the bridge driver 550 can deactivate the broadcast aperture.

[0038] In an embodiment, the bridge driver 550 is only used to configure the bridge 505 and activate the broadcast aperture. Once the broadcast aperture is activated, graphics driver 540 can communicate directly 560 with virtual broadcast aperture 532, which in turn is mapped 565 by the operating system to the physical broadcast aperture 522. The physical broadcast aperture 522 then directs communications 570 to the bridge 505, which in turn issues separate communications to graphics devices 510 and 515 through unicast apertures 524 and 526, respectively.

[0039] Figures 6A and 6B illustrate two different parallel rendering techniques that can be implemented with an embodiment of the invention. Figure 6A illustrates a split frame rendering technique, in which different portions of frame 600 are assigned to different graphics devices. For example, portion 605 is assigned to a first graphics device and portion 610 is assigned to a second graphics device. Portions 605 and 610 are rendered in parallel on the first and second graphics devices, respectively, and then combined into a final output image.

[0040] Figure 6B illustrates an alternate frame rendering technique, in which successive frames are assigned to different graphics devices. For example, frame 650 is assigned to a first graphics device and frame 655 is assigned to a second graphics device. The first and second graphics devices render their respective frames in parallel, with the resulting rendered frames being displayed successively.

[0041] Figures 7A and 7B illustrate implementations of parallel rendering techniques according to an embodiment of the invention. Figure 7A illustrates an implementation 700 having a master graphics device 705 connected to a display device 715 and a slave graphics device 710. Master and slave graphics devices 705 and 710 are connected with the rest of the computer system via graphics bus 720. In this implementation, the rendered image from slave graphics device 710, in the case of alternate frame rendering, or a portion of a rendered image, in the case of split frame rendering, is communicated via a digital video connection 725 to master graphics device 705. Master graphics device 705 outputs the image (or portion thereof) received via the digital video connection 725 to display device 715. In the case of split frame rendering, the master graphics device 705 combines the received image with a portion of the image rendered by master graphics device 705.

[0042] Figure 7B illustrates an implementation 750 having a master graphics device 755 connected with a display device 760 and additional slave graphics devices 765, 770, and 775. Graphics devices 755, 765, 770, and 775 operate in parallel to render different portions of an output image or different output images and are connected with the rest of the computer system and with each other via graphics bus 780. Following the rendering of output images or the portions thereof, implementation 750 uses blit commands to copy output images or portions thereof from the slave graphics devices 765, 770, and 775 to display memory associated with master graphics device 755 via the graphics bus 780. The copied images then displayed by master graphics device 755 on display device 760. In the case of split frame rendering, the master graphics device 755 combines the image portions from slave graphics devices 765, 770, and 775 with a portion of the image rendered by master graphics device 755.

[0043] In a further embodiment, split frame rendering balances the load assigned to each graphics device by dividing the output image into portions having a size (e.g. a number of pixels) inversely proportional to their rendering complexity. To minimize the amount of data transmitted over graphics bus 780 by blit operations, an embodiment renders the most complex portions, which are the smallest in size, with the slave graphics devices 765, 770, and 775. As these portions are the smallest in size, the amount of data needed to be moved via graphics bus 780 is minimized. In another embodiment, anti-aliasing is applied locally by each graphics device to its respective rendered image or portion thereof prior to transferring the rendered image to the master graphics device 755. This embodiment reduces the number of pixels, and hence the amount of data, sent over graphics bus 780.

[0044] Figure 8 illustrates a cascade implementation 800 having four graphics processing units operating in parallel according to an embodiment of the invention. Implementation 800 includes a CPU 805 connected with a bridge 810 via a CPU bus. As discussed above, bridge 810 facilitates a broadcast aperture enabling data transfers to multiple graphics devices. Here, graphics devices 820 and 825 are connected via graphics bus 815 with bridge 810. Graphics device 820 includes an internal bridge 830 adapted to transfer data to graphics processing units 840 and 845. Graphics device 825 includes similar components. The internal bridges in graphics devices 820 and 825 hide the dual graphics processing units, so that from the perspective of bridge 810, graphics devices 820 and 825 each appear to have only a single graphics processing unit.

[0045] Implementation 800 uses a combination of split frame rendering and alternate frame rendering to improve rendering performance. A first frame is rendered by graphics device 820 and a second frame is rendered by graphics device 825. Within graphics device 820, graphics processing units 840 and 845 operate in parallel to render different portions of the assigned frame. Similarly, the graphics processing units of graphics device 825 operate in parallel to render different portions of the second frame. Rendered frames are displayed as described in implementations 700 or 750, with either graphics device 820 or 825 serving as the master graphics device connected with a display device.

[0046] This invention provides an efficient system for transferring data to multiple graphics devices without unduly consuming system resources. In a typical embodiment, only a single memory aperture is needed to transfer rendering commands and data to any number of graphics devices. Although the invention has been discussed with respect to specific examples and embodiments thereof, these are merely illustrative, and not restrictive, of the invention. Though the invention is discussed with reference to several parallel rendering schemes, the invention can be used in any application where different hardware devices are used to render images. For example, some content may be' encrypted for security or for digital rights management. A decryption-capable graphics device can be programmed to render the encrypted content, while other graphics devices in the system render the non- encrypted content. Thus, the scope of the invention is to be determined solely by the claims.