google / graphicsfuzz

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

Avoid discard in live-donated code #1114

Closed afd closed 3 years ago

afd commented 3 years ago

Removes discard statements from a donor during live code donation, instead of only removing discards from the statements that get locally donated. This avoids roblems where a donated statement calls a function that contains a discard.

Some tests are also refactored.

Fixes #1110.