graphicsfuzz icon indicating copy to clipboard operation
graphicsfuzz copied to clipboard

A testing framework for automatically finding and simplifying bugs in graphics shader compilers.

GraphicsFuzz

License Build Status

GraphicsFuzz is a set of tools for testing shader compilers

GraphicsFuzz provides tools for automatically finding and simplifying bugs in graphics drivers, specifically graphics shader compilers. The glsl-fuzz and glsl-reduce tools manipulate GLSL shaders, targeting SPIR-V compilers via translation. The spirv-fuzz and spirv-reduce tools directly manipulate SPIR-V shaders.

Download and run

Follow the gfauto README. The gfauto command line tool is the recommended way of automatically downloading and running our fuzzers to test Vulkan drivers in a "push-button" fashion with minimal interaction. See below if you want to read about individual tools and/or use them as standalone command line tools.

Tool documentation

  • gfauto: the recommended way of automatically downloading and running our fuzzers to test Vulkan drivers in a "push-button" fashion with minimal interaction
  • glsl-fuzz: a family of tools for testing GLSL shader compilers using randomized metamorphic testing
  • glsl-reduce: a stand-alone GLSL shader reducer
  • spirv-fuzz: a stand-alone SPIR-V shader fuzzer and shrinker that uses randomized metamorphic testing
  • spirv-reduce: a stand-alone SPIR-V shader reducer

glsl-fuzz

  • The glsl-fuzz tools are developed in this repo
  • How it works (high-level): metamorphic testing using glsl-fuzz
  • glsl-fuzz walkthrough
  • glsl-generate manual
  • glsl-reduce manual (for reducing fuzzed shaders)
  • Pre-built binaries are available on the GitHub releases page of this repo
  • Developer documentation with build instructions

glsl-reduce

  • glsl-reduce is developed in this repo
  • Introduction: my shader is being weird, now what?
  • glsl-reduce walkthrough
  • glsl-reduce manual
  • Pre-built binaries are available with glsl-fuzz on the GitHub releases page of this repo

spirv-fuzz

spirv-reduce

Contribute

  • Contributing (requires Google CLA)
  • License (Apache 2.0)
  • Developer documentation for glsl-fuzz

Further reading

GraphicsFuzz blog posts:

Academic research project blog posts:

Academic publications:

This is not an officially supported Google product.