mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/tyr: use shmem GEM object type in TyrDrmDriver
Tyr buffer objects are shmem-backed, so the driver should use drm:💎:shmem::Object<BoData> as its GEM object type instead of the base drm:💎:Object<BoData> type. Switching to the shmem GEM object type matches how Tyr allocates and manages its buffer objects, and uses the shmem-specific GEM abstraction provided by the DRM Rust bindings. Select RUST_DRM_GEM_SHMEM_HELPER to ensure the required helpers are available when DRM_TYR is enabled. Signed-off-by: Alvin Sun <alvin.sun@linux.dev> Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com> Link: https://patch.msgid.link/20260428-fw-boot-prerequisites-v1-3-c69af9abe1af@collabora.com Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
parent
6f3096c427
commit
09a796e706
|
|
@ -8,6 +8,7 @@ config DRM_TYR
|
|||
depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE
|
||||
depends on COMMON_CLK
|
||||
default n
|
||||
select RUST_DRM_GEM_SHMEM_HELPER
|
||||
help
|
||||
Rust DRM driver for ARM Mali CSF-based GPUs.
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ fn drop(self: Pin<&mut Self>) {}
|
|||
impl drm::Driver for TyrDrmDriver {
|
||||
type Data = TyrDrmDeviceData;
|
||||
type File = TyrDrmFileData;
|
||||
type Object = drm::gem::Object<BoData>;
|
||||
type Object = drm::gem::shmem::Object<BoData>;
|
||||
|
||||
const INFO: drm::DriverInfo = INFO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user