|
@@ -580,6 +580,13 @@ struct drm_driver {
|
|
int (*gem_open_object) (struct drm_gem_object *, struct drm_file *);
|
|
int (*gem_open_object) (struct drm_gem_object *, struct drm_file *);
|
|
void (*gem_close_object) (struct drm_gem_object *, struct drm_file *);
|
|
void (*gem_close_object) (struct drm_gem_object *, struct drm_file *);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Hook for allocating the GEM object struct, for use by core
|
|
|
|
+ * helpers.
|
|
|
|
+ */
|
|
|
|
+ struct drm_gem_object *(*gem_create_object)(struct drm_device *dev,
|
|
|
|
+ size_t size);
|
|
|
|
+
|
|
/* prime: */
|
|
/* prime: */
|
|
/* export handle -> fd (see drm_gem_prime_handle_to_fd() helper) */
|
|
/* export handle -> fd (see drm_gem_prime_handle_to_fd() helper) */
|
|
int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
|
|
int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
|