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) {
27 changes: 5 additions & 22 deletions packages/mesa/0007-use-mtx_t-operations-in-turnip.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/src/freedreno/vulkan/tu_shader.cc
+++ b/src/freedreno/vulkan/tu_shader.cc
@@ -1980,10 +1980,10 @@
@@ -2694,10 +2694,10 @@ tu_upload_shader(struct tu_device *dev,
size += vpc_size;
}

Expand All @@ -13,7 +13,7 @@

if (result != VK_SUCCESS)
return result;
@@ -2013,9 +2013,9 @@
@@ -2727,9 +2727,9 @@ tu_upload_shader(struct tu_device *dev,

result = tu_setup_pvtmem(dev, shader, &pvtmem_config, pvtmem_size, per_wave);
if (result != VK_SUCCESS) {
Expand All @@ -25,7 +25,7 @@
return result;
}

@@ -2419,10 +2419,10 @@
@@ -3531,10 +3531,10 @@ tu_empty_shader_create(struct tu_device *dev,
if (!shader)
return VK_ERROR_OUT_OF_HOST_MEMORY;

Expand All @@ -38,9 +38,9 @@

if (result != VK_SUCCESS) {
vk_free(&dev->vk.alloc, shader);
@@ -2528,9 +2528,9 @@
{
@@ -3645,9 +3645,9 @@ tu_shader_destroy(struct tu_device *dev,
tu_cs_finish(&shader->cs);
TU_RMV(resource_destroy, dev, &shader->bo);

- pthread_mutex_lock(&dev->pipeline_mutex);
+ mtx_lock(&dev->pipeline_mutex);
Expand All @@ -50,20 +50,3 @@

if (shader->pvtmem_bo)
tu_bo_finish(dev, shader->pvtmem_bo);
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -2648,12 +2648,12 @@ wsi_wl_swapchain_wait_for_present2(struct wsi_swapchain *wsi_chain,
return result;

while (1) {
- err = pthread_mutex_lock(&chain->present_ids.lock);
+ err = mtx_lock(&chain->present_ids.lock);
if (err != 0)
return VK_ERROR_OUT_OF_DATE_KHR;

bool completed = chain->present_ids.max_completed >= present_id;
- pthread_mutex_unlock(&chain->present_ids.lock);
+ mtx_unlock(&chain->present_ids.lock);

if (completed)
return VK_SUCCESS;
59 changes: 0 additions & 59 deletions packages/mesa/0013-detect-sve-sve2-support.patch

This file was deleted.

74 changes: 0 additions & 74 deletions packages/mesa/0016-unofficial_support_adreno_710_720_722.patch

This file was deleted.

40 changes: 0 additions & 40 deletions packages/mesa/0017-preserve-egl-support-in-zink.patch

This file was deleted.

22 changes: 0 additions & 22 deletions packages/mesa/0018-disable-general-layout-in-zink-for-turnip.patch

This file was deleted.

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.

Loading