r600g: fixes a segfault in the piglit fbo-genmipmap-formats test.