i915g: Use alignment of 64 instead of 16 for buffer allocation
authorSiavash Eliasi <siavashserver@gmail.com>
Tue, 3 Dec 2013 04:50:32 +0000 (08:20 +0330)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Jan 2014 16:09:41 +0000 (09:09 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/drivers/i915/i915_resource_buffer.c

index 1566dc02c8b6c329ab5c6384381660d2d91780cd..9fb3855a37ef496a8abea87fbdf0ab20f123b6dc 100644 (file)
@@ -135,7 +135,7 @@ i915_buffer_create(struct pipe_screen *screen,
    buf->b.vtbl = &i915_buffer_vtbl;
    pipe_reference_init(&buf->b.b.reference, 1);
    buf->b.b.screen = screen;
-   buf->data = align_malloc(template->width0, 16);
+   buf->data = align_malloc(template->width0, 64);
    buf->free_on_destroy = TRUE;
 
    if (!buf->data)