diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-09-27 22:38:54 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:19 +0300 |
commit | 0e5e77bd9704edf1713ebed37e2da1b4faa25a52 (patch) | |
tree | 25f7f60928c4a5fa53afe9e7250dce2c90898330 /drivers/gpu/drm/xe/xe_vm_types.h | |
parent | b3bb7d9c561d664707717f8887b665ce8fef69ff (diff) | |
download | linux-0e5e77bd9704edf1713ebed37e2da1b4faa25a52.tar.xz |
drm/xe: Use vfunc for pte/pde ppgtt encoding
Move the function to encode pte/pde to be vfuncs inside struct xe_vm.
This will allow to easily extend to platforms that don't have a
compatible encoding.
v2: Fix kunit build
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230927193902.2849159-4-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_vm_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h index b0f183d00416..9a1075a75606 100644 --- a/drivers/gpu/drm/xe/xe_vm_types.h +++ b/drivers/gpu/drm/xe/xe_vm_types.h @@ -242,6 +242,8 @@ struct xe_vm { bool munmap_rebind_inflight; } async_ops; + const struct xe_pt_ops *pt_ops; + /** @userptr: user pointer state */ struct { /** |