summary refs log tree commit diff
path: root/host/Rory-desktop/hacks/drm-amd-3437.patch
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-17 06:50:44 +0200
committerRory& <root@rory.gay>2024-07-17 06:50:44 +0200
commit6ad91ccabc83c2618160f2734e4ca5e90983baf4 (patch)
tree93cce578fe6579de81d8bfc2c3595ecedb4189c2 /host/Rory-desktop/hacks/drm-amd-3437.patch
parentNode exproter changes (diff)
downloadRory-Open-Architecture-6ad91ccabc83c2618160f2734e4ca5e90983baf4.tar.xz
Changes
Diffstat (limited to 'host/Rory-desktop/hacks/drm-amd-3437.patch')
-rw-r--r--host/Rory-desktop/hacks/drm-amd-3437.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/host/Rory-desktop/hacks/drm-amd-3437.patch b/host/Rory-desktop/hacks/drm-amd-3437.patch
new file mode 100644
index 0000000..1867762
--- /dev/null
+++ b/host/Rory-desktop/hacks/drm-amd-3437.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+index c556c8b653fa..272ad5e4a328 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+@@ -180,7 +180,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
+ 		 * When GTT is just an alternative to VRAM make sure that we
+ 		 * only use it as fallback and still try to fill up VRAM first.
+ 		 */
+-		if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM)
++		if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && !(adev->flags & AMD_IS_APU))
+ 			places[c].flags |= TTM_PL_FLAG_FALLBACK;
+ 		c++;
+ 	}
\ No newline at end of file