Revert "drm/amdgpu: add modifiers in amdgpu_vkms_plane_init()"
Subsystems (2)
PATCH 1/2 Revert "drm/amdgpu: add modifiers in amdgpu_vkms_plane_init()"
This reverts commit 2f73d74ac4cd880beaa1c19fa9ef0296c3eb3b60.
No need to support modifier in virtual kms, otherwise, in SRIOV mode, when lanuching X server, set crtc will fail due to mismatch between primary plane modifier and framebuffer modifier.
Signed-off-by Guchun Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +1 -2
@@ -391,7 +391,6 @@ static struct drm_plane *amdgpu_vkms_plane_init(struct drm_device *dev, int index) {struct drm_plane *plane; -uint64_t modifiers[] = {DRM_FORMAT_MOD_LINEAR ,DRM_FORMAT_MOD_INVALID };int ret; plane =kzalloc (sizeof (*plane),GFP_KERNEL );
@@ -402,7 +401,7 @@ static struct drm_plane *amdgpu_vkms_plane_init(struct drm_device *dev, &amdgpu_vkms_plane_funcs, amdgpu_vkms_formats,ARRAY_SIZE (amdgpu_vkms_formats), - modifiers, type, NULL); + NULL, type, NULL);if (ret) {kfree (plane);return ERR_PTR (ret);
Signature · 1 line
2.17.1