PowerVR SDK Overview

Tools To Get Great Graphics Performance

August 2012 www.imgtec.com Imagination Technologies – PowerVR Graphics The Embedded Graphics IP Experts

. Imagination Technologies - multi-media IP market leader . 20+ years history in graphics & multimedia - strong patent portfolio . Most comprehensive embedded graphics IP roadmap . Target market of more than 800 million PowerVR Graphics enabled devices . 50% Market share across all embedded GPUs and near 80% market share for GPU IP

2 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 What is the PowerVR Insider SDK? Enabling Development

. Asset Optimization . Geometry; Textures . Coding PVRGeoPOD & . Source code, editors, emulation Collada2POD environment

. Deployment PVRTexTool & . Abstraction layer; example projects PVRTexLib . Optimization . Performance analysis; API tracing

PVRTrace

PVRShaman & PVRUniSCoEditor

PVRTune & PVRScope PVRVFrame 3 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 What is the PowerVR Insider SDK? Source Code

. Example Techniques . Step by step guide . basics to advanced techniques . Same project structure

. PVRShell abstraction layer

. PVRTools helper library

. General graphics knowledge

. PowerVR specific optimizations

4 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRGeoPOD & Collada2POD Geometry Export and Optimisation

. PVRGeoPOD . POD exporter plug-in for 3D Studio Max, Maya and Blender

. Collada2POD . Provides conversion from the Khronos Collada interchange format to POD . GUI and command line versions . Windows, and OSX

5 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTexTool Texture Export and Compression

. Processes and compresses textures . All OpenGL ES (1.x, 2.0), DirectX (9, 10) . Normal map generation, colour bleeding, border addition, high quality scaling algorithms and sky box optimization . Support for PVRTC, PVRTC2

. GUI Application . Command Line Utility . Library for Toolchain Integration . Application Plug-ins . Adobe Photoshop . Autodesk 3DSMax . Autodesk Maya

6 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTC & PVRTC2

. What is PVRTC? . High quality, high ratio texture compression format, designed for PowerVR hardware . PVRTC and PVRTC2 both support: . 4 bits per pixel RGBA; 8x saving . 2 bits per pixel RGBA; 16x saving . PVRTC2 . better image quality, pre-multiplied alpha, NPOT sizes, sub-texturing

Original 32bpp PVRTC 4bpp

DXT/S3TC 4bpp PVRTC 2bpp

7 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRShaman WYSIWYG Prototyping Environment

. Integrated visual shader development environment . See visual results of changes . Instant feedback on shader cost . Prototype entire scenes & characters . POD models or import Collada files . Material editing . Integrated PVRShaderEditor . Integrated Compiler . DirectX, OpenGL and OpenGL ES (1.1 & 2.0)

8 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRShaderEditor (PVRUniSCoEditor) Shader Editor and Compiler

. PVRUniSCoEditor Shader Editor . Integrated shader performance information . Error reporting

. PVRUniSCo . Offline command-line compiler . Profile your

. Updated compilers . SGX 53x . SGX 540 . SGX 543

9 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRVFrame PC Emulation

. PowerVR OpenGL ES emulator . OpenGL ES (1.1 & 2.0) emulation on Windows, Linux and OSX

. PVRVFrame features . Develop and debug without PowerVR hardware . Supports all MBX and SGX extensions . Choose a profile for a specific core

10 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTrace API Call Tracing Tool

. Powerful debugging tool

. Scene recording . All API calls . EGL . OpenGL ES 1.1 . OpenGL ES 2.0

. GUI Analysis . Function calls . Data passed . Textures . Shaders . Render State

11 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTrace Overview

12 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTrace Analysis Interface

Frame Summary & Visual Analysis Frame Scrubber Function Counts Function Calls & Filters

Render States, Textures, Shaders Data Viewer Frame Selector 13 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTune

. Real-time tool for analysing application performance on SGX . Details how SGX hardware modules are working when running graphics applications . Displays accurate information from on-chip counters . Negligible graphics performance overhead . Enabled by default in many already shipping devices

. Cross-Platform . Client: Windows, OSX, Linux . Server: Android, Linux, Windows and more

14 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTune – PowerVR GPU Specific Terminology

. Basic hardware knowledge to understand performance . See “SGX Architecture Guide for Developers” for full details on www.powervrinsider.com

TA 3D

15 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTune Analysis Interface

Hardware Counter 3D load Groups visualisation TA load Hardware visualisation Performance Counters

Graph views

Connection Status 16 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 CPU Bound Application Case Study

CPU may be at or near 100%

Gaps between TA and 3D tasks

17 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 Vertex Bound Application Case Study

“USSE load: vertex” and “TA load” may be high

Gaps between 3D tasks No gaps between TA tasks

18 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 Pixel/Fragment Bound Application Case Study

“USSE load: pixel” and “USSE clock cycles per pixel” may be high

No gaps between Large gaps 3D tasks between TA tasks

19 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 V-Sync Limited Application Case Study

TA & 3D serialised

SGX sleeping Frame rate hovering unpredictably around a fixed number

20 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRScope Library On-device GPU Performance Counters

. In your own applications: . Access SGX hardware counters . Pass custom counters to PVRTune . Receive data from PVRTune

21 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTune & PVRScope Custom Markers

Custom Marker

22 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PVRTune & PVRScope Remote Editing

23 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 What's Next ? PowerVR Rogue & SDK 3.0 !

August 2012 www.imgtec.com PowerVR Rogue Architecture New Hardware = More Features, More Performance

. PowerVR Rogue Cores in Silicon Now . Customer product announcements & launches to follow in 2013 . Full support for just announced Khronos OpenGL ES 3.0 API (*) . Instancing, Multiple Render Targets (MRTs), Transform Feedback, Occlusion Culling, etc. . Focus on Power & Performance Efficiency . New Gen. Tile Based Deferred Shading, Lossless Compression, Scalable Compute Clusters, …

(*) Product is based on a published Khronos Specification, and is expected to pass the Khronos Conformance Testing Process. Curre nt conformance status can be found at www.khronos.org/conformance

25 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PowerVR SDK v3.0 New Hardware = New SDK with matching feature set

. PowerVR SDK v3.0 with full Rogue Architecture Support . Initial version launching at the end of summer 2012 – previews here at SIGGRAPH !

. PVRVFrame . Conformant ES1.1 and ES2.0 (*) . Support for OpenGL ES 3.0 (*) . Including Shader Validation

. PVRTrace . Android APK for easy usage . Auto-configuration

. PVRTexTool . OpenGL ES 3.0 and DirectX 11.1 Formats

. Updated Compilers . Rogue Support & Optimised S5/5XT

(*) Product is based on a published Khronos Specification, and is expected to pass the Khronos Conformance Testing Process. Current conformance status can be found at www.khronos.org/conformance 26 © Imagination Technologies IMG Presentation – SIGGRAPH 2012

PowerVR SDK - meeting YOUR requirements

. Want to know more ? . Visit us at Booth 522

. Check out our online resources . www.powervrinsider.com

. Get in touch directly . [email protected]

. Send us your feedback !

27 © Imagination Technologies IMG Presentation – SIGGRAPH 2012 PowerVR SDK Overview

Tools To Get Great Graphics Performance

August 2012 www.imgtec.com