glx: Simplify __glxGetMscRate, it only needs the screen, not a drawable
authorLauri Kasanen <cand@gmx.com>
Sun, 15 Dec 2013 10:37:55 +0000 (12:37 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 21 Dec 2013 00:43:08 +0000 (16:43 -0800)
commitfe2079c4c014934d1a5dbc87733742fea5a619da
tree8ce123d05842148e8b9ed84bcf442dd3b52020d5
parent6b5111398110f9ae374723ad6225ada1a0e60fd2
glx: Simplify __glxGetMscRate, it only needs the screen, not a drawable

Useful in its own right, but also needed for adaptive vsync.

No regressions in the piglit glx-oml-sync-control-getmscrate test.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri_common.c
src/glx/glxclient.h
src/glx/glxcmds.c