checkpoint: implement z/depth testing