utils/wflinfo: allow requesting a core profile without a version

Previously, this command would fail:
wflinfo --platform=glx --api=gl --profile=core
Unless the --version parameter was also added.

Now, if --version is not specified, and we are trying to
create an OpenGL CORE profile, then wflinfo will try a
set of known OpenGL CORE profile versions and will print
information for the highest version profile created.

v2:
 * remove 3.1 from 'known' core profile versions

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
wflinfo: Initialize opts->context_profile to WAFFLE_NONE, not -1

wflinfo initialized context_profile to -1 so that it could detect if the
user gave --profile on the cmdline. But wflinfo didn't use that
information.

This patch should not change wflinfo's behavior. But it's required to
make work Jordan's next patch to allow --profile=compat without
--version.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
utils/wflinfo: allow requesting a compat profile without a version

Similar to the behavior of --profile=core, we will now
scan a list of 'known' profile supporting GL versions
when the user requests a compat profile, but does not
specify a version.

Tested on the NVIDIA 310.44 driver. It exposes GL_ARB_compatibility
as expected when --profile=compat is used, and does not when
--profile=core is used.

Signed-off-by: Jordan Justen <jljusten@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>