Shader Programming Learning Notes (i)--A brief history of graphics hardware and programmable pipelines

Source: Internet
Author: User

A brief History of graphics processor (GPU)

A brief history of GPU development

GPU English full name graphic processing Unit, Chinese translation as "graphics processor", the role of modern computer systems is becoming more and more important.

20世纪六、七十年代, limited by hardware conditions, a graphical display is just a tool for computer output. Limited to the level of hardware development, people are purely from the perspective of software implementation to consider the specification of graphical user interface. There is no concept of GPU at this time.

The GPU concept was presented in the the late 1970s and early 80, using monolithic integrated circuits (monolithic) as a graphics chip, where the GPU was used for video games and animations, and it was able to quickly synthesize several images (only this). During the period from the late 1980s to the early 90, GPUs based on digital signal processor chip were developed. Faster and more powerful than the previous generation, and of course the price is very expensive. In 1991, the S3 Graphics company developed the first monolithic 2D accelerator, and by the year 1995, mainstream PC graphics chip makers have added support for 2D accelerators on their chips.

1998 Nvida Company announced the successful development of the modern GPU, marking the historic breakthrough of GPU development as a reality. This is often referred to as the Pre-gpu period from the late 1970s to 1998, while the GPU from 1998 onwards becomes the modern GPU. In the Pre-gpu period, some graphics vendors, such as SGI, Evans&sutherland, have developed their own GPUs, which are not being phased out, continue to improve and are widely used, and of course the price is very high. The modern GPU uses transistors (transistors) to calculate, and in microchip, the GPU uses a transistor that is far more than the CPU. For example, Intel uses 55 million (million) transistors on the 2.4GHz Pentium IV, while NVIDIA uses more than 125 million (million) transistors on the GeForce FX GPU, at Nvidia 7800 The transistor on the GTX reaches 302 million (302).

Reviewing the development history of the GPU, it can be divided into 4 stages since 1998. Nvdia announced the successful development of the modern GPU in 1998, marking the birth of the first generation of modern GPUs, including Nvdia Tnt2,ati rage and 3Dfx Voodoo. These GPUs can be independent of the CPU to update the pixel buffers, and can rasterize triangular patches and texture operations, but the lack of three-dimensional vertex space coordinate transformation capability, which means that the CPU must be dependent on the calculation of vertex coordinate transformation. This period has very limited GPU functionality and can only be used for mathematical calculations of texture combinations or for the calculation of pixel color values.

In 1999, Nvdia launched a "shock" to describe the display core codenamed NV10 Gefore 256. Nvdia is the first to integrate the hardware t&l into the display core. The t&l originally had CPU responsibility, or was handled by another independent processor. T&l is a big step forward because the show core takes over a lot of work from the CPU. The effect of the hardware t&l engine is that the 3D model can be depicted with more polygons, thus having a more subtle effect. For lighting, the CPU does not have to calculate a large amount of light data, directly through the video card can achieve better performance. At the same time, this phase of the GPU's manipulation of textures extends to the cube texture (cube map). Nvdia's GeForce Max,ati Radeon 7500 was developed at this stage.

T&l Technology is one of the most recent specification names that can be seen on the Graphics accelerator card, the original meaning of this noun is: transforming and lighting, light and shadow conversion. In the Graphics accelerator card, the maximum function of the t&l is to handle three-dimensional effects such as the overall angular rotation of the graph and the shadow of the light source.

The 2001 was the third generation of the modern GPU, which developed a GPU that provided vertex programmability (vertex programming capabilities), such as GeForce 4ti,ati 8500. These GPUs allow the application to specify a sequence of instructions for vertex manipulation (the nature of GPU programming), which is also a pioneering period that has been established in the period of GPU programming that continues to this day, not only in the engineering field to help improve human daily life (medical, geological exploration, games, Film, etc.), and has pioneered or extended many fields of research in computer Science (volume rendering, lighting simulation, human animation, general computing, etc.). At the same time, Direct8 and OpenGL are based on the spirit of advancing with the times, providing support vertex programmability extension. However, this period of GPU does not support pixel-level programming capabilities, namely fragment programmability (fragment programming capabilities).

