GraphicsFuzz. Secure and Robust Graphics Rendering. Hugues Evrard Paul Thomson
|
|
- Silas Eaton
- 6 years ago
- Views:
Transcription
1 GraphicsFuzz Secure and Robust Graphics Rendering Hugues Evrard Paul Thomson
2
3
4
5
6 Problem: defective drivers
7 We are here to help! How: automatic generation of minimal difference test cases
8 The context original shader graphics driver shader compiler GPU image
9 Challenge 1: is there a bug? (oracle problem) original shader graphics driver shader compiler Crash 1. Compiler crash
10 Challenge 1: is there a bug? (oracle problem) original shader graphics driver shader compiler GPU?? image?? 1. Compiler crash 2. Miscompilation: much harder to detect bad image security issues
11 Challenge 2: where is the bug? original shader graphics driver shader compiler GPU bad image WebGL OpenGL IR GPU asm
12 Challenge 3: is the bug important? random shader high-value shader graphics driver shader compiler Randomly searching may be ineffective We start searching from high-value shaders Prioritizes issues that are likely to affect end-users
13 Our approach
14 Generate bug-inducing shader original shader image graphics driver (shader compiler) GPU
15 Generate bug-inducing shader original shader image semantics preserving transformations graphics driver (shader compiler) GPU variant image image shader x = y + 0 ; z = x * 1 ;
16 Generate bug-inducing shader original shader image semantics preserving transformations graphics driver (shader compiler) GPU image variant image image shader
17 Generate bug-inducing shader original shader image semantics preserving transformations graphics driver (shader compiler) GPU comparison image variant image image shader
18 Generate bug-inducing shader original shader image semantics preserving transformations graphics driver (shader compiler) GPU diff/crash image variant image image shader
19 Generate bug-inducing shader original shader image semantics preserving transformations graphics driver (shader compiler) GPU comparison image variant image image shader metamorphic testing
20 Transformations
21 Semantics-preserving transformations prelude: opaque expression [host] vec2 opaq = { 0.0, 1.0 }; [device] kernel main (, opaq) { ( opaq.x < opaq.y ) opaq_true ( opaq.x > opaq.y ) opaq_false opaq.x opaq_0 opaq.y opaq_1 } Opaque value unknown at shader compilation time
22 Semantics-preserving transformations prelude: opaque expression dead code injection int orig_y; if (opaq_false) { float donor_x; } // code from donor shader orig_y = donor_x; Donor code variables are either: declared at start of block (donor_x) replaced by existing variable with same type (orig_y)
23 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection if (opaq_false) { } jump; Complicate the control flow graph jump: break / continue / return / discard (special case of dead code injection)
24 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection live code injection // original code // donor code to be executed // original code Add donor code at random position: rename variables to avoid name clashes declare variables remove: break / continue / return / discard
25 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection live code injection expression mutation (opaq_true? [original expression] : [random expression] ) Random expression via traditional fuzzing For numeric expressions: [original expression] + opaq_0; For boolean expressions: ( [original expression] opaq_false);
26 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection live code injection expression mutation vectorization float a, c; vec2 b; b.x = a + b.y + c; Pack variables into a merged variable: vec4 abc; // abc == { a, b.x, b.y, c } abc.yz.x = abc.x + abc.yz.y + abc.w;
27 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection live code injection expression mutation vectorization control flow wrapping if (opaq_true) { [original code] } for (int tmp = opaq_0; tmp < opaq_1; tmp++) { [original code] } do { [original code] } while (opaq_false);
28 Semantics-preserving transformations prelude: opaque expression dead code injection dead jump injection live code injection expression mutation vectorization control flow wrapping if (opaq_true) { [original code] } for (int tmp = opaq_0; tmp < opaq_1; tmp++) { [original code] } do { [original code] } while (opaq_false); Transformations can be applied recursively!
29 Reduction
30 void main(void) { vec2 uv = (gl_fragcoord.xy / resolution.xy) * ; uv.x *= resolution.x / resolution.y; if(_glf_dead(_glf_false(false, (injectionswitch.x > injectionswitch.y)))) return; vec3 finalcolor = RenderScene(uv); if(_glf_dead(_glf_identity(false, (false) false))) { vec3 donor_replacementp = _GLF_FUZZED(faceforward(((++ finalcolor) - faceforward(vec3(4.8, , - 3.4), vec3( , -9.0, ), finalcolor)), vec3( , , ), (finalcolor).yzx)); float donor_replacementtw = _GLF_FUZZED(sign(dot((EPS / vec3(53.44, 6.0, )), fract(finalcolor)))); float donor_replacementstrength = _GLF_FUZZED(38.04); float donor_replacementprev = _GLF_FUZZED(clamp((+ distance(time, )), (-- finalcolor.g), (mouse / EPS)[1])); if(_glf_dead(_glf_false(false, (injectionswitch.x > injectionswitch.y)))) return; float donor_replacementaccum = _GLF_FUZZED(distance(vec2( , ), (- vec4( , 69.29, , )).wz)); if(_glf_dead(_glf_identity(false, (false? _GLF_FUZZED(( < shadowtype)) : false)))) return; for( int i = 0; i < 16; ++ i ) { float mag = dot(donor_replacementp, donor_replacementp); donor_replacementp = abs(donor_replacementp) / mag + vec3(-.5, * sin(time * ), * cos(time * 0.3)); float w = exp(- float(i) / 7.);
31 $ diff recipient_reduced_final.frag variant_27_reduced_final.frag 6a7,8 > uniform vec2 injectionswitch; > 168a171,174 > if(injectionswitch.x > injectionswitch.y) > { > return vec3(1.0); > } 194a201,204 > if(injectionswitch.x > injectionswitch.y) > { > return; > }
32 Reduce to a minimal difference test case original shader image graphics driver (shader compiler) GPU diff/crash Bug-induc. shader image while (diff/crash) { random_remove_transformation() }
33 Minimal difference test case original shader image same semantics small syntax diff graphics driver (shader compiler) GPU diff/crash Bug-induc. shader image isolates the bug
34 Bug gallery
35 GraphicsFuzz: bug gallery AMD if(injswitch.x > injswitch.y) { if(injswitch.x > injswitch.y) { return; } int f = 1; } [..] if(injswitch.x > injswitch.y) { return; }
36 GraphicsFuzz: bug gallery AMD Apple for(int c = 0; c < 1; c++) { if(j == 0) { return vec4(0.8, 0.5, 0.5, 1.0); } } return vec4(0.8 * injswitch.y, 0.7, 0.4, 1.0);
37 GraphicsFuzz: bug gallery AMD Apple ARM if(injswitch.x > injswitch.y) { for(int i = 0; i < 1; i ++) { k = 0.0; } }
38 GraphicsFuzz: bug gallery AMD Apple ARM Imagination if(injswitch.x > injswitch.y) { for(int i = 0; i < 10; i ++) { continue; } } [..] if(injswitch.x > injswitch.y) { if((p.z > 60.)) { break; } }
39 GraphicsFuzz: bug gallery AMD Apple ARM Imagination Intel [..] vec2 uvs = [..]; vec4 uvs_vec = vec4(0.0, uvs, 0.0); /* Replace uvs with uvs_vec.yz after */
40 GraphicsFuzz: bug gallery AMD Apple ARM Imagination Intel Nvidia vec3 hsbtorgb(float h, float s, float b) { return b * ((false? (--s) : 1.0 ) - s) + (b - (false? (--s) : b * (1.0 - s) )) * clamp(abs(abs((false? (--s) : 6.0 ) * [..]; }
41 GraphicsFuzz: bug gallery AMD Apple ARM Imagination Intel Nvidia Qualcomm /* Multiple instances of the following, where v is a literal value */ if(injswitch.x > injswitch.y) return v;
42 Security bugs
43 Security bugs AMD: bluescreen Apple: iphone rendering garbage Imagination: garbage rendering on Nexus Player Intel: bluescreen Nvidia: Ubuntu freeze Qualcomm: HTC One M7 restart via WebGL
44 Blog post series by Alastair on Medium :
45 Team gallery Multicore Programming Group Alastair Donaldson Group Leader Paul Thomson PostDoc Andrei Lascu PhD student Hugues Evrard PostDoc
46 Conclusion
47 Conclusion Our approach: Automatically finds bugs Produces a minimal difference test case C1: Is there a bug? Detect differences metamorphic testing semantics-preserving transformations C2: Where is the bug? Minimal difference test cases Help to pinpoint bug location C3: Is the bug important/relevant? Start from high-value shaders Prioritizes bugs that are close to being found in practice by developers Generic approach beyond GLSL: HLSL, SPIR-V, Metal, Can be used to amplify existing test suite
48 Future work More transformations Extend to other shader languages Focus search on security bugs Coverage-based fuzzing Fuzz for performance issues
Prospects for a more robust, simpler and more efficient shader cross-compilation pipeline in Unity with SPIR-V
Prospects for a more robust, simpler and more efficient shader cross-compilation pipeline in Unity with SPIR-V 2015/04/14 - Christophe Riccio, OpenGL Democratizing games development Monument Valley by
More informationGLSL Introduction. Fu-Chung Huang. Thanks for materials from many other people
GLSL Introduction Fu-Chung Huang Thanks for materials from many other people Shader Languages Currently 3 major shader languages Cg (Nvidia) HLSL (Microsoft) Derived from Cg GLSL (OpenGL) Main influences
More informationTesting & Symbolic Execution
Testing & Symbolic Execution Software Testing The most common way of measuring & ensuring correctness Input 2 Software Testing The most common way of measuring & ensuring correctness Input Observed Behavior
More informationMany-Core Compiler Fuzzing
Many-Core Compiler Fuzzing Christopher Lidbury 1, Andrei Lascu 1, Nathan Chong 2, Alastair F. Donaldson 1 1 Imperial College London, UK, 2 UCL, UK 1 {christopher.lidbury10,andrei.lascu10,alastair.donaldson@imperial.ac.uk,
More informationOPENGL AND GLSL. Computer Graphics
OPENGL AND GLSL Computer Graphics 1 OUTLINE I. Detecting GLSL Errors II. Drawing a (gasp) Triangle! III. (Simple) Animation 2 Interactive Computer Graphics, http://www.mechapen.com/projects.html WHAT IS
More informationSIGGRAPH Briefing August 2014
Copyright Khronos Group 2014 - Page 1 SIGGRAPH Briefing August 2014 Neil Trevett VP Mobile Ecosystem, NVIDIA President, Khronos Copyright Khronos Group 2014 - Page 2 Significant Khronos API Ecosystem Advances
More informationReal - Time Rendering. Graphics pipeline. Michal Červeňanský Juraj Starinský
Real - Time Rendering Graphics pipeline Michal Červeňanský Juraj Starinský Overview History of Graphics HW Rendering pipeline Shaders Debugging 2 History of Graphics HW First generation Second generation
More informationA Translation Framework for Automatic Translation of Annotated LLVM IR into OpenCL Kernel Function
A Translation Framework for Automatic Translation of Annotated LLVM IR into OpenCL Kernel Function Chen-Ting Chang, Yu-Sheng Chen, I-Wei Wu, and Jyh-Jiun Shann Dept. of Computer Science, National Chiao
More informationThe Graphics Pipeline and OpenGL III: OpenGL Shading Language (GLSL 1.10)!
! The Graphics Pipeline and OpenGL III: OpenGL Shading Language (GLSL 1.10)! Gordon Wetzstein! Stanford University! EE 267 Virtual Reality! Lecture 4! stanford.edu/class/ee267/! Lecture Overview! Review
More informationVulkan 1.1 March Copyright Khronos Group Page 1
Vulkan 1.1 March 2018 Copyright Khronos Group 2018 - Page 1 Vulkan 1.1 Launch and Ongoing Momentum Strengthening the Ecosystem Improved developer tools (SDK, validation/debug layers) More rigorous conformance
More informationTesting, Fuzzing, & Symbolic Execution
Testing, Fuzzing, & Symbolic Execution Software Testing The most common way of measuring & ensuring correctness Input 2 Software Testing The most common way of measuring & ensuring correctness Input Observed
More informationPorting Roblox to Vulkan. Arseny
Porting Roblox to Vulkan Arseny Kapoulkine @zeuxcg 1 What is Roblox? Online multiplayer game creation platform All content is user generated Windows, macos, ios, Android, Xbox One 50M+ MAU, 1.5M+ CCU 2
More informationIntroduction to Shaders.
Introduction to Shaders Marco Benvegnù hiforce@gmx.it www.benve.org Summer 2005 Overview Rendering pipeline Shaders concepts Shading Languages Shading Tools Effects showcase Setup of a Shader in OpenGL
More informationGLSL Introduction. Fu-Chung Huang. Thanks for materials from many other people
GLSL Introduction Fu-Chung Huang Thanks for materials from many other people Programmable Shaders //per vertex inputs from main attribute aposition; attribute anormal; //outputs to frag. program varying
More informationWebGL and GLSL Basics. CS559 Fall 2015 Lecture 10 October 6, 2015
WebGL and GLSL Basics CS559 Fall 2015 Lecture 10 October 6, 2015 Last time Hardware Rasterization For each point: Compute barycentric coords Decide if in or out.7,.7, -.4 1.1, 0, -.1.9,.05,.05.33,.33,.33
More informationCS GPU and GPGPU Programming Lecture 7: Shading and Compute APIs 1. Markus Hadwiger, KAUST
CS 380 - GPU and GPGPU Programming Lecture 7: Shading and Compute APIs 1 Markus Hadwiger, KAUST Reading Assignment #4 (until Feb. 23) Read (required): Programming Massively Parallel Processors book, Chapter
More informationNext Generation OpenGL Neil Trevett Khronos President NVIDIA VP Mobile Copyright Khronos Group Page 1
Next Generation OpenGL Neil Trevett Khronos President NVIDIA VP Mobile Ecosystem @neilt3d Copyright Khronos Group 2015 - Page 1 Copyright Khronos Group 2015 - Page 2 Khronos Connects Software to Silicon
More informationIntroduction to SPIR-V Shaders
Copyright Khronos Group 2016 - Page 38 Introduction to SPIR-V Shaders Neil Hickey Compiler Engineer, ARM SPIR History Copyright Khronos Group 2016 - Page 39 Copyright Khronos Group 2016 - Page 40 SPIR-V
More informationOpenGL BOF Siggraph 2011
OpenGL BOF Siggraph 2011 OpenGL BOF Agenda OpenGL 4 update Barthold Lichtenbelt, NVIDIA OpenGL Shading Language Hints/Kinks Bill Licea-Kane, AMD Ecosystem update Jon Leech, Khronos Viewperf 12, a new beginning
More informationThe Graphics Pipeline and OpenGL III: OpenGL Shading Language (GLSL 1.10)!
! The Graphics Pipeline and OpenGL III: OpenGL Shading Language (GLSL 1.10)! Gordon Wetzstein! Stanford University! EE 267 Virtual Reality! Lecture 4! stanford.edu/class/ee267/! Updates! for 24h lab access:
More informationProgramming with OpenGL Part 3: Shaders. Ed Angel Professor of Emeritus of Computer Science University of New Mexico
Programming with OpenGL Part 3: Shaders Ed Angel Professor of Emeritus of Computer Science University of New Mexico 1 Objectives Simple Shaders - Vertex shader - Fragment shaders Programming shaders with
More informationLecture 13: OpenGL Shading Language (GLSL)
Lecture 13: OpenGL Shading Language (GLSL) COMP 175: Computer Graphics April 18, 2018 1/56 Motivation } Last week, we discussed the many of the new tricks in Graphics require low-level access to the Graphics
More informationWebGL and GLSL Basics. CS559 Fall 2016 Lecture 14 October
WebGL and GLSL Basics CS559 Fall 2016 Lecture 14 October 24 2016 Review Hardware Rasterization For each point: Compute barycentric coords Decide if in or out.7,.7, -.4 1.1, 0, -.1.9,.05,.05.33,.33,.33
More informationJava Loop Control. Programming languages provide various control structures that allow for more complicated execution paths.
Loop Control There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first,
More informationGDC 2014 Barthold Lichtenbelt OpenGL ARB chair
GDC 2014 Barthold Lichtenbelt OpenGL ARB chair Agenda OpenGL 4.4, news and updates - Barthold Lichtenbelt, NVIDIA Low Overhead Rendering with OpenGL - Cass Everitt, NVIDIA Copyright Khronos Group, 2010
More informationGPU Quality and Application Portability
GPU Quality and Application Portability Kalle Raita Senior Software Architect, drawelements Copyright Khronos Group, 2010 - Page 1 drawelements Ltd. drawelements Based in Helsinki, Finland Founded in 2008
More informationCS4621/5621 Fall Computer Graphics Practicum Intro to OpenGL/GLSL
CS4621/5621 Fall 2015 Computer Graphics Practicum Intro to OpenGL/GLSL Professor: Kavita Bala Instructor: Nicolas Savva with slides from Balazs Kovacs, Eston Schweickart, Daniel Schroeder, Jiang Huang
More informationReal-time Graphics 9. GPGPU
9. GPGPU GPGPU GPU (Graphics Processing Unit) Flexible and powerful processor Programmability, precision, power Parallel processing CPU Increasing number of cores Parallel processing GPGPU general-purpose
More informationMXwendler Fragment Shader Development Reference Version 1.0
MXwendler Fragment Shader Development Reference Version 1.0 This document describes the MXwendler fragmentshader interface. You will learn how to write shaders using the GLSL language standards and the
More informationGetting started with Java
Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly
More informationOUTLINE. Implementing Texturing What Can Go Wrong and How to Fix It Mipmapping Filtering Perspective Correction
TEXTURE MAPPING 1 OUTLINE Implementing Texturing What Can Go Wrong and How to Fix It Mipmapping Filtering Perspective Correction 2 BASIC STRAGEGY Three steps to applying a texture 1. specify the texture
More informationGLSL 1: Basics. J.Tumblin-Modified SLIDES from:
GLSL 1: Basics J.Tumblin-Modified SLIDES from: Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New Mexico and
More informationGpuPy: Accelerating NumPy With a GPU
GpuPy: Accelerating NumPy With a GPU Washington State University School of Electrical Engineering and Computer Science Benjamin Eitzen - eitzenb@eecs.wsu.edu Robert R. Lewis - bobl@tricity.wsu.edu Presentation
More informationGPGPU: Parallel Reduction and Scan
Administrivia GPGPU: Parallel Reduction and Patrick Cozzi University of Pennsylvania CIS 565 - Spring 2011 Assignment 3 due Wednesday 11:59pm on Blackboard Assignment 4 handed out Monday, 02/14 Final Wednesday
More informationReal-time Graphics 9. GPGPU
Real-time Graphics 9. GPGPU GPGPU GPU (Graphics Processing Unit) Flexible and powerful processor Programmability, precision, power Parallel processing CPU Increasing number of cores Parallel processing
More informationLLVM + Gallium3D: Mixing a Compiler With a Graphics Framework. Stéphane Marchesin
LLVM + Gallium3D: Mixing a Compiler With a Graphics Framework Stéphane Marchesin What problems are we solving? Shader optimizations are really needed All Mesa drivers are
More informationTechnical Game Development II. Reference: Rost, OpenGL Shading Language, 2nd Ed., AW, 2006 The Orange Book Also take CS 4731 Computer Graphics
Shader Programming Technical Game Development II Professor Charles Rich Computer Science Department rich@wpi.edu Reference: Rost, OpenGL Shading Language, 2nd Ed., AW, 2006 The Orange Book Also take CS
More informationAdventures in Fuzzing Instruction Selection. 1 EuroLLVM 2017 Justin Bogner
Adventures in Fuzzing Instruction Selection 1 EuroLLVM 2017 Justin Bogner Overview Hardening instruction selection using fuzzers Motivated by Global ISel Leveraging libfuzzer to find backend bugs Techniques
More informationApplications. Cloud. See voting example (DC Internet voting pilot) Select * from userinfo WHERE id = %%% (variable)
Software Security Requirements General Methodologies Hardware Firmware Software Protocols Procedure s Applications OS Cloud Attack Trees is one of the inside requirement 1. Attacks 2. Evaluation 3. Mitigation
More informationCOMP371 COMPUTER GRAPHICS
COMP371 COMPUTER GRAPHICS SESSION 12 PROGRAMMABLE SHADERS Announcement Programming Assignment #2 deadline next week: Session #7 Review of project proposals 2 Lecture Overview GPU programming 3 GPU Pipeline
More informationDecision Making in C
Decision Making in C Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed
More informationDave Shreiner, ARM March 2009
4 th Annual Dave Shreiner, ARM March 2009 Copyright Khronos Group, 2009 - Page 1 Motivation - What s OpenGL ES, and what can it do for me? Overview - Lingo decoder - Overview of the OpenGL ES Pipeline
More informationGLSL v1.20. Scott MacHaffie Schrödinger, Inc.
1 GLSL v1.20 Scott MacHaffie Schrödinger, Inc. http://www.schrodinger.com Table of Contents Introduction...2 Example 01: Trivial shader...2 Syntax...3 Types of variables...3 Example 02: Materials vertex
More informationLecture 5 Vertex and Fragment Shaders-1. CITS3003 Graphics & Animation
Lecture 5 Vertex and Fragment Shaders-1 CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives The rendering pipeline and the shaders Data
More informationShader Series Primer: Fundamentals of the Programmable Pipeline in XNA Game Studio Express
Shader Series Primer: Fundamentals of the Programmable Pipeline in XNA Game Studio Express Level: Intermediate Area: Graphics Programming Summary This document is an introduction to the series of samples,
More informationMany-Core Compiler Fuzzing
Draft: please do not distribute Many-Core Compiler Fuzzing Abstract We address the compiler correctness problem for manycore systems through novel applications of fuzz testing to OpenCL compilers. Focusing
More informationEfficient and Scalable Shading for Many Lights
Efficient and Scalable Shading for Many Lights 1. GPU Overview 2. Shading recap 3. Forward Shading 4. Deferred Shading 5. Tiled Deferred Shading 6. And more! First GPU Shaders Unified Shaders CUDA OpenCL
More informationHardening LLVM with Random Testing
Hardening LLVM with Random Testing Xuejun Yang, Yang Chen Eric Eide, John Regehr {jxyang, chenyang, eeide, regehr}@cs.utah.edu University of Utah 11/3/2010 1 A LLVM Crash Bug int * p[2]; int i; for (...)
More informationProgrammable Graphics Hardware
CSCI 480 Computer Graphics Lecture 14 Programmable Graphics Hardware [Ch. 9] March 2, 2011 Jernej Barbic University of Southern California OpenGL Extensions Shading Languages Vertex Program Fragment Program
More informationINTRODUCTION TO OPENCL TM A Beginner s Tutorial. Udeepta Bordoloi AMD
INTRODUCTION TO OPENCL TM A Beginner s Tutorial Udeepta Bordoloi AMD IT S A HETEROGENEOUS WORLD Heterogeneous computing The new normal CPU Many CPU s 2, 4, 8, Very many GPU processing elements 100 s Different
More informationC++ Arrays and Vectors
C++ Arrays and Vectors Contents 1 Overview of Arrays and Vectors 2 2 Arrays 3 2.1 Declaring Arrays................................................. 3 2.2 Initializing Arrays................................................
More informationShaders. Slide credit to Prof. Zwicker
Shaders Slide credit to Prof. Zwicker 2 Today Shader programming 3 Complete model Blinn model with several light sources i diffuse specular ambient How is this implemented on the graphics processor (GPU)?
More informationFollowing is the general form of a typical decision making structure found in most of the programming languages:
Decision Making Decision making structures have one or more conditions to be evaluated or tested by the program, along with a statement or statements that are to be executed if the condition is determined
More informationCS 418: Interactive Computer Graphics. Basic Shading in WebGL. Eric Shaffer
CS 48: Interactive Computer Graphics Basic Shading in WebGL Eric Shaffer Some slides adapted from Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 205 Phong Reflectance Model Blinn-Phong
More informationDEVELOPER DAY. Vulkan Subgroup Explained Daniel Koch NVIDIA MONTRÉAL APRIL Copyright Khronos Group Page 1
DEVELOPER DAY Vulkan Subgroup Explained Daniel Koch (@booner_k), NVIDIA MONTRÉAL APRIL 2018 Copyright Khronos Group 2018 - Page 1 Copyright Khronos Group 2018 - Page 2 Agenda Motivation Subgroup overview
More informationGPU Computing Master Clss. Development Tools
GPU Computing Master Clss Development Tools Generic CUDA debugger goals Support all standard debuggers across all OS Linux GDB, TotalView and DDD Windows Visual studio Mac - XCode Support CUDA runtime
More informationProgrammable GPUs. Real Time Graphics 11/13/2013. Nalu 2004 (NVIDIA Corporation) GeForce 6. Virtua Fighter 1995 (SEGA Corporation) NV1
Programmable GPUs Real Time Graphics Virtua Fighter 1995 (SEGA Corporation) NV1 Dead or Alive 3 2001 (Tecmo Corporation) Xbox (NV2A) Nalu 2004 (NVIDIA Corporation) GeForce 6 Human Head 2006 (NVIDIA Corporation)
More informationWebGL: Hands On. DevCon5 NYC Kenneth Russell Software Engineer, Google, Inc. Chair, WebGL Working Group
WebGL: Hands On DevCon5 NYC 2011 Kenneth Russell Software Engineer, Google, Inc. Chair, WebGL Working Group Today's Agenda Introduce WebGL and its programming model. Show code for a complete example. Demonstrate
More informationTesting symbolic execution engines
Imperial College of Science, Technology and Medicine Final year project report Testing symbolic execution engines Timotej Kapus supervised by Dr. Cristian Cadar June 18, 2017 Abstract Symbolic execution
More informationDynamic Code Generation for Realtime Shaders
Dynamic Code Generation for Realtime Shaders Niklas Folkegård Högskolan i Gävle Daniel Wesslén Högskolan i Gävle Figure 1: Tori shaded with output from the Shader Combiner system in Maya Abstract Programming
More informationFunctional Programming of Geometry Shaders
Functional Programming of Geometry Shaders Jiří Havel Faculty of Information Technology Brno University of Technology ihavel@fit.vutbr.cz ABSTRACT This paper focuses on graphical shader programming, which
More informationCopyright Khronos Group Page 1
Gaming Market Briefing Overview of APIs GDC March 2016 Neil Trevett Khronos President NVIDIA Vice President Developer Ecosystem ntrevett@nvidia.com @neilt3d Copyright Khronos Group 2016 - Page 1 Copyright
More informationCS452/552; EE465/505. Finale!
CS452/552; EE465/505 Finale! 4-23 15 Outline! Non-Photorealistic Rendering! What s Next? Read: Angel, Section 6.11 Nonphotorealistic Shading Color Plate 11 Cartoon-shaded teapot Final Exam: Monday, April
More informationCS 380 Introduction to Computer Graphics. LAB (1) : OpenGL Tutorial Reference : Foundations of 3D Computer Graphics, Steven J.
CS 380 Introduction to Computer Graphics LAB (1) : OpenGL Tutorial 2018. 03. 05 Reference : Foundations of 3D Computer Graphics, Steven J. Gortler Goals Understand OpenGL pipeline Practice basic OpenGL
More information12.2 Programmable Graphics Hardware
Fall 2018 CSCI 420: Computer Graphics 12.2 Programmable Graphics Hardware Kyle Morgenroth http://cs420.hao-li.com 1 Introduction Recent major advance in real time graphics is the programmable pipeline:
More informationGPGPU on Mobile Devices
GPGPU on Mobile Devices Introduction Addressing GPGPU for very mobile devices Tablets Smartphones Introduction Why dedicated GPUs in mobile devices? Gaming Physics simulation for realistic effects 3D-GUI
More informationShaders CSCI 4239/5239 Advanced Computer Graphics Spring 2014
Shaders CSCI 4239/5239 Advanced Computer Graphics Spring 2014 What is a Shader? Wikipedia: A shader is a computer program used in 3D computer graphics to determine the final surface properties of an object
More informationNVIDIA Nsight Visual Studio Edition 4.0 A Fast-Forward of All the Greatness of the Latest Edition. Sébastien Dominé, NVIDIA
NVIDIA Nsight Visual Studio Edition 4.0 A Fast-Forward of All the Greatness of the Latest Edition Sébastien Dominé, NVIDIA AGENDA Introduction What s new with 4.0? Graphics Redefined DirectX 9 and 11.1
More informationProgramming with OpenGL Shaders I. Adapted From: Ed Angel Professor of Emeritus of Computer Science University of New Mexico
Programming with OpenGL Shaders I Adapted From: Ed Angel Professor of Emeritus of Computer Science University of New Mexico 0 Objectives Shader Basics Simple Shaders Vertex shader Fragment shaders 1 Vertex
More informationMobile Application Programing: Android. OpenGL Operation
Mobile Application Programing: Android OpenGL Operation Activities Apps are composed of activities Activities are self-contained tasks made up of one screen-full of information Activities start one another
More informationQuick Shader 0.1 Beta
Quick Shader 0.1 Beta Documentation (last update 2014-07-10) QuickShader is a program that allows you to write and test shaders without creating your own rendering engine. Using this tool you can quickly
More informationUNIVERSITY OF WINDSOR Winter 2007 QUIZ # 1 Solution. Examiner:Ritu Chaturvedi Dated : Feb 7 th, Student Name: Student Number:
UNIVERSITY OF WINDSOR 60-106-01 Winter 2007 QUIZ # 1 Solution Examiner:Ritu Chaturvedi Dated : Feb 7 th, 2007. Student Name: Student Number: INSTRUCTIONS (Please Read Carefully) No calculators allowed.
More informationBlis: Better Language for Image Stuff Project Proposal Programming Languages and Translators, Spring 2017
Blis: Better Language for Image Stuff Project Proposal Programming Languages and Translators, Spring 2017 Abbott, Connor (cwa2112) Pan, Wendy (wp2213) Qinami, Klint (kq2129) Vaccaro, Jason (jhv2111) [System
More informationIntermediate Formats. for object oriented languages
Intermediate Formats for object oriented languages Program Representation Goals Enable Program Analysis and Transformation Semantic Checks, Correctness Checks, Optimizations Structure Translation to Machine
More informationCompute Shaders. Christian Hafner. Institute of Computer Graphics and Algorithms Vienna University of Technology
Compute Shaders Christian Hafner Institute of Computer Graphics and Algorithms Vienna University of Technology Overview Introduction Thread Hierarchy Memory Resources Shared Memory & Synchronization Christian
More informationCONTENTS: Array Usage Multi-Dimensional Arrays Reference Types. COMP-202 Unit 6: Arrays
CONTENTS: Array Usage Multi-Dimensional Arrays Reference Types COMP-202 Unit 6: Arrays Introduction (1) Suppose you want to write a program that asks the user to enter the numeric final grades of 350 COMP-202
More information4. An interpreter is a program that
1. In an aboslute loading scheme, which loader function is accomplished by programmer? A. Allocation B. LInking C. Reallocation D. both (A) and (B) 2. A compiler program written in a high level language
More informationTolerating Hardware Device Failures in Software. Asim Kadav, Matthew J. Renzelmann, Michael M. Swift University of Wisconsin Madison
Tolerating Hardware Device Failures in Software Asim Kadav, Matthew J. Renzelmann, Michael M. Swift University of Wisconsin Madison Current state of OS hardware interaction Many device drivers assume device
More informationWebGL A quick introduction. J. Madeira V. 0.2 September 2017
WebGL A quick introduction J. Madeira V. 0.2 September 2017 1 Interactive Computer Graphics Graphics library / package is intermediary between application and display hardware Application program maps
More informationDEVELOPER DAY. Shader Toolchain: HLSL in Vulkan Lei Zhang, Google MONTRÉAL APRIL Copyright Khronos Group Page 1
DEVELOPER DAY Shader Toolchain: HLSL in Vulkan Lei Zhang, Google MONTRÉAL APRIL 2018 Copyright Khronos Group 2018 - Page 1 Copyright Khronos Group 2018 - Page 2 Overview Shader toolchain - Projects - SPIR-V
More informationMAJOR: An Efficient and Extensible Tool for Mutation Analysis in a Java Compiler
MAJOR: An Efficient and Extensible Tool for Mutation Analysis in a Java Compiler René Just 1, Franz Schweiggert 1, and Gregory M. Kapfhammer 2 1 Ulm University, Germany 2 Allegheny College, USA 26th International
More informationThe Witness on Android Post Mortem. Denis Barkar 3 March, 2017
The Witness on Android Post Mortem Denis Barkar 3 March, 2017 Starting Point The Witness is in active development by Thekla Designed for PC and PS4/Xbox One Custom game engine Small codebase: about 1500
More informationRed Fox: An Execution Environment for Relational Query Processing on GPUs
Red Fox: An Execution Environment for Relational Query Processing on GPUs Haicheng Wu 1, Gregory Diamos 2, Tim Sheard 3, Molham Aref 4, Sean Baxter 2, Michael Garland 2, Sudhakar Yalamanchili 1 1. Georgia
More informationShaders CSCI 4229/5229 Computer Graphics Fall 2017
Shaders CSCI 4229/5229 Computer Graphics Fall 2017 What is a Shader? A shader is a computer program that runs on the GPU to calculate the properties of vertexes, pixels and other graphical processing Examples:
More informationThe Ultimate Developers Toolkit. Jonathan Zarge Dan Ginsburg
The Ultimate Developers Toolkit Jonathan Zarge Dan Ginsburg February 20, 2008 Agenda GPU PerfStudio GPU ShaderAnalyzer RenderMonkey Additional Tools Tootle GPU MeshMapper CubeMapGen The Compressonator
More informationThis is CS50. Harvard University Fall Quiz 0 Answer Key
Quiz 0 Answer Key Answers other than the below may be possible. Binary Bulbs. 0. Bit- Sized Questions. 1. Because 0 is non- negative, we need to set aside one pattern of bits (000) for it, which leaves
More informationBCA611 Video Oyunları için 3B Grafik
BCA611 Video Oyunları için 3B Grafik WebGL - Shader Programming Zümra Kavafoğlu Canvas element The HTML element is used to draw graphics on a web page. Create canvas with id, width and height
More informationAbout this exam review
Final Exam Review About this exam review I ve prepared an outline of the material covered in class May not be totally complete! Exam may ask about things that were covered in class but not in this review
More informationGPGPU. Peter Laurens 1st-year PhD Student, NSC
GPGPU Peter Laurens 1st-year PhD Student, NSC Presentation Overview 1. What is it? 2. What can it do for me? 3. How can I get it to do that? 4. What s the catch? 5. What s the future? What is it? Introducing
More informationNVIDIA FX Composer. Developer Presentation June 2004
NVIDIA FX Composer Developer Presentation June 2004 1 NVIDIA FX Composer FX Composer empowers developers to create high performance shaders in an integrated development environment with real-time preview
More informationRenderMonkey 1.6. Natalya Tatarchuk ATI Research
RenderMonkey 1.6 Natalya Tatarchuk ATI Research Game Developer Conference, San Francisco, CA, March 2005 Overview > What is RenderMonkey? > What s New In RenderMonkey 1.6? 2 What is RenderMonkey? > Shader
More informationSOLUTION TO SHADER RECOMPILES IN RADEONSI SEPTEMBER 2015
SOLUTION TO SHADER RECOMPILES IN RADEONSI SEPTEMBER 2015 PROBLEM Shaders are compiled in draw calls Emulating certain features in shaders Drivers keep shaders in some intermediate representation And insert
More informationIntroduction. L25: Modern Compiler Design
Introduction L25: Modern Compiler Design Course Aims Understand the performance characteristics of modern processors Be familiar with strategies for optimising dynamic dispatch for languages like JavaScript
More informationShader Programs. Lecture 30 Subsections 2.8.2, Robb T. Koether. Hampden-Sydney College. Wed, Nov 16, 2011
Shader Programs Lecture 30 Subsections 2.8.2, 2.8.3 Robb T. Koether Hampden-Sydney College Wed, Nov 16, 2011 Robb T. Koether (Hampden-Sydney College) Shader Programs Wed, Nov 16, 2011 1 / 43 Outline 1
More informationProgramming shaders & GPUs Christian Miller CS Fall 2011
Programming shaders & GPUs Christian Miller CS 354 - Fall 2011 Fixed-function vs. programmable Up until 2001, graphics cards implemented the whole pipeline for you Fixed functionality but configurable
More informationCopyright Khronos Group 2012 Page 1. Teaching GL. Dave Shreiner Director, Graphics and GPU Computing, ARM 1 December 2012
Copyright Khronos Group 2012 Page 1 Teaching GL Dave Shreiner Director, Graphics and GPU Computing, ARM 1 December 2012 Copyright Khronos Group 2012 Page 2 Agenda Overview of OpenGL family of APIs Comparison
More informationLoops. CSE 114, Computer Science 1 Stony Brook University
Loops CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Motivation Suppose that you need to print a string (e.g., "Welcome to Java!") a user-defined times N: N?
More informationNVIDIA Developer Toolkit. March 2005
NVIDIA Developer Toolkit March 2005 1 Why Do We Do This? Investing in Developers Worldwide Powerful tools for building games Performance Analysis Content Creation Software Development Practical SDK with
More informationGeneral introduction: GPUs and the realm of parallel architectures
General introduction: GPUs and the realm of parallel architectures GPU Computing Training August 17-19 th 2015 Jan Lemeire (jan.lemeire@vub.ac.be) Graduated as Engineer in 1994 at VUB Worked for 4 years
More informationProgramming with OpenGL Shaders I. Adapted From: Ed Angel Professor of Emeritus of Computer Science University of New Mexico
Programming with OpenGL Shaders I Adapted From: Ed Angel Professor of Emeritus of Computer Science University of New Mexico Objectives Shader Programming Basics Simple Shaders Vertex shader Fragment shaders
More information