glx: fixup symbol name for get_extensions function

glxProbeDriver() concatenates __DRI_DRIVER_GET_EXTENSIONS with driver name
to get symbol name for get_extension function. Unfortunately that doesn't
work for drivers that have hyphen in their name, e.g. sun4i-drm --
get_extensions() for these uses underscore instead.

As result dlsym() doesn't find get_extension() function and AIGLX
initialization fails resulting in following message in Xorg.0.log:

(EE) AIGLX error: sun4i-drm does not export required DRI extension

Replace all non-alpha-numeric characters with underscore to fix the issue.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
(cherry picked from commit b56e5010)
3 jobs for server-1.20-branch-backport in 5 minutes and 19 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed #9428032
debian-testing

00:00:20

 
  Build And Test
passed #9428033
autotools-build-and-test

00:04:59

passed #9428034
meson-build-and-test

00:01:54