summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/i915/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-11-21 19:06:48 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2010-12-02 01:34:12 +0100
commitc62f5c7e7bc3ed84677805b3800fbcfa93c419ea (patch)
tree403f4b5fcb2a08e26eb8ba9ad26158b82ddcb6c2 /src/gallium/winsys/i915/drm
parentb4f585665c31b1f80d909e38b3b2a9fab0c03076 (diff)
i915g: drop alignment parameter from iws->buffer_create
It's unnecessary. The kernel gem ignores it totally and we can't run on the old userspace fake bo manager due to lack of dri2. Also drop the redundant name string from the sw winsys as suggested by Jakob Bornecrantz Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
Diffstat (limited to 'src/gallium/winsys/i915/drm')
-rw-r--r--src/gallium/winsys/i915/drm/i915_drm_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/i915/drm/i915_drm_buffer.c b/src/gallium/winsys/i915/drm/i915_drm_buffer.c
index 15ec4487457..ab1e12529e4 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_buffer.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_buffer.c
@@ -7,7 +7,7 @@
static struct i915_winsys_buffer *
i915_drm_buffer_create(struct i915_winsys *iws,
- unsigned size, unsigned alignment,
+ unsigned size,
enum i915_winsys_buffer_type type)
{
struct i915_drm_buffer *buf = CALLOC_STRUCT(i915_drm_buffer);
@@ -32,7 +32,7 @@ i915_drm_buffer_create(struct i915_winsys *iws,
name = "gallium3d_unknown";
}
- buf->bo = drm_intel_bo_alloc(idws->gem_manager, name, size, alignment);
+ buf->bo = drm_intel_bo_alloc(idws->gem_manager, name, size, 0);
if (!buf->bo)
goto err;