From 6ad91ccabc83c2618160f2734e4ca5e90983baf4 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 17 Jul 2024 06:50:44 +0200 Subject: Changes --- host/Rory-desktop/hacks/drm-amd-3437.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 host/Rory-desktop/hacks/drm-amd-3437.patch (limited to 'host/Rory-desktop/hacks/drm-amd-3437.patch') 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 -- cgit 1.4.1