1. 08 Aug, 2018 1 commit
  2. 02 Aug, 2018 1 commit
  3. 21 Jul, 2018 1 commit
    • Mauro Rossi's avatar
      android: util/disk_cache: fix building errors in gallium drivers · 6cbbd5b4
      Mauro Rossi authored
      This patch applies the necessary changes in Android.common.mk
      as per automake rules, to avoid following building error:
      
      external/mesa/src/gallium/drivers/nouveau/nouveau_screen.c:159:8:
      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: 's avatarMauro Rossi <issor.oruam@gmail.com>
      Reviewed-by: 's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
      6cbbd5b4
  4. 21 May, 2018 1 commit
  5. 23 Mar, 2018 1 commit
  6. 14 Jan, 2018 1 commit
  7. 18 Dec, 2017 1 commit
  8. 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
      HAVE_FUNC_ATTRIBUTE_NORETURN.
      
      Auditing src/util/macros.h, we're also missing
      HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL and HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT,
      so add them too.
      
      Fixes: 94ca8e04 ("spirv: Add vtn_fail and vtn_assert helpers")
      Cc: Jason Ekstrand <jason.ekstrand@intel.com>
      Reviewed-by: 's avatarJason Ekstrand <jason@jlekstrand.net>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      Signed-off-by: 's avatarRob Herring <robh@kernel.org>
      20d37da5
  9. 27 Nov, 2017 1 commit
  10. 11 Oct, 2017 1 commit
  11. 03 Oct, 2017 1 commit
  12. 06 Sep, 2017 1 commit
  13. 23 Aug, 2017 1 commit
  14. 15 Aug, 2017 1 commit
  15. 06 Jun, 2017 1 commit
  16. 05 Jun, 2017 1 commit
  17. 31 May, 2017 1 commit
  18. 17 May, 2017 1 commit
  19. 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: 's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      26aee6f4
    • 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: 's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      e2ff12e9
    • 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: 's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      06260da1
    • 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: 's avatarRob Herring <robh@kernel.org>
      Reviewed-by: 's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      [Emil Velikov: drop related inline comment]
      Signed-off-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      88014bc0
    • Mauro Rossi's avatar
      Android: define required __STDC* macros as cflags · f21454ea
      Mauro Rossi 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>
      f21454ea
  20. 22 Mar, 2017 4 commits
  21. 04 Mar, 2017 1 commit
    • Mauro Rossi's avatar
      android: fix libz dynamic library dependencies · 6facb0c0
      Mauro Rossi authored
      Fixes a series of libz related building errors:
      
      target SharedLib: gallium_dri_32
      (out/target/prod...SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so)
      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
      invocation)
      
      Fixes: 85a9b1b5 "util/disk_cache: compress individual cache entries"
      6facb0c0
  22. 20 Feb, 2017 1 commit
    • Mauro Rossi's avatar
      android: define HAVE_DL_ITERATE_PHDR for build-id code · 41b56204
      Mauro Rossi 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: 's avatarTapani Pälli <tapani.palli@intel.com>
      Acked-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      41b56204
  23. 01 Feb, 2017 1 commit
  24. 27 Jan, 2017 1 commit
  25. 20 Jan, 2017 1 commit
  26. 18 Jan, 2017 2 commits
  27. 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
      Android.common.mk")
      Signed-off-by: 's avatarChih-Wei Huang <cwhuang@linux.org.tw>
      Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
      e3e5b1a4
  28. 13 Jun, 2016 2 commits
  29. 23 May, 2016 1 commit
  30. 01 May, 2016 1 commit
  31. 29 Feb, 2016 1 commit