mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
panvk: Add pan_kmod_{vm,dev} objects to panvk_device
Will be needed for when we will transition away from panfrost_{bo,device}.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Constantine Shablya <constantine.shablya@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26698>
This commit is contained in:
parent
48ff9fc818
commit
9672ddcc3a
2 changed files with 7 additions and 0 deletions
|
|
@ -939,6 +939,8 @@ panvk_CreateDevice(VkPhysicalDevice physicalDevice,
|
|||
|
||||
panfrost_open_device(NULL, dup(physical_device->kmod.dev->fd),
|
||||
&device->pdev);
|
||||
device->kmod.dev = device->pdev.kmod.dev;
|
||||
device->kmod.vm = device->pdev.kmod.vm;
|
||||
vk_device_set_drm_fd(&device->vk, device->pdev.kmod.dev->fd);
|
||||
|
||||
panvk_arch_dispatch(arch, meta_init, device);
|
||||
|
|
|
|||
|
|
@ -253,6 +253,11 @@ struct panvk_queue {
|
|||
struct panvk_device {
|
||||
struct vk_device vk;
|
||||
|
||||
struct {
|
||||
struct pan_kmod_vm *vm;
|
||||
struct pan_kmod_dev *dev;
|
||||
} kmod;
|
||||
|
||||
struct panfrost_device pdev;
|
||||
|
||||
struct panvk_meta meta;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue