From cff5814eb0d2d09632195bafe3567527e6262fe1 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 18 Dec 2024 16:24:13 -0800 Subject: [PATCH] feat: Update to mesa 24.2.8 --- spec_files/mesa/indiana.patch | 96 ----------------------------------- spec_files/mesa/mesa.spec | 5 +- 2 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 spec_files/mesa/indiana.patch diff --git a/spec_files/mesa/indiana.patch b/spec_files/mesa/indiana.patch deleted file mode 100644 index 8ccdf50a..00000000 --- a/spec_files/mesa/indiana.patch +++ /dev/null @@ -1,96 +0,0 @@ -From 5f36d879f820797b5ee06186c87a2f294f706d36 Mon Sep 17 00:00:00 2001 -From: Atapi <34801996+Sterophonick@users.noreply.github.com> -Date: Sat, 7 Dec 2024 11:43:01 -0700 -Subject: [PATCH] backport indiana jones tweaks - ---- - src/amd/vulkan/radv_image.c | 4 ++++ - src/amd/vulkan/radv_instance.c | 3 +++ - src/amd/vulkan/radv_instance.h | 1 + - src/util/00-radv-defaults.conf | 6 ++++++ - src/util/driconf.h | 4 ++++ - 5 files changed, 18 insertions(+) - -diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c -index eeefe236d97..2b3a59e1c6b 100644 ---- a/src/amd/vulkan/radv_image.c -+++ b/src/amd/vulkan/radv_image.c -@@ -297,6 +297,10 @@ radv_use_dcc_for_image_early(struct radv_device *device, struct radv_image *imag - return false; - } - -+ /* Force disable DCC for stores to workaround game bugs. */ -+ if (instance->drirc.disable_dcc_stores && (pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)) -+ return false; -+ - /* DCC MSAA can't work on GFX10.3 and earlier without FMASK. */ - if (pCreateInfo->samples > 1 && pdev->info.gfx_level < GFX11 && (instance->debug_flags & RADV_DEBUG_NO_FMASK)) - return false; -diff --git a/src/amd/vulkan/radv_instance.c b/src/amd/vulkan/radv_instance.c -index 9eba490397b..b5333a4f58b 100644 ---- a/src/amd/vulkan/radv_instance.c -+++ b/src/amd/vulkan/radv_instance.c -@@ -145,6 +145,7 @@ static const driOptionDescription radv_dri_options[] = { - DRI_CONF_RADV_SPLIT_FMA(false) - DRI_CONF_RADV_DISABLE_TC_COMPAT_HTILE_GENERAL(false) - DRI_CONF_RADV_DISABLE_DCC(false) -+ DRI_CONF_RADV_DISABLE_DCC_STORES(false) - DRI_CONF_RADV_DISABLE_ANISO_SINGLE_LEVEL(false) - DRI_CONF_RADV_DISABLE_TRUNC_COORD(false) - DRI_CONF_RADV_DISABLE_SINKING_LOAD_INPUT_FS(false) -@@ -258,6 +259,8 @@ radv_init_dri_options(struct radv_instance *instance) - - instance->drirc.vk_require_etc2 = driQueryOptionb(&instance->drirc.options, "vk_require_etc2"); - instance->drirc.vk_require_astc = driQueryOptionb(&instance->drirc.options, "vk_require_astc"); -+ -+ instance->drirc.disable_dcc_stores = driQueryOptionb(&instance->drirc.options, "radv_disable_dcc_stores"); - } - - static const struct vk_instance_extension_table radv_instance_extensions_supported = { -diff --git a/src/amd/vulkan/radv_instance.h b/src/amd/vulkan/radv_instance.h -index e87a5301c60..98441116c52 100644 ---- a/src/amd/vulkan/radv_instance.h -+++ b/src/amd/vulkan/radv_instance.h -@@ -68,6 +68,7 @@ struct radv_instance { - bool report_llvm9_version_string; - bool vk_require_etc2; - bool vk_require_astc; -+ bool disable_dcc_stores; - char *app_layer; - uint8_t override_graphics_shader_version; - uint8_t override_compute_shader_version; -diff --git a/src/util/00-radv-defaults.conf b/src/util/00-radv-defaults.conf -index 555fc3c79af..a502aa79621 100644 ---- a/src/util/00-radv-defaults.conf -+++ b/src/util/00-radv-defaults.conf -@@ -110,6 +110,12 @@ Application bugs worked around in this file: -