google / graphicsfuzz

A testing framework for automatically finding and simplifying bugs in graphics shader compilers.
Apache License 2.0
561 stars 117 forks source link

Add ShaderTrap back-end to gfauto #1160

Open afd opened 2 years ago

afd commented 2 years ago

gfauto is currently geared towards generating Amber tests. It would be useful to give it the ability to generate ShaderTrap tests, in order to be able to test GL and GLES drivers.

Currently gfauto has a fuzz_glsl_test file, which has most of the logic for the fuzzing process, and fuzz_spirv_test, which provides the ability to test using spirv-fuzz. fuzz_spirv_test uses quite a lot of the logic in fuzz_glsl_test.

Adding a ShaderTrap back-end without first refactoring could make things rather messy, so I propose the following pathway:

For now, the ShaderTrap back-end will use the existing .json shader job format.

@paulthomson for info.