diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-05 13:50:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-07 09:31:27 +0100 |
commit | b202008f8f6470f256d3b9000a9f78b6ca8d932b (patch) | |
tree | 65613932a482e39f28df60698f20fb1ef4ec5ca4 /configure.ac | |
parent | dbb585b9d2510efa9f8432bc25842fa14a8e495e (diff) |
sna: Experiment with a new ioctl to create buffers from stolen memory
If there is stolen memory reserved by the BIOS, we want to utilize it in
preference to regular system memory. However, given the caveat that it
is not suitable for CPU access, rules out most use cases - but it is a
good match for framebuffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 79018d56..46a5a6fe 100644 --- a/configure.ac +++ b/configure.ac @@ -328,6 +328,16 @@ if test "x$accel" = xnone -a "x$UMS_ONLY" != "xyes"; then AC_MSG_ERROR([No default acceleration option]) fi +AC_ARG_ENABLE(create2, + AS_HELP_STRING([--enable-create2], + [Enable use of create2 ioctl (experimental) [default=no]]), + [CREATE2="$enableval"], + [CREATE2=no]) +AM_CONDITIONAL(USE_CREATE2, test x$CREATE2 = xyes) +if test "x$CREATE2" = xyes; then + AC_DEFINE(USE_CREATE2,1,[Assume "create2" support]) +fi + AC_ARG_ENABLE(userptr, AS_HELP_STRING([--enable-userptr], [Enable use of userptr (experimental) [default=no]]), @@ -335,7 +345,7 @@ AC_ARG_ENABLE(userptr, [USERPTR=no]) AM_CONDITIONAL(USE_USERPTR, test x$USERPTR = xyes) if test "x$USERPTR" = xyes; then - AC_DEFINE(USE_USERPTR,1,[Assume USERPTR support]) + AC_DEFINE(USE_USERPTR,1,[Assume "userptr" support]) fi AC_ARG_ENABLE(async-swap, |