Skip to content

Commit

Permalink
Experiment with mesa
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Jan 31, 2024
1 parent b9a022f commit b2c8338
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gpkg/mesa/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ TERMUX_PKG_BUILD_DEPENDS="llvm-glibc, libwayland-protocols-glibc, xorgproto-glib
TERMUX_PKG_PYTHON_COMMON_DEPS="mako"
# disabling libunwind, microsoft-clc and valgrind will improve performance

# -D gallium-opencl=icd
# -D vulkan-drivers=amd,swrast,broadcom,panfrost,virtio,freedreno
# -Dshader-cache=true
# -D gallium-drivers=r300,r600,radeonsi,freedreno,nouveau,swrast,virgl,zink,d3d12,etnaviv,kmsro,lima,panfrost,v3d,vc4
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-D android-libbacktrace=disabled
Expand Down Expand Up @@ -47,8 +45,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

termux_step_pre_configure() {
case $TERMUX_ARCH in
arm|aarch64) TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dvulkan-drivers=swrast,freedreno -Dfreedreno-kmds=msm,kgsl";;
*) TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dvulkan-drivers=swrast";;
arm|aarch64) TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dvulkan-drivers=amd,swrast,freedreno -Dfreedreno-kmds=msm,kgsl";;
*) TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dvulkan-drivers=amd,swrast";;
esac
LDFLAGS+=" -ltinfo -lm"
export LLVM_CONFIG=$TERMUX_PREFIX/bin/llvm-config
Expand Down
22 changes: 22 additions & 0 deletions gpkg/mesa/enable-smoothLines.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- src/src/broadcom/vulkan/v3dv_device.c 2024-01-24 23:01:24.000000000 +0300
+++ src/src/broadcom/vulkan/v3dv_device.c.patch 2024-01-31 11:04:04.927688286 +0300
@@ -383,7 +383,7 @@
/* VK_EXT_line_rasterization */
.rectangularLines = true,
.bresenhamLines = true,
- .smoothLines = false,
+ .smoothLines = true,
.stippledRectangularLines = false,
.stippledBresenhamLines = false,
.stippledSmoothLines = false,
--- src/src/freedreno/vulkan/tu_device.cc 2024-01-24 23:01:24.000000000 +0300
+++ src/src/freedreno/vulkan/tu_device.cc.patch 2024-01-31 11:04:37.987688273 +0300
@@ -505,7 +505,7 @@
/* VK_EXT_line_rasterization */
features->rectangularLines = true;
features->bresenhamLines = true;
- features->smoothLines = false;
+ features->smoothLines = true;
features->stippledRectangularLines = false;
features->stippledBresenhamLines = false;
features->stippledSmoothLines = false;

0 comments on commit b2c8338

Please sign in to comment.