glx: Simplify context API profile computation
authorAdam Jackson <ajax@redhat.com>
Mon, 16 Aug 2021 21:34:44 +0000 (17:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Aug 2021 21:11:02 +0000 (21:11 +0000)
commitfee4f7ef43250db0fa9bf6f89c0abc5306541ccd
tree910fd7bd5e3f29b7931272895b14f94e7b4cd97c
parenta521b502b93ac4a055d08804c677a692f296e9d2
glx: Simplify context API profile computation

GLX_ARB_create_context_profile has some clever language that sets the
default to core profile but silently degrades back to compat for pre-3.2
GLs. We can just do that, rather than track whether the user specified a
profile.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12456>
src/glx/dri_common.c