softpipe: Use STATIC_ASSERT whenever possible.