The so-called Vertex, is that we are familiar with the composition of 3D graphics vertex, because the 3D model is based on the internal design of coordinate space, so the vertex information contains the 3D model in space coordinates and other information. Vertex Shader is an operational programmer for Vertex information, which can change the shape of the 3D model by assigning a specific algorithm, and the Vertex shader vertex unit can retrieve the material data in the video memory directly. Now the game scene is getting more and more complicated. The number of materials and polygons involved is amazing. And game developers can also take advantage of this new feature of vertex shader, give full play to the imagination, to achieve a lot of very beautiful effects. For example, the skill effect of the Protoss mothership black hole shown in StarCraft 2 demo.

The fourth generation GPU developed from the end of 2002 to 2003. Nvdia's Geforcefx and ATI Radeon 9700 also shine on the market stage, both of which support vertex programmability and fragment programmability. DirectX and OpenGL have also expanded their own APIs to support vertex programmability and fragment programmability. Since 2003, the programmable graphics processor was officially born, and due to DirectX and OpenGL relentlessly catching up with the trend, led graphics hardware-based programming technology, called GPU programming, also announced the birth.

The advantages of GPUs

Because GPUs have high parallel architectures, GPUs have a higher efficiency than CPUs in processing graphics data and complex algorithms. Compared to the majority of the CPU area of the controller and register, the GPU has more Alu (arithmetic logic unit, logic unit) for data processing, which is suitable for parallel processing of intensive data.

The GPU uses a streaming parallel computing model, which allows for independent parallel computation of each data, and the so-called "independent Calculation of data" is the calculation of any element in the flow that does not depend on other data of the same type. For example, to calculate the world position coordinates of a vertex, independent of the location of other vertices, the so-called "parallel Computing" means that multiple data can be used simultaneously, and that the time for multiple data parallel operations is the same as when a single data is implemented separately. So, in a vertex handler, you can work with n vertex data at the same time.

The GPU Flaw

Because the computation of any one element does not depend on other data of the same type, the algorithms that need to know the correlation between data are difficult to implement on the GPU. A typical example is the intersection operation of Rays and objects. The controller in the GPU is less than the CPU, resulting in limited control capabilities. In addition, GPU programming must master the knowledge of computer graphics, as well as graphics processing API, the entry threshold is high, the learning cycle is long, especially in the domestic data on GPU programming is scarce, which led to the difficulty of learning. In the early days, GPU programming only used assembly language, the development is difficult, the development efficiency is low. However, with the rise of advanced shader language, programming on the GPU is much easier.

More applications for GPUs

  Scientific Visualization calculation : Because the human body CT, geological exploration, meteorological data, fluid mechanics and other scientific visualization calculation processing of data is very large, only CPU-based calculation can not meet the real-time requirements, and on the GPU to calculate the efficiency of a qualitative breakthrough. Many very time-consuming algorithms on the CPU, such as Ray-casting algorithms in volume rendering, can be successfully ported to the GPU. Therefore, the research on GPU-based scientific visualization has become the mainstream now.

  General Algorithm : The research of general computing based on GPU is becoming a hotspot, known as GPGPU (general-purpose Computing on Graphics procedding Units, also be gpgp, or GP2), Many general-purpose algorithms, such as numerical computations, have been implemented on the GPU and have good performance. At present, linear algebra, physical simulation and ray tracing algorithms have been successfully ported to the GPU. At home, the Chinese Academy of Sciences Computing has carried out a GPU-based string matching algorithm implementation.

Summarize

The important thing here is that the GPU has officially entered the programmable GPU phase since 2003. In addition, the GPU's parallel processing power is stronger than the CPU, it is because the GPU's parallel processing ability, we can at the same time let the GPU processing a lot of vertex data. Finally, even though the GPU has a strong parallel capability, the GPU cannot replace the CPU at the moment, mainly because the GPU is not able to achieve the CPU's powerful logical operation.

Shader Programming Learning Notes (i)--A brief history of graphics hardware and programmable pipelines

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.