2008-05-28 14:33:07 +02:00
|
|
|
# Copyright 2005 Adam Jackson.
|
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
|
|
|
# license, and/or sell copies of the Software, and to permit persons to whom
|
|
|
|
# the Software is furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice (including the next
|
|
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
# Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
# this is obnoxious:
|
|
|
|
# -module lets us name the module exactly how we want
|
|
|
|
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
|
|
|
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
|
|
|
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
|
|
|
|
2014-08-26 20:06:23 +02:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) $(LIBDRM_CFLAGS) $(UDEV_CFLAGS) $(CWARNFLAGS)
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
$(XORG_INCS) \
|
2013-12-28 20:32:10 +01:00
|
|
|
-I$(top_srcdir)/glamor \
|
2014-08-26 20:06:23 +02:00
|
|
|
-I$(srcdir)/../../ddc \
|
modesetting: Add support for DRI2 with glamor.
This is derived from the intel driver DRI2 code, with swapchain and
pageflipping dropped, functions renamed, and vblank event management
shared code moved to a vblank.c for reuse by Present.
This allows AIGLX to load, which means that you get appropriate
visuals exposed in GL, along with many extensions under
direct-rendering that require presence in GLX (which aren't supported
in glxdriswrast.c).
v2: Drop unused header includes in pageflip.c, wrap in #ifdef GLAMOR.
Drop triple-buffering, which was totally broken in practice (I'll
try to fix this later). Fix up some style nits. Document the
general flow of pageflipping and why, rename the DRI2 frame event
type enums to reflect what they're for, and handle them in a
single switch statement so you can understand the state machine
more easily.
v3: Drop pageflipping entirely -- it's unstable on my Intel laptop
(not that the normal 2D driver is stable with pageflipping for
me), and I won't get it fixed before the merge window. It now
passes all of the OML_sync_control tests from Jamey and Theo
(except for occasional warns in timing -fullscreen -divisor 2).
v4: Fix doxygen at the top of vblank.c
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-12-31 02:23:38 +01:00
|
|
|
-I$(srcdir)/../../dri2 \
|
2014-08-26 20:06:23 +02:00
|
|
|
-I$(srcdir)/../../i2c \
|
|
|
|
-I$(srcdir)/../../modes \
|
|
|
|
-I$(srcdir)/../../parser \
|
|
|
|
-I$(srcdir)/../../ramdac \
|
|
|
|
$(NULL)
|
2008-05-28 14:33:07 +02:00
|
|
|
|
|
|
|
modesetting_drv_la_LTLIBRARIES = modesetting_drv.la
|
2011-09-29 12:49:26 +02:00
|
|
|
modesetting_drv_la_LDFLAGS = -module -avoid-version
|
2014-08-26 20:06:23 +02:00
|
|
|
modesetting_drv_la_LIBADD = $(UDEV_LIBS) $(DRM_LIBS)
|
2008-05-28 14:33:07 +02:00
|
|
|
modesetting_drv_ladir = @moduledir@/drivers
|
|
|
|
|
|
|
|
modesetting_drv_la_SOURCES = \
|
modesetting: Add support for DRI2 with glamor.
This is derived from the intel driver DRI2 code, with swapchain and
pageflipping dropped, functions renamed, and vblank event management
shared code moved to a vblank.c for reuse by Present.
This allows AIGLX to load, which means that you get appropriate
visuals exposed in GL, along with many extensions under
direct-rendering that require presence in GLX (which aren't supported
in glxdriswrast.c).
v2: Drop unused header includes in pageflip.c, wrap in #ifdef GLAMOR.
Drop triple-buffering, which was totally broken in practice (I'll
try to fix this later). Fix up some style nits. Document the
general flow of pageflipping and why, rename the DRI2 frame event
type enums to reflect what they're for, and handle them in a
single switch statement so you can understand the state machine
more easily.
v3: Drop pageflipping entirely -- it's unstable on my Intel laptop
(not that the normal 2D driver is stable with pageflipping for
me), and I won't get it fixed before the merge window. It now
passes all of the OML_sync_control tests from Jamey and Theo
(except for occasional warns in timing -fullscreen -divisor 2).
v4: Fix doxygen at the top of vblank.c
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-12-31 02:23:38 +01:00
|
|
|
dri2.c \
|
2008-05-28 14:33:07 +02:00
|
|
|
driver.c \
|
|
|
|
driver.h \
|
2011-10-03 12:35:39 +02:00
|
|
|
drmmode_display.c \
|
modesetting: Add support for DRI2 with glamor.
This is derived from the intel driver DRI2 code, with swapchain and
pageflipping dropped, functions renamed, and vblank event management
shared code moved to a vblank.c for reuse by Present.
This allows AIGLX to load, which means that you get appropriate
visuals exposed in GL, along with many extensions under
direct-rendering that require presence in GLX (which aren't supported
in glxdriswrast.c).
v2: Drop unused header includes in pageflip.c, wrap in #ifdef GLAMOR.
Drop triple-buffering, which was totally broken in practice (I'll
try to fix this later). Fix up some style nits. Document the
general flow of pageflipping and why, rename the DRI2 frame event
type enums to reflect what they're for, and handle them in a
single switch statement so you can understand the state machine
more easily.
v3: Drop pageflipping entirely -- it's unstable on my Intel laptop
(not that the normal 2D driver is stable with pageflipping for
me), and I won't get it fixed before the merge window. It now
passes all of the OML_sync_control tests from Jamey and Theo
(except for occasional warns in timing -fullscreen -divisor 2).
v4: Fix doxygen at the top of vblank.c
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-12-31 02:23:38 +01:00
|
|
|
drmmode_display.h \
|
|
|
|
vblank.c \
|
|
|
|
$(NULL)
|
2014-08-26 20:06:23 +02:00
|
|
|
|
|
|
|
drivermandir = $(DRIVER_MAN_DIR)
|
|
|
|
driverman_PRE = modesetting.man
|
|
|
|
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
|
|
|
|
|
|
|
EXTRA_DIST = modesetting.man
|
|
|
|
|
|
|
|
CLEANFILES = $(driverman_DATA)
|
|
|
|
|
|
|
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
|
|
|
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
|
|
|
|
|
|
|
.man.$(DRIVER_MAN_SUFFIX):
|
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|