dri3: Return the current swap interval from glXGetSwapIntervalMESA().

We were caching only the value set with glXSwapIntervalSGI(), missing out
on the default setting of the swap interval by the loader.  This fixes
glxgears's warning about being vblank synchronized by default.

Fixes: 9777c423 ("loader: drop the [gs]et_swap_interval callbacks")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
15 jobs for !554 with dri3-vblank in 11 minutes and 38 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Containers Build
passed #207720
ubuntu

00:01:00

 
  Build+Test
failed #207721
autotools

00:01:02

passed #207723
meson-clang

00:10:36

failed #207729
meson-gallium-clover-llvm

00:00:06

failed #207730
meson-gallium-clover-llvm39

00:00:07

failed #207728
meson-gallium-drivers-other

00:01:11

failed #207727
meson-gallium-radeonsi

00:01:12

failed #207731
meson-gallium-st-other

00:00:06

failed #207722
meson-gallium-swr

00:00:44

failed #207726
meson-glvnd

00:00:06

failed #207725
meson-loader-classic-dri

00:00:07

failed #207724
meson-vulkan

00:00:53

failed #207733
scons-llvm

00:00:07

failed #207732
scons-nollvm

00:00:06

failed #207734
scons-swr

00:00:06

 
Name Stage Failure
failed
scons-nollvm Build+Test
Fetching changes...
fatal: remote origin already exists.
Clean repository
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
scons-llvm Build+Test
Fetching changes...
fatal: remote origin already exists.
Clean repository
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
scons-swr Build+Test
Running on runner-x8xwaybY-project-210-concurrent-0 via packet-2.ci.gitlab.freedesktop.org...
Fetching changes...
HEAD is now at 7dfaf025c5 anv: enable VK_EXT_shader_stencil_export
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-vulkan Build+Test
 * [new tag]         useful                     -> useful
* [new tag] vtx-0-2-21112003-freeze -> vtx-0-2-21112003-freeze
* [new tag] vtx-0-2-24112003 -> vtx-0-2-24112003
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
autotools Build+Test
 * [new tag]         useful                     -> useful
* [new tag] vtx-0-2-21112003-freeze -> vtx-0-2-21112003-freeze
* [new tag] vtx-0-2-24112003 -> vtx-0-2-24112003
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-swr Build+Test
Running on runner-x8xwaybY-project-210-concurrent-0 via packet-2.ci.gitlab.freedesktop.org...
Cloning repository...
Cloning into '/builds/anholt/mesa'...
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-drivers-other Build+Test
 * [new tag]         useful                     -> useful
* [new tag] vtx-0-2-21112003-freeze -> vtx-0-2-21112003-freeze
* [new tag] vtx-0-2-24112003 -> vtx-0-2-24112003
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-radeonsi Build+Test
 * [new tag]         useful                     -> useful
* [new tag] vtx-0-2-21112003-freeze -> vtx-0-2-21112003-freeze
* [new tag] vtx-0-2-24112003 -> vtx-0-2-24112003
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-st-other Build+Test
Running on runner-x8xwaybY-project-210-concurrent-0 via packet-2.ci.gitlab.freedesktop.org...
Fetching changes...
HEAD is now at 7dfaf025c5 anv: enable VK_EXT_shader_stencil_export
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-loader-classic-dri Build+Test
Fetching changes...
fatal: remote origin already exists.
Clean repository
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-clover-llvm39 Build+Test
Fetching changes...
fatal: remote origin already exists.
Clean repository
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-glvnd Build+Test
Running on runner-x8xwaybY-project-210-concurrent-0 via packet-2.ci.gitlab.freedesktop.org...
Fetching changes...
HEAD is now at 7dfaf025c5 anv: enable VK_EXT_shader_stencil_export
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
meson-gallium-clover-llvm Build+Test
Fetching changes...
fatal: remote origin already exists.
Clean repository
Checking out edc7deec as dri3-vblank...
fatal: reference is not a tree: edc7deec42bc5f97d0eae9f910d79c6bc31e05ce
Uploading artifacts...
WARNING: untracked: no files
ERROR: No files to upload
ERROR: Job failed: exit code 1