Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/mesa/0003-fix-for-anon-file.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ Fallback to `@TERMUX_PREFIX@/tmp` if env `XDG_RUNTIME_DIR` is not set.

--- a/src/util/anon_file.c
+++ b/src/util/anon_file.c
@@ -122,7 +122,7 @@ get_or_create_user_temp_dir(char* buf, size_t len) {
@@ -125,7 +125,7 @@ get_or_create_user_temp_dir(void) {
return buf;
}

- snprintf(buf, len, "/tmp/xdg-runtime-mesa-%ld", (long)getuid());
+ snprintf(buf, len, "@TERMUX_PREFIX@/tmp/xdg-runtime-mesa-%ld", (long)getuid());
- n = asprintf(&buf, "/tmp/xdg-runtime-mesa-%ld", (long)getuid());
+ n = asprintf(&buf, "@TERMUX_PREFIX@/tmp/xdg-runtime-mesa-%ld", (long)getuid());
if (n < 0)
return NULL;
mesa_logd("%s: XDG_RUNTIME_DIR not set; falling back to temp dir %s",
__func__, buf);
if (stat(buf, &st) == 0) {
24 changes: 0 additions & 24 deletions packages/mesa/0019-UBWC_5-and-UBWC_6-support.patch

This file was deleted.

85 changes: 0 additions & 85 deletions packages/mesa/0020-unofficial-support-adreno-830.patch

This file was deleted.

168 changes: 0 additions & 168 deletions packages/mesa/0021-unofficial-support-adreno-810-825-829.patch

This file was deleted.

41 changes: 41 additions & 0 deletions packages/mesa/0021-unofficial-support-adreno-825.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
freedreno/common: enable A825

The source code is from whitebelyash:
https://github.com/whitebelyash/mesa-unified/commit/efb4500439dca28f50bc6c874e271708dca2f821

diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py
index 4b2a004af7c..9f9f914c9ec 100644
--- a/src/freedreno/common/freedreno_devices.py
+++ b/src/freedreno/common/freedreno_devices.py
@@ -1423,6 +1423,31 @@ add_gpus([
raw_magic_regs = a8xx_base_raw_magic_regs,
))

+add_gpus([
+ GPUId(chip_id=0x44030000, name="Adreno (TM) 825"),
+ ], A6xxGPUInfo(
+ CHIP.A8XX,
+ [a7xx_base, a7xx_gen3, a8xx_base, a8xx_gen1, GPUProps(
+ # This is probably not an optimal config for gmem/sysmem, but it was working before and I don't have any 825 device to test (neither I have any trace info)
+ sysmem_ccu_color_cache_fraction = CCUColorCacheFraction.FULL.value,
+ sysmem_per_ccu_color_cache_size = 128 * 1024,
+ sysmem_ccu_depth_cache_fraction = CCUColorCacheFraction.THREE_QUARTER.value,
+ sysmem_per_ccu_depth_cache_size = 96 * 1024,
+ )],
+ num_ccu = 4,
+ num_slices = 2,
+ tile_align_w = 96,
+ tile_align_h = 32,
+ tile_max_w = 16416,
+ tile_max_h = 16384,
+ num_vsc_pipes = 32,
+ cs_shared_mem_size = 32 * 1024,
+ wave_granularity = 2,
+ fibers_per_sp = 128 * 2 * 16,
+ magic_regs = dict(),
+ raw_magic_regs = a8xx_base_raw_magic_regs,
+ ))
+
add_gpus([
GPUId(chip_id=0xffff44050A31, name="Adreno (TM) 840"),
], A6xxGPUInfo(
34 changes: 34 additions & 0 deletions packages/mesa/0022-unofficial-support-adreno-722.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Created by, or sourced from, Vauzi-17
https://github.com/Vauzi-17/710/commit/df5319f68ee857c598fffd18012d066c91ed5c08

diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py
index 9f9f914c9ec..d1f4fa4712a 100644
--- a/src/freedreno/common/freedreno_devices.py
+++ b/src/freedreno/common/freedreno_devices.py
@@ -1014,6 +1014,26 @@ add_gpus([
raw_magic_regs = a730_raw_magic_regs,
))

+add_gpus([
+ GPUId(chip_id=0x43020100, name="FD722"),
+ GPUId(chip_id=0xffff43020100, name="FD722"),
+ ], A6xxGPUInfo(
+ CHIP.A7XX,
+ [a7xx_base, a7xx_gen1],
+ num_ccu = 3,
+ tile_align_w = 64,
+ tile_align_h = 32,
+ tile_max_w = 1024,
+ tile_max_h = 1024,
+ num_vsc_pipes = 32,
+ cs_shared_mem_size = 32 * 1024,
+ wave_granularity = 2,
+ fibers_per_sp = 128 * 2 * 16,
+ highest_bank_bit = 16,
+ magic_regs = a730_magic_regs,
+ raw_magic_regs = a730_raw_magic_regs,
+ ))
+
add_gpus([
GPUId(chip_id=0x07030001, name="FD730"), # KGSL, no speedbin data
GPUId(chip_id=0xffff07030001, name="FD730"), # Default no-speedbin fallback
Loading
Loading