1. Field of the Invention
Embodiments of the present invention relate generally to quality assurance techniques and more specifically to a method and system for automatically verifying the quality of multimedia rendering.
2. Description of the Related Art
Unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.
The robustness of a multimedia system depends in part on how rigorously and extensively the system is tested. However, as the multimedia system and the applications running on the system become increasingly complex, verifying these complex system and applications in a comprehensive and yet timely manner becomes more and more challenging. To illustrate,
Although some prior art attempts have been made to automate the verification process discussed above, such efforts still fall short, especially for handling highly interactive multimedia applications, such as games.
Despite the automation, there are still several drawbacks associated with this verification process. One, due to the limited capacity of the storage device 138, only a limited amount of verification results generated by the process can be stored and retrieved for comparison. Consequently, instead of verifying an entire graphics application, only a few representative frames of data from the graphics application are tested. This lack of extensive testing of the graphics application renders the application less stable. Two, the automated verification process is unable to conduct multiple test runs, such as run (time1) and run (time2), under identical testing conditions and potentially leading to meaningless verifications results. For instance, suppose a newly developed test driver 144 is to be tested against the baseline driver 134 on how a ball 152 bounces along a path 154 in a display screen 150 shown in
Moreover, even if the testing conditions can be kept constant between test runs, the test runs can still generate completely unrelated output data. For example, suppose the test driver 144 is to be tested against the baseline driver 134 on displaying the explosion of the ball 152 in the display screen 150. If the debris pieces from the explosion are designed to be randomly generated, then having the same set of pieces in run (time1) and run (time2) to compare is nearly impossible and again leading to potentially meaningless verification results.
As the foregoing illustrates, what is needed in the art is a verification process that is capable of extensively and efficiently verifying data generated by multimedia applications and addressing at least the shortcomings of the prior art approaches set forth above.
A method and system for automatically verifying the quality of multimedia rendering are disclosed. Specifically, one embodiment of the present invention sets forth a method, which includes the steps of directing a command intended for a first driver to both the first driver and a second driver in parallel as the multimedia application issues the command and in response to a condition indicative of having available data to compare, comparing a first output generated by a first processing unit associated with the first driver and a second output generated by a second processing unit associated with the second driver.
One advantage of the disclosed method and system is that multiple test runs can be conducted in parallel, in a single pass, and under a set of deterministic testing conditions so that test results can be obtained efficiently and quickly.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
Throughout this disclosure, “kernel mode” software broadly refers to software having access to operating system structures, all system memory, and all processor instructions. One kernel mode component also implicitly trusts another kernel mode component. On the other hand, “user mode” software only has access to user space and needs to make system calls to the kernel to access privileged instructions or data. To safeguard system security, kernel mode software needs to validate data and addresses from user mode software. Also, an operation is said to be performed “in parallel” with another operation, when at least some portions of the two operations are performed at the same time. One embodiment of the present invention is implemented as a software component for use with a computer system. The software component defines functions of the embodiments (including the methods described herein) and can be contained on a variety of computer-readable storage media. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive) on which information is permanently stored; (ii) writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive) on which alterable information is stored. Such computer-readable storage media, when carrying computer-readable instructions that direct the functions of the present invention, are embodiments of the present invention.
In one embodiment, the RT test enabler 204 is a runtime library, which the application 202 links with in the user mode of the operating system. The baseline driver 206 and the test driver 212 are both kernel mode drivers.
In one implementation, referring back to
In an alternative implementation, the application 202 can issue other special commands, which through the RT test enabler 204, causing the GPU 214 to copy the processed data stored in the video memory 216 into the video memory 210 and then to trigger the GPU 208 to compare the two sets of processed data. Under this scenario, the comparison algorithm is likely written in a low level programming language, such as microcode, for the GPU 208 to execute. In one implementation, the software containing this comparison algorithm may be kernel mode software. The GPU 208 is also responsible for passing information related to the comparison results back to the user mode.
As has been demonstrated, the RT test enabler 204 enables the graphics subsystems 211 and 217 to receive and respond to the same set of commands in parallel and to conduct test runs under a deterministic set of testing conditions and in a single pass. In addition, since different drivers can be easily loaded onto the two graphics subsystems in the computing device 200 and can be tested against one another, regression analysis can be efficiently performed ensuring the rapid development of a new driver, according to one embodiment of the present invention. In one implementation, a previous version of a driver is considered a baseline driver, and a current version is considered a test driver.
Graphics drivers 503 and 504, stored within the system memory 502, configures GPU 526 and GPU 532, respectively, to take on the graphics processing workload performed by the computing device 500 and to communicate with applications that are executed by the host processor 508. In one embodiment, graphics drivers generate and place a stream of commands in a “push buffer,” which is then transmitted to the GPUs. When the commands are executed, certain tasks, which are defined by the commands, are carried out by the GPUs. At run-time, libraries 505 and 506, corresponding to the RT test enabler 204 and the graphics API 300 shown in
In some embodiments of the computing device 500, the chipset 512 provides interfaces to the host processor 508, memory devices, storage devices, graphics devices, input/output (“I/O”) devices, media playback devices, network devices, and the like. Some examples of the interfaces include, without limitation, Advanced Technology Attachment (“ATA”) bus, Accelerated Graphics Port (“AGP”), Universal Serial Bus (“USB”), Peripheral Component Interface (“PCI”), and PCI-Express®. It should be apparent to a person skilled in the art to implement the chipset 512 in two or more discrete devices, each of which supporting a distinct set of interfaces. In yet other embodiments, the host processor 508, the GPUs, the chipset 512, or any combination thereof, may be integrated into a single processing unit. Further, the functionality of each or both of the GPUs 526 and 532 may be included in a chipset or in some other type of special purpose processing unit or co-processor.
Connections 522 and 524 support symmetric communication links, such as, without limitation, PCI-Express®. The connection 520 can be any technically feasible scalable bus that provides a direct connection between the GPU 526 and the GPU 532. In the computing device 500, this direct connection is between two physically distinct graphics adapters, or the graphics adapters 516 and 518; thus the connection is also referred to as an external video bridge. One embodiment of the connection 520 can be implemented using the NVIDIA® SLI™ multi-GPU technology.
As shown, the GPU 526 within the graphics adapter 516 is responsible for outputting image data to a display 538. The display 538 may include one or more display devices, such as, without limitation, a cathode ray tube (“CRT”), liquid crystal display (“LCD”), or the like. The GPU 526 is also coupled to video memory 528, which may be used to store image data and program instructions. The GPU 532 within the graphics adapter 518 is coupled to video memory 534, which may also be used to store image data and program instructions.
Although the above paragraphs mainly focus on conducting test runs in parallel to compare graphics drivers, it should be apparent to a person with ordinary skills in the art to apply the present invention to any multimedia drivers, such as audio drivers. Moreover, it should also be apparent to a person with ordinary skills in the art to conduct different types of test runs in the computing device 200 of
The above description illustrates various embodiments of the present invention along with examples of how aspects of the present invention may be implemented. The above examples, embodiments, and drawings should not be deemed to be the only embodiments, and are presented to illustrate the flexibility and advantages of the present invention as defined by the following claims.
Number | Name | Date | Kind |
---|---|---|---|
5450557 | Kopp et al. | Sep 1995 | A |
5646544 | Iadanza | Jul 1997 | A |
5737631 | Trimberger | Apr 1998 | A |
5828858 | Athanas et al. | Oct 1998 | A |
5889816 | Agrawal et al. | Mar 1999 | A |
5892961 | Trimberger | Apr 1999 | A |
5907580 | Cummings | May 1999 | A |
5909559 | So | Jun 1999 | A |
5910733 | Bertolet et al. | Jun 1999 | A |
5943242 | Vorbach et al. | Aug 1999 | A |
5959881 | Trimberger et al. | Sep 1999 | A |
5963048 | Harrison et al. | Oct 1999 | A |
5966534 | Cooke et al. | Oct 1999 | A |
5970254 | Cooke et al. | Oct 1999 | A |
6021490 | Vorbach et al. | Feb 2000 | A |
6023742 | Ebeling et al. | Feb 2000 | A |
6081903 | Vorbach et al. | Jun 2000 | A |
6088043 | Kelleher et al. | Jul 2000 | A |
6094065 | Tavana et al. | Jul 2000 | A |
6119181 | Vorbach et al. | Sep 2000 | A |
6120551 | Law et al. | Sep 2000 | A |
6150838 | Wittig et al. | Nov 2000 | A |
6230307 | Davis et al. | May 2001 | B1 |
6237029 | Master et al. | May 2001 | B1 |
6266760 | DeHon et al. | Jul 2001 | B1 |
6282627 | Wong et al. | Aug 2001 | B1 |
6338106 | Vorbach et al. | Jan 2002 | B1 |
6353841 | Marshall et al. | Mar 2002 | B1 |
6405299 | Vorbach et al. | Jun 2002 | B1 |
6408039 | Ito | Jun 2002 | B1 |
6425068 | Vorbach et al. | Jul 2002 | B1 |
6433578 | Wasson | Aug 2002 | B1 |
6480937 | Vorbach et al. | Nov 2002 | B1 |
6542998 | Vorbach et al. | Apr 2003 | B1 |
6571381 | Vorbach et al. | May 2003 | B1 |
6678734 | Haatainen et al. | Jan 2004 | B1 |
6697979 | Vorbach et al. | Feb 2004 | B1 |
7003660 | Vorbach et al. | Feb 2006 | B2 |
7210129 | May et al. | Apr 2007 | B2 |
7266725 | Vorbach et al. | Sep 2007 | B2 |
7362772 | Alfieri et al. | Apr 2008 | B1 |
7394284 | Vorbach | Jul 2008 | B2 |
7434191 | Vorbach et al. | Oct 2008 | B2 |
7444531 | Vorbach et al. | Oct 2008 | B2 |
7584353 | Risan et al. | Sep 2009 | B2 |