Docsity

GPU Architectures: Bandwidth, Interfaces, Texture Caching, and ROP in Graphics Processing , Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download GPU Architectures: Bandwidth, Interfaces, Texture Caching, and ROP in Graphics Processing and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Lecture 8: GPU Architectures

Prof. Aaron Lanterman

School of Electrical and Computer Engineering

Georgia Institute of Technology

2 Bandwidth – Gravity of Modern Computer Systems

  • The bandwidth between key components ultimately dictates system performance - Especially true for massively parallel systems

processing massive amount of data

  • Tricks like buffering, reordering, caching can

temporarily defy the rules in some cases

  • Ultimately, the performance goes falls back

to what the “speeds and feeds” dictate

Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 6, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

4

3D Buzzwords

• Fill Rate – how fast the GPU can

generate pixels, often a strong predictor

for application frame rate

• Performance Metrics

– Mtris/sec - Triangle Rate

– Mverts/sec - Vertex Rate

– Mpixels/sec - Pixel Fill (Write) Rate

– Mtexels/sec - Texture Fill (Read) Rate

– Msamples/sec - Antialiasing Fill (Write) Rate

Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

5 Adding Programmability to the Graphics Pipeline 3D Application or Game 3D API: OpenGL or Direct3D Programmable Vertex Processor Primitive Assembly Rasterization & Interpolation 3D API Commands Transformed Vertices Assembled Polygons, Lines, and Points GPU Command & Data Stream Programmable Fragment Processor Rasterized Pre-transformed Fragments Transformed Fragments Raster Operations Framebuffer Pixel Updates GPU Front End Pre-transformed Vertices Vertex Index Stream Pixel Location Stream CPU – GPU Boundary Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

7

Easy cross products and normalization

From Stanford CS448A: Real-Time Graphics Architectures

See graphics.stanford.edu/courses/cs448a-01-fall

8

Blinn lighting in one instruction

From Stanford CS448A: Real-Time Graphics Architectures

See graphics.stanford.edu/courses/cs448a-01-fall

10

The GeForce Graphics Pipeline

Host Vertex Control Vertex Cache VS/T&L Triangle Setup Raster Shader ROP FBI Texture Cache Frame Buffer Memory Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

11

Vertex Cache

• Temporary store for vertices, used to gain

higher efficiency

• Re-using vertices between primitives

saves AGP/PCI-E bus bandwidth

• Re-using vertices between primitives

saves GPU computational resources

• A vertex cache attempts to exploit

“commonality” between triangles to

generate vertex reuse

• Unfortunately, many applications do not

use efficient triangular ordering

Host Vertex Control Vertex VS/T&L^ Cache Triangle Setup Raster Shader ROP FBI Texture Cache Frame Buffer Memory Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

13

Built-in Texture Filtering (GeForce 6)

• Pixel texturing

– Hardware supports 2D, 3D, and cube map

– Non power-of-2 textures OK

– Hardware handles addressing and interpolation for

you

• Bilinear, trilinear (3D or mipmap), anisotropic

• Vertex texturing

– Vertex processors can access texture memory too

– Only nearest-neighbor filtering supported in G

hardware

14

ROP (from Raster Operations)

• C-ROP performs frame buffer blending

– Combinations of colors and transparency

– Antialiasing

– Read/Modify/Write the Color Buffer

• Z-ROP performs the Z operations

– Determine the visible pixels

– Discard the occluded pixels

– Read/Modify/Write the Z-Buffer

• ROP on GeForce also performs

– “Coalescing” of transactions

– Z-Buffer compression/decompression

Host Vertex Control Vertex T&L^ Cache Triangle Setup Raster Shader ROP FBI Texture Cache Frame Buffer Memory Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

16

Frame Buffer Interface (FBI)

• Manages reading from and writing

to frame buffer

• Perhaps the most performance-

critical component of a GPU

• GeForce’s FBI is a crossbar

• Independent memory controllers for

4+ independent memory banks for

more efficient access to frame

buffer

Host Vertex Control Surface Engine (^) Vertex T&L^ Cache Triangle Setup Raster Shader ROP FBI Texture Cache Frame Buffer Memory Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 5, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

17

GeForce 7800 GTX Board Details

256MB/256-bit DDR 600 MHz 8 pieces of 8Mx 16x PCI-Express SLI Connector DVI x 2 sVideo TV Out Single slot cooling Slide by David Kirk/NVIDIA and Wen-mei. W. Hwu, 2007, from UIUC ECE498 Lecture 6, Fall 2007; used with permission See courses.ece.uiuc.edu/ece498/al

19

NVIDIA 7800 GTX

G70 Architecture

NVIDIA 7800 GTX - Pixel Processors

8 MADD

(multiply/add)

instructions in

a single cycle

From www.xbitlabs.com/articles/video/display/g70-indepth_3.html

7800 GTX has

24 of these!

20

NVIDIA 7800 GTX

Vertex Processors

G70 Architecture

NVIDIA 7800 GTX - Vertex Processors

G70 Architecture

7800 GTX has 8 of

these!