softpipe: Use alignment of 64 instead of 16 for buffer allocation
authorSiavash Eliasi <siavashserver@gmail.com>
Thu, 28 Nov 2013 17:40:29 +0000 (21:10 +0330)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Jan 2014 16:09:41 +0000 (09:09 -0700)
v2: Changed allocation alignment in softpipe_displaytarget_layout.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/drivers/softpipe/sp_texture.c

index 13231593e16f9c189dfab8b8e564c9f57f2410e2..dc89d0665c3f72ea755538bc3507289a6a028837 100644 (file)
@@ -88,7 +88,7 @@ softpipe_resource_layout(struct pipe_screen *screen,
       return FALSE;
 
    if (allocate) {
-      spr->data = align_malloc(buffer_size, 16);
+      spr->data = align_malloc(buffer_size, 64);
       return spr->data != NULL;
    }
    else {
@@ -128,7 +128,7 @@ softpipe_displaytarget_layout(struct pipe_screen *screen,
                                           spr->base.format,
                                           spr->base.width0, 
                                           spr->base.height0,
-                                          16,
+                                          64,
                                           &spr->stride[0] );
 
    return spr->dt != NULL;