diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-07 09:28:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-07 09:28:24 +0000 |
commit | da57a14b99d701032ec08cea38aaab8b5e8a935e (patch) | |
tree | a389309ad10d826bcaf96155c4f4517009e44d17 /sys | |
parent | 573b50985e235b26855962a9a0c6941eedaaaf72 (diff) |
drm/amdgpu: bypass tiling flag check in virtual display case (v2)
From Guchun Chen
fcd1d79aa943fff4fbaa0cce1d576995a7960699 in linux 5.15.y/5.15.29
e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c index 5f9230a227f..c4dae83d8e8 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c @@ -1145,7 +1145,7 @@ int amdgpu_display_framebuffer_init(struct drm_device *dev, if (ret) return ret; - if (!dev->mode_config.allow_fb_modifiers) { + if (!dev->mode_config.allow_fb_modifiers && !adev->enable_virtual_display) { drm_WARN_ONCE(dev, adev->family >= AMDGPU_FAMILY_AI, "GFX9+ requires FB check based on format modifier\n"); ret = check_tiling_flags_gfx6(rfb); |