diff options
author | Matthew Auld <matthew.auld@intel.com> | 2022-03-15 18:14:22 +0000 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-03-16 17:50:34 +0000 |
commit | 9b78b5dade2d26e2b77f1ac27044946e4e8e7247 (patch) | |
tree | 78abda5fa4f4f321bfcc671839ddae5d4ce2c7b9 /drivers/gpu/drm/i915/intel_memory_region.h | |
parent | d511d013e2869bed51191b6f70f8073e64c600a1 (diff) | |
download | linux-stable-9b78b5dade2d26e2b77f1ac27044946e4e8e7247.tar.gz linux-stable-9b78b5dade2d26e2b77f1ac27044946e4e8e7247.tar.bz2 linux-stable-9b78b5dade2d26e2b77f1ac27044946e4e8e7247.zip |
drm/i915: add i915_gem_object_create_region_at()
Add a generic interface for allocating an object at some specific
offset, and convert stolen over. Later we will want to hook this up to
different backends.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220315181425.576828-4-matthew.auld@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_memory_region.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_memory_region.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_memory_region.h b/drivers/gpu/drm/i915/intel_memory_region.h index 21dcbd620758..56f266020285 100644 --- a/drivers/gpu/drm/i915/intel_memory_region.h +++ b/drivers/gpu/drm/i915/intel_memory_region.h @@ -54,6 +54,7 @@ struct intel_memory_region_ops { int (*init_object)(struct intel_memory_region *mem, struct drm_i915_gem_object *obj, + resource_size_t offset, resource_size_t size, resource_size_t page_size, unsigned int flags); |