]> Git Repo - linux.git/commit
drm/vmwgfx: Fix prime import/export
authorZack Rusin <[email protected]>
Fri, 12 Apr 2024 02:55:09 +0000 (22:55 -0400)
committerZack Rusin <[email protected]>
Mon, 15 Apr 2024 15:48:36 +0000 (11:48 -0400)
commitb32233accefff1338806f064fb9b62cf5bc0609f
treeefcb53817f47c8b27c7dfe02041b0134e68cf2d1
parentb6976f323a8687cc0d55bc92c2086fd934324ed5
drm/vmwgfx: Fix prime import/export

vmwgfx never supported prime import of external buffers. Furthermore the
driver exposes two different objects to userspace: vmw_surface's and
gem buffers but prime import/export only worked with vmw_surfaces.

Because gem buffers are used through the dumb_buffer interface this meant
that the driver created buffers couldn't have been prime exported or
imported.

Fix prime import/export. Makes IGT's kms_prime pass.

Signed-off-by: Zack Rusin <[email protected]>
Fixes: 8afa13a0583f ("drm/vmwgfx: Implement DRIVER_GEM")
Cc: <[email protected]> # v6.6+
Reviewed-by: Martin Krastev <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_bo.h
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
drivers/gpu/drm/vmwgfx/vmwgfx_prime.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
This page took 0.056971 seconds and 4 git commands to generate.