From 25ac824d31b01c962e462cdb6207852de4c378ee Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 3 Oct 2022 11:50:34 +0000 Subject: [PATCH] drm/amdgpu: use dirty framebuffer helper From Hamza Mahfooz 33b128f790b6df7e44e4435c6b9387b257637d15 in linux 5.15.y/5.15.71 66f99628eb24409cb8feb5061f78283c8b65f820 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c index c4dae83d8e8..8c89f76d91e 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -490,6 +491,7 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector, static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { .destroy = drm_gem_fb_destroy, .create_handle = drm_gem_fb_create_handle, + .dirty = drm_atomic_helper_dirtyfb, }; uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, -- 2.20.1