diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2014-01-06 02:39:10 +0100 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2014-03-17 20:11:59 +0100 |
commit | c269c6852bc4b0c3e1d755c4449f4307aa57292b (patch) | |
tree | c6a6c4548b5cd2266888eb6e36ca77b3de8fcca3 /drivers/gpu/drm/gma500/gtt.c | |
parent | ae0b93188160d9f4fd2c0e49e9fe24a489550280 (diff) | |
download | op-kernel-dev-c269c6852bc4b0c3e1d755c4449f4307aa57292b.zip op-kernel-dev-c269c6852bc4b0c3e1d755c4449f4307aa57292b.tar.gz |
drm/gma500: Add backing type and base align to psb_gem_create()
We'll need this for our gem create ioctl in a later patch.
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/gtt.c')
-rw-r--r-- | drivers/gpu/drm/gma500/gtt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index a30f6ee..592d205 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -330,7 +330,7 @@ out: * as in use. */ struct gtt_range *psb_gtt_alloc_range(struct drm_device *dev, int len, - const char *name, int backed) + const char *name, int backed, u32 align) { struct drm_psb_private *dev_priv = dev->dev_private; struct gtt_range *gt; @@ -358,7 +358,7 @@ struct gtt_range *psb_gtt_alloc_range(struct drm_device *dev, int len, /* Ensure this is set for non GEM objects */ gt->gem.dev = dev; ret = allocate_resource(dev_priv->gtt_mem, >->resource, - len, start, end, PAGE_SIZE, NULL, NULL); + len, start, end, align, NULL, NULL); if (ret == 0) { gt->offset = gt->resource.start - r->start; return gt; |