summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiavash Eliasi <siavashserver@gmail.com>2013-11-28 21:10:29 +0330
committerIan Romanick <ian.d.romanick@intel.com>2014-01-29 09:09:41 -0700
commite36759a81ed7da80f21626bcbe5e338b9f76c270 (patch)
treed210090a8d724f6d55776941956c4c3826ca7d18
parent023a50dd9b368fba5b53dca347e90b46893c0348 (diff)
softpipe: Use alignment of 64 instead of 16 for buffer allocation
v2: Changed allocation alignment in softpipe_displaytarget_layout. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 13231593e1..dc89d0665c 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -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;