Reftest both CPU and GPU rendering

Alternative to PR #1610.