summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-01-06 21:02:44 -0800
committerEric Anholt <eric@anholt.net>2015-10-19 00:14:17 -0700
commitb708e58ac8dbb44c149af946cba5667311db7fd8 (patch)
tree02c48b0f6e09f139c3a2b3830efeaabdb541dd36
parent1d533c3d5db6f24e43d4f6254fcc17eb63642b13 (diff)
modesetting: Make ms_crtc_on non-static.
I want to use this in present.c. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit f2171d0a20d3b3858a282c51c1561432de1b29ef)
-rw-r--r--hw/xfree86/drivers/modesetting/driver.h2
-rw-r--r--hw/xfree86/drivers/modesetting/vblank.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/hw/xfree86/drivers/modesetting/driver.h b/hw/xfree86/drivers/modesetting/driver.h
index 3decc3eea..4b6ae87fa 100644
--- a/hw/xfree86/drivers/modesetting/driver.h
+++ b/hw/xfree86/drivers/modesetting/driver.h
@@ -118,6 +118,8 @@ void ms_drm_abort(ScrnInfoPtr scrn,
Bool (*match)(void *data, void *match_data),
void *match_data);
+Bool ms_crtc_on(xf86CrtcPtr crtc);
+
xf86CrtcPtr ms_dri2_crtc_covering_drawable(DrawablePtr pDraw);
xf86CrtcPtr ms_covering_crtc(ScrnInfoPtr scrn, BoxPtr box,
xf86CrtcPtr desired, BoxPtr crtc_box_ret);
diff --git a/hw/xfree86/drivers/modesetting/vblank.c b/hw/xfree86/drivers/modesetting/vblank.c
index a342662a7..91cfcf2d5 100644
--- a/hw/xfree86/drivers/modesetting/vblank.c
+++ b/hw/xfree86/drivers/modesetting/vblank.c
@@ -88,7 +88,7 @@ static int ms_box_area(BoxPtr box)
return (int)(box->x2 - box->x1) * (int)(box->y2 - box->y1);
}
-static Bool
+Bool
ms_crtc_on(xf86CrtcPtr crtc)
{
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;