summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_screen.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2013-07-25 10:35:33 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2013-07-31 21:40:38 +0200
commitef6d5ee9f34bce89c8bb8ff001be4c70a2a5421d (patch)
tree1bd203c3cd7112d4b5044115f9500a54f87a89b0 /src/gallium/drivers/nvc0/nvc0_screen.c
parent5ffa28df4e4cc22481b4ed41c78632f35765f41d (diff)
downloadexternal_mesa3d-ef6d5ee9f34bce89c8bb8ff001be4c70a2a5421d.zip
external_mesa3d-ef6d5ee9f34bce89c8bb8ff001be4c70a2a5421d.tar.gz
external_mesa3d-ef6d5ee9f34bce89c8bb8ff001be4c70a2a5421d.tar.bz2
nvc0: properly align NVE4_COMPUTE_MP_TEMP_SIZE
MP_TEMP_SIZE must be aligned to 0x8000, while TEMP_SIZE on NVE4_3D must be aligned to 0x20000, so perform both alignments to be sure we allocate enough space (actually the bo will most likely use 128 KiB pages and not aligning to that would be a waste anyway). Cc: "9.2" mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_screen.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 201d12f..171a302 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -512,6 +512,7 @@ nvc0_screen_resize_tls_area(struct nvc0_screen *screen,
}
size *= (screen->base.device->chipset >= 0xe0) ? 64 : 48; /* max warps */
+ size = align(size, 0x8000);
size *= screen->mp_count;
size = align(size, 1 << 17);