softpipe: fix broken cubemap / mipmap selection code