diff options
author | Lauri Kasanen <[email protected]> | 2013-12-15 12:37:55 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-12-20 16:43:08 -0800 |
commit | fe2079c4c014934d1a5dbc87733742fea5a619da (patch) | |
tree | 8ce123d05842148e8b9ed84bcf442dd3b52020d5 /src/glx/dri_common.c | |
parent | 6b5111398110f9ae374723ad6225ada1a0e60fd2 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Tested-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r-- | src/glx/dri_common.c | 2 |
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 = { |