Font Size: a A A

The Design And Implementation Of A Domestic Graphics Card Interface Conformance Test System

Posted on:2021-03-02Degree:MasterType:Thesis
Country:ChinaCandidate:R YanFull Text:PDF
GTID:2518306104995949Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the slogan created by China,more and more localization comes to our eyes.After the ZTE and Huawei incidents in recent years,we have increasingly felt the importance of localization.Localized CPUs have developed rapidly in recent years,and their performance is similar to the performance of mainstream CPUs in the market.In terms of the localization of domestic GPUs,due to the late start of R & D,domestic GPUs also have some performance with mainstream products in the market.In order to perfectly test the consistency of all Open GL 2.0 API interfaces in a domestic graphics card,a targeted test system was developed.The test system based on domestic graphics cards is developed under the operating system of Ubuntu 16.04 using the cross-platform C ++ user interface QT5.4.0 and the GLSL110 version based on Open GL 2.0.The test system is divided into two parts: test framework and test cases.The functions that the test framework needs to implement are window creation and context creation,test case loading,automatic execution of test cases,analysis of test case results,and testing.Output of results and generation of test reports.Test cases are divided into 13 categories.In order to make the overall system look more streamlined,the operations commonly used in some test cases,such as shaders,textures,etc.are encapsulated.The test method is uniformly encapsulated in the Test Utils class,which mainly judges whether the relevant information obtained by calling the API interface is the same as expected,whether the specified pixel color drawn on the screen is the same as expected,and whether an error is reported due to an error in calling the API interface parameters,whether the information is the same as expected.In order to verify the system API coverage,the method in the Test Utils class is called under each code that calls the API interface to count,and a file is finally generated.Some test cases in the system give a flowchart of the program to illustrate.This test system can help graphics card developers to find some possible errors in the graphics card,and help them better improve the performance of the graphics card.At present,the system has been put into use,and has also received unanimous praise from graphics card developers.
Keywords/Search Tags:Interface test, API coverage test, OpenGL2.0, Domestic GPU
PDF Full Text Request
Related items