sna: Enable kernel rotation support by default
The kernel API is now upstream and so we can rely on it not changing. Time to use it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f36b7a4aac
commit
105d478cdd
11
configure.ac
11
configure.ac
|
|
@ -742,17 +742,6 @@ if test "x$CREATE2" = "xyes"; then
|
|||
xp_msg="$xp_msg create2"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(rotation,
|
||||
AS_HELP_STRING([--enable-rotation],
|
||||
[Enable use of native rotations (experimental) [default=no]]),
|
||||
[ROTATION="$enableval"],
|
||||
[ROTATION="no"])
|
||||
AM_CONDITIONAL(USE_ROTATION, test "x$ROTATION" = "xyes")
|
||||
if test "x$ROTATION" = "xyes"; then
|
||||
AC_DEFINE(USE_ROTATION,1,[Assume "rotation" support])
|
||||
xp_msg="$xp_msg rotation"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(async-swap,
|
||||
AS_HELP_STRING([--enable-async-swap],
|
||||
[Enable use of asynchronous swaps (experimental) [default=no]]),
|
||||
|
|
|
|||
|
|
@ -2223,7 +2223,6 @@ static const xf86CrtcFuncsRec sna_crtc_funcs = {
|
|||
|
||||
inline static bool prop_is_rotation(struct drm_mode_get_property *prop)
|
||||
{
|
||||
#if USE_ROTATION
|
||||
if ((prop->flags & (1 << 5)) == 0)
|
||||
return false;
|
||||
|
||||
|
|
@ -2231,9 +2230,6 @@ inline static bool prop_is_rotation(struct drm_mode_get_property *prop)
|
|||
return false;
|
||||
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int plane_details(struct sna *sna, struct plane *p)
|
||||
|
|
|
|||
Loading…
Reference in New Issue