1. 01 Jul, 2019 1 commit
  2. 21 Jun, 2019 1 commit
  3. 08 Mar, 2019 2 commits
  4. 26 Nov, 2018 1 commit
  5. 08 Aug, 2018 1 commit
  6. 02 Aug, 2018 1 commit
  7. 21 Jul, 2018 1 commit
    • maurossi's avatar
      android: util/disk_cache: fix building errors in gallium drivers · 6cbbd5b4
      maurossi authored
      This patch applies the necessary changes in Android.common.mk
      as per automake rules, to avoid following building error:
      error: implicit declaration of function 'disk_cache_get_function_timestamp'
      is invalid in C99 [-Werror,-Wimplicit-function-declaration]
         if (disk_cache_get_function_timestamp(nouveau_disk_cache_create,
      1 error generated.
      (v2) -DENABLE_SHADER_CACHE Android cflag is kept, to leave the AS-IS capability enabled
      Fixes: cc10b34e ("util/disk_cache: Fix disk_cache_get_function_timestamp with disabled cache.")
      Signed-off-by: maurossi's avatarMauro Rossi <issor.oruam@gmail.com>
      Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
  8. 21 May, 2018 1 commit
  9. 23 Mar, 2018 1 commit
  10. 14 Jan, 2018 1 commit
  11. 18 Dec, 2017 1 commit
  12. 05 Dec, 2017 1 commit
    • Rob Herring's avatar
      Android: enable noreturn and returns_nonnull attributes · 20d37da5
      Rob Herring authored
      Commit 94ca8e04 ("spirv: Add vtn_fail and vtn_assert helpers") broke
      Android builds which have -Werror enabled with the following errors:
      external/mesa3d/src/compiler/spirv/spirv_to_nir.c:272:1: error: control may reach end of non-void function [-Werror,-Wreturn-type]
      external/mesa3d/src/compiler/spirv/spirv_to_nir.c:810:1: error: control may reach end of non-void function [-Werror,-Wreturn-type]
      The problem is the noreturn attribute is not enabled and we to define
      Auditing src/util/macros.h, we're also missing
      so add them too.
      Fixes: 94ca8e04 ("spirv: Add vtn_fail and vtn_assert helpers")
      Cc: Jason Ekstrand <jason.ekstrand@intel.com>
      Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
  13. 27 Nov, 2017 1 commit
  14. 11 Oct, 2017 1 commit
  15. 03 Oct, 2017 1 commit
  16. 06 Sep, 2017 1 commit
  17. 23 Aug, 2017 1 commit
  18. 15 Aug, 2017 1 commit
  19. 06 Jun, 2017 1 commit
  20. 05 Jun, 2017 1 commit
  21. 31 May, 2017 1 commit
  22. 17 May, 2017 1 commit
  23. 11 May, 2017 5 commits
    • Rob Herring's avatar
      Android: rework LLVM build support · 26aee6f4
      Rob Herring authored
      Currently, building with "mmma external/mesa3d" which builds all targets
      and dependencies is broken for targets that require LLVM. This is due to
      the build settings depending on MESA_ENABLE_LLVM. Instead of using a
      conditional in the global Android.common.mk, make all the components that
      need LLVM explicitly include the necessary build settings.
      GALLIVM_CPP_SOURCES doesn't exist anymore, so remove that as well.
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
    • Rob Herring's avatar
      Android: rework libelf dependencies · e2ff12e9
      Rob Herring authored
      Add libelf as a library dependency rather than explicitly listing its
      include paths. This should work for Android M and later which have the
      necessary exported directories in libelf.
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
    • Rob Herring's avatar
      Android: drop LLVM support on Lollipop · 06260da1
      Rob Herring authored
      Mesa no longer supports LLVM 3.5 for any targets we support.
      Android-x86 adds support for llvmpipe which could work, but android-x86
      for L is using mesa 11.0 anyway.
      Dropping this support enables clean-up of libelf dependencies.
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Reviewed-by: Chih-Wei Huang's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
    • Rob Herring's avatar
      Android: Fix swrast only build · 88014bc0
      Rob Herring authored
      A build of only swrast is broken as the Android EGL now depends on
      libdrm as does GBM. While we could make EGL conditionally depend on
      libdrm, we probably want to enable kms_dri winsys as well and that will
      need libdrm enabled. So just always enable libdrm and simplify the
      Android makefiles a bit.
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Reviewed-by: Chih-Wei Huang's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      [Emil Velikov: drop related inline comment]
      Signed-off-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
    • maurossi's avatar
      Android: define required __STDC* macros as cflags · f21454ea
      maurossi authored
      Necessary to fix the following radeonsi building errors:
      In file included from external/mesa/src/gallium/drivers/radeonsi/si_blit.c:24:
      In file included from external/mesa/src/gallium/drivers/radeonsi/si_pipe.h:29:
      In file included from external/mesa/src/gallium/drivers/radeonsi/si_shader.h:71:
      In file included from external/llvm/include/llvm-c/Core.h:18:
      In file included from external/llvm/include/llvm-c/ErrorHandling.h:17:
      In file included from external/llvm/include/llvm-c/Types.h:17:
      external/llvm/include/llvm/Support/DataTypes.h:49:3: error: "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
      external/llvm/include/llvm/Support/DataTypes.h:53:3: error: "Must #define __STDC_CONSTANT_MACROS before "         "#including Support/DataTypes.h"
      2 errors generated.
      [Emil Velikov: add inline comment about the defines]
      Signed-off-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
  24. 22 Mar, 2017 4 commits
  25. 04 Mar, 2017 1 commit
    • maurossi's avatar
      android: fix libz dynamic library dependencies · 6facb0c0
      maurossi authored
      Fixes a series of libz related building errors:
      target SharedLib: gallium_dri_32
      external/elfutils/libelf/elf_compress.c:117: error: undefined reference to 'deflateInit_'
      external/elfutils/libelf/elf_compress.c:244: error: undefined reference to 'inflateEnd'
      clang++: error: linker command failed with exit code 1 (use -v to see
      Fixes: 85a9b1b5 "util/disk_cache: compress individual cache entries"
  26. 20 Feb, 2017 1 commit
    • maurossi's avatar
      android: define HAVE_DL_ITERATE_PHDR for build-id code · 41b56204
      maurossi authored
      Required due to d4fa083e "util: Add utility build-id code."
      to avoid following build error and warnings:
      external/mesa/src/intel/vulkan/anv_device.c:60:32: error: incompatible integer to pointer conversion initializing 'const struct build_id_note *' with an expression of type 'int' [-Werror,-Wint-conversion]
         const struct build_id_note *note = build_id_find_nhdr("libvulkan_intel.so");
                                     ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      external/mesa/src/intel/vulkan/anv_device.c:64:19: warning: implicit declaration of function 'build_id_length' is invalid in C99 [-Wimplicit-function-declaration]
         unsigned len = build_id_length(note);
      external/mesa/src/intel/vulkan/anv_device.c:68:4: warning: implicit declaration of function 'build_id_read' is invalid in C99 [-Wimplicit-function-declaration]
         build_id_read(note, uuid, VK_UUID_SIZE);
      3 warnings and 1 error generated.
      [ 40% 1438/3588] target  C: libmesa_vulkan_common_32 <= external/mesa/src/intel/vulkan/anv_image.c
      ninja: build stopped: subcommand failed.
      build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
      make: *** [ninja_wrapper] Error 1
      Fixes: d4fa083e ("util: Add utility build-id code.")
      Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
      Acked-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
  27. 01 Feb, 2017 1 commit
  28. 27 Jan, 2017 1 commit
  29. 20 Jan, 2017 1 commit
  30. 18 Jan, 2017 2 commits
  31. 02 Nov, 2016 1 commit
    • Chih-Wei Huang's avatar
      android: avoid using libdrm with host modules · e3e5b1a4
      Chih-Wei Huang authored
      Note LOCAL_CFLAGS and LOCAL_SHARED_LIBRARIES in Android.common.mk
      are used by both host and target modules. However, commit 112e9883
      moved libdrm related flags to common. It causes the errors like:
      error: 'out/host/linux-x86/obj32/SHARED_LIBRARIES/libdrm_intermediates/export_includes',
      needed by 'out/host/linux-x86/obj32/EXECUTABLES/mesa_gen_matypes_intermediates/import_includes',
      missing and no known rule to make it
      No reason to use libdrm with host modules.
      Cc: "13.0" <mesa-stable@lists.freedesktop.org>
      Fixes: 112e9883 ("Android: move libdrm settings to top-level
      Signed-off-by: Chih-Wei Huang's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>