summaryrefslogtreecommitdiff
path: root/src/glx/dri_common.c
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2013-12-15 12:37:55 +0200
committerIan Romanick <ian.d.romanick@intel.com>2013-12-20 16:43:08 -0800
commitfe2079c4c014934d1a5dbc87733742fea5a619da (patch)
tree8ce123d05842148e8b9ed84bcf442dd3b52020d5 /src/glx/dri_common.c
parent6b5111398110f9ae374723ad6225ada1a0e60fd2 (diff)
downloadmesa-fe2079c4c014934d1a5dbc87733742fea5a619da.tar.gz
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>
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r--src/glx/dri_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 22ba248cfb0..b5058c97c6e 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -223,7 +223,7 @@ __driGetMSCRate(__DRIdrawable *draw,
{
__GLXDRIdrawable *glxDraw = loaderPrivate;
- return __glxGetMscRate(glxDraw, numerator, denominator);
+ return __glxGetMscRate(glxDraw->psc, numerator, denominator);
}
_X_HIDDEN const __DRIsystemTimeExtension systemTimeExtension = {