nvc0: don't access array out of bounds on unexpected sample count