summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)AuthorFilesLines
2016-07-07mesa: don't install GLX files if GLX is not builtAkihiko Odaki1-0/+1
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> [Emil Velikov: Drop guards around dri_interface.h, add stable tag] Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 42968424fb4100f2035badf236b005cc8d62a592)
2016-07-07anv: install the intel_icd.json to ${datarootdir} by defaultEmil Velikov1-1/+1
As mentioned by the spec (and used by Archlinux and Debian) default to ${datarootdir} as opposed to ${sysconfdir} for the default location. Cc: Jason Ekstrand <jason@jlekstrand.net> Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit cbc37f72e3d0d50a2200d6e6520e22dd5992adb5)
2016-07-07anv: use cache uuid based on the build timestamp.Emil Velikov1-0/+2
Do not rely on the git sha1: - its current truncated form makes it less unique - it does not attribute for local (Vulkand or otherwise) changes Use a timestamp produced at the time of build. It's perfectly unique, unless someone explicitly thinkers with their system clock. Even then chances of producing the exact same one are very small, if not zero. v2: Remove .tmp rule. Its not needed since we want for the header to be regenerated on each time we call make (Eric). v3: - Honour SOURCE_DATE_EPOCH, to make the build reproducible (Michel) - Replace the generated header with a define, to prevent needless builds on consecutive `make' and/or `make install' calls. (Dave) v4: - Keep the timestamp generation at make time. (Jason) v5: - Ensure that file is regenerated on incremental builds. Cc: Michel Dänzer <michel@daenzer.net> Cc: Dave Airlie <airlied@gmail.com> Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit addb099ce83c9b9909966a5cd364b85cedef1ee1)
2016-07-07Revert "swr: Refactor checks for compiler feature flags"Emil Velikov1-57/+0
This reverts commit a380199e3968462da8291e8dda25888f19e86783.
2016-07-07swr: Refactor checks for compiler feature flagsChuck Atkins1-0/+57
Encapsulate the test for which flags are needed to get a compiler to support certain features. Along with this, give various options to try for AVX and AVX2 support. Ideally we want to use specific instruction set feature flags, like -mavx2 for instance instead of -march=haswell, but the flags required for certain compilers are different. This allows, for AVX2 for instance, GCC to use -mavx2 -mfma -mbmi2 -mf16c while the Intel compiler which doesn't support those flags can fall back to using -march=core-avx2. This addresses a bug where the Intel compiler will silently ignore the AVX2 instruction feature flags and then potentially fail to build. v2: Pass preprocessor-check argument as true-state instead of false-state for clarity. v3: Reduce AVX2 define test to just __AVX2__. Additional defines suchas __FMA__, __BMI2__, and __F16C__ appear to be inconsistently defined w.r.t thier availability. v4: Fix C++11 flags being added globally and add more logic to swr_require_cxx_feature_flags Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com> Tested-by: Tim Rowley <timothy.o.rowley@Intel.com> Signed-off-by: Chuck Atkins <chuck.atkins@kitware.com> (cherry picked from commit c1bf6692beb662e5749e5680e0ebd15af2cd032a) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-06-15configure.ac: strip out the llvm-config -march/mtune flagsEmil Velikov1-0/+3
Otherwise drivers such as SWR that depend on providing their own values will fail to build. v2: Add -mcpu for good measure (Chuck) Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org> Cc: Tim Rowley <timothy.o.rowley@intel.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Chuck Atkins <chuck.atkins@kitware.com> Tested-by: Chuck Atkins <chuck.atkins@kitware.com> (cherry picked from commit bab5ab69402594637359289c1b5ec6491e91d252)
2016-06-02Don't use python 3Dylan Baker1-8/+0
Now there are not files that require python 3, so for now just remove the python 3 dependency and use python 2. I think the right plan is to just get all of the python ready for python 3, and then use whatever python is available. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org> (cherry picked from commit 604010a7edbe03ff65720cab8dddba1d0ca1571b)
2016-05-30configure.ac: correct the xlib/xlib-gallium GLX detection for GLVNDChuck Atkins1-26/+29
Things have changed since commit a92910a ("glx: Refactor the configure options for glx implementation choice (v3)") where only a single configure option is used to control the GLX provider. [Emil Velikov: Ensure that the check is moved after the detection code.] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30glx: Implement the libglvnd interface.Kyle Brenneman1-2/+47
With reference to the libglvnd branch: https://cgit.freedesktop.org/mesa/mesa/log/?h=libglvnd This is a squashed commit containing all of Kyle's commits, all but two of Emil's commits (to follow), and a small fixup from myself to mark the rest of the glX* functions as _GLX_PUBLIC so they are not exported when building for libglvnd. I (ajax) squashed them together both for ease of review, and because most of the changes are un-useful intermediate states representing the evolution of glvnd's internal API. Co-author: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-05-24c11/threads: resolve link issues with -O0Emil Velikov1-0/+1
Add weak symbol notation for the pthread_mutexattr* symbols, thus making the linker happy. When building with -O1 or greater the optimiser will kick in and remove the said functions as they are dead/unreachable code. Ideally we'll enable the optimisations locally, yet that does not seem to work atm. v2: Add the AX_GCC_FUNC_ATTRIBUTE([weak]) hunk in configure. Cc: Alejandro Piñeiro <apinheiro@igalia.com> Cc: Ben Widawsky <ben@bwidawsk.net> Cc: Ilia Mirkin <imirkin@alum.mit.edu> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Tested-by: Rob Clark <robdclark@gmail.com> Tested-by: Mark Janes <mark.a.janes@intel.com>
2016-05-23configure.ac: Add support for Android buildsNicolas Boichat1-0/+10
Add support for EGL android platform. Also, detect when --host finishes with -android. In that case, we do not set _GNU_SOURCE, and define autoconf symbol HAVE_ANDROID, so that Android-specific workarounds can be applied. Signed-off-by: Nicolas Boichat <drinkcat@google.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> [Emil Velikov: Rebase on top of HAVE_EGL_PLATFORM_NULL removal] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-23configure.ac: error out when building from git without python3Emil Velikov1-0/+6
Bail early, as opposed to later on during the build. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-23configure.ac: add pthreadstubs supportRob Herring1-0/+4
Add pthreadstubs to avoid pulling in full pthreads library. GBM will be the first user. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2016-05-23configure: added xcb to dri3 modules to pkg-confAndres Gomez1-1/+1
This fixes a recent linking error in libvulkan_common Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Andres Gomez <agomez@igalia.com>
2016-05-16vl/dri3: add DRI3 support and implement create and destroyLeo Liu1-1/+6
Required functions into place for implementation, create screen with device fd returned from X server, also bail out to DRI2 with certain conditions. v2: -organize the error out path (Axel) -squash previous patch 1 and 2 into one (Emil) Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2016-05-16util: Add ATTRIBUTE_RETURNS_NONNULL.Matt Turner1-0/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-05-01configure.ac: remove unused HAVE_EGL_PLATFORM_NULL conditionalEmil Velikov1-1/+0
Afaict the last user was based on st/egl. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-01automake: drop "EGL_" from HAVE_EGL_PLATFORM_WAYLANDEmil Velikov1-1/+1
Analogous to previous commit. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-01automake: drop "EGL_" from HAVE_EGL_PLATFORM_X11Emil Velikov1-1/+1
The variable covers more than just EGL, let's try to untangle the confusion it brings. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-01anv: fold the tests' makefileEmil Velikov1-1/+0
Recent commit removed the winsys defines from anv_private.h thus breaking the tests. To fix that and avoid it in the future, merge the tests makefile in the libvulkan one. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net>
2016-05-01glx: Refactor the configure options for glx implementation choice (v3)Chuck Atkins1-51/+64
Instead of cascading support for various different implementations of GLX, all three options are now specified through the --enable-glx option: --enable-glx=dri : Enable the DRI-based GLX --enable-glx=xlib : Enable the classic Xlib-based GLX --enable-glx=gallium-xlib : Enable the gallium Xlib-based GLX --enable-glx[=yes] : Defaults to dri if DRI is enabled, else gallium-xlib if gallium is enabled, else xlib This removes the --enable-xlib-glx option and fixes a bug in which both the classic xlib-glx and gallium xlib-glx implementations were getting built causing different versioned and conflicting libGL libraries to be installed. v2: Changes from various review feedback from Emil: a) Fixed typos b) Corrected help docs for new option c) Added appropriate a-b and r-b tags in commit msg d) Fixed various GLX related dependency checks. v3: Rebased to current master and added changelog in commit msg Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94086 Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-04-26i965/blorp: Convert state setup to CJason Ekstrand1-0/+3
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-04-26i965/blorp: Convert brw_blorp.cpp to a C fileJason Ekstrand1-0/+5
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-04-23configure.ac: search for and set PYTHON3Jonathan Gray1-0/+2
src/intel/genxml/gen_pack_header.py requires python3. v2: check for python3.5 as well Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-21i965: Add a dependency on libislJason Ekstrand1-1/+2
To avoid build issues, ensure that you're running `make' at the top level and/or you've executed `make clean' beforehand. Reviewed-by: Chad Versace <chad.versace@intel.com>
2016-04-15Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-16/+35
2016-04-15configure: Add support for the Intel Vulkan driverJason Ekstrand1-0/+63
This adds a --with-vulkan-drivers option with one driver, "intel". In the future, we may add more drivers to this list. v2: Don't enable any drivers by default. This should prevent this patch from breaking anyone's build. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-15gallium/swr: confine c++11 flag to swr driverTim Rowley1-2/+7
On the philosophy that a driver shouldn't change the compile flags for the entire tree, take the clove approach of moving the c++11 flag to the swr driver directory. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-04-15gallium/swr: allow swr use as a swrast dri driverTim Rowley1-0/+3
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-04-15configure: Add support for detecting valgrind headersJason Ekstrand1-0/+21
We have several places where the Vulkan driver explicitly hooks into valgrind when it's available. We need to be able to detect it. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-04-14Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-2/+0
2016-04-14configure: Add initial support for enabling Vulkan driversJason Ekstrand1-2/+66
2016-04-14gallium/swr: fold the almost identical MakefilesEmil Velikov1-2/+0
Rather than having two almost identical Makefiles, with various VPATH hacks just fold them, using COMMON_* variables and actually getting things buildable/shipable. v2: whitespace fixes, remove Makefile.sources-arch Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
2016-04-13Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-2/+2
2016-04-11configure.ac: update the path of the generated filesEmil Velikov1-2/+2
... in order to determine if we need bison/flex. Failing to locate the files will lead to mandating bison/flex even when building from a release tarball. CC: "11.2" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-03-24Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-16/+5
2016-03-20r600g: remove TGSI->LLVM translationMarek Olšák1-14/+1
It was useful for testing and as a prototype for radeonsi bringup, but it's not used anymore and doesn't support OpenGL 3.3 even. v2: try to fix OpenCL build Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
2016-03-17configure.ac: enable_asm=yes when x-compiling across same X86 archDongwon Kim1-2/+4
Currently, configure script is forcing 'enable_asm' to be 'no' whenever cross-compilation is performed on X86 host. This is based on an assumption that target architecture is different from host's (i.e. ARM). But there's always a case that we do cross-compilation for target that is also X86 based just like host in which same ASM codes will be supported. 'enable_asm' should not be forced to be "no" anymore in this case. v2: corrected commit message Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
2016-03-15Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-1/+40
2016-03-14configure.ac: require libdrm 2.4.66 for drmGetDeviceMarek Olšák1-1/+1
since 737b6ed13e8f813987b5566004f0f45e9c55f1e8 src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c no longer compiles: error: unknown type name ‘drmDevicePtr’
2016-03-08st/mesa: conditionally enable GL_NV_vdpau_interopChristian König1-0/+1
Only enable it when we compile the state tracker as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-03-02mesa/build: add OpenSWR to buildTim Rowley1-0/+38
Tested on Linux (centos, ubuntu, and suse variants) Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
2016-02-24Merge remote-tracking branch 'origin/master' into vulkanKristian Høgsberg Kristensen1-1/+4
2016-02-18Move the intel vulkan driver to src/intel/vulkanJason Ekstrand1-2/+2
2016-02-18Move isl to src/intelJason Ekstrand1-1/+1
2016-02-18vulkan: Move XML and generator into src/intel/genxmlJason Ekstrand1-0/+2
2016-02-17freedreno: query max gpu freqRob Clark1-1/+1
This will be needed to support converting from cycle counts to time for performance related queries (initially time-elapsed, but there are some additional performance counters that could be wired up). Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-02-16anv: Make driver and icd file installableKristian Høgsberg Kristensen1-1/+0
Change the name of the .so to libvulkan_intel.so and add an installable icd with the installed paths. Keep the icd file with build-tree paths, but rename to dev_icd.json to make it clear that it's for development purposes.
2016-02-16configure: Bail out on llvm-config component errorJan Vesely1-0/+3
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-02-11Merge remote-tracking branch 'mesa-public/master' into vulkanJason Ekstrand1-8/+2