[Mesa-dev] [PATCH 05/16] i915g: Use alignment of 64 instead of 16 for buffer allocation

Ian Romanick idr at freedesktop.org
Wed Jan 22 20:48:45 PST 2014


From: Siavash Eliasi <siavashserver at gmail.com>

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/gallium/drivers/i915/i915_resource_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/i915/i915_resource_buffer.c b/src/gallium/drivers/i915/i915_resource_buffer.c
index 1566dc0..9fb3855 100644
--- a/src/gallium/drivers/i915/i915_resource_buffer.c
+++ b/src/gallium/drivers/i915/i915_resource_buffer.c
@@ -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)
-- 
1.8.1.4



More information about the mesa-dev mailing list