summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-09-26 14:56:17 -0400
committerJonathan Marek <[email protected]>2019-09-26 17:18:13 -0400
commit02ca326a04762421f08b0591bbfec0ed818bb2e3 (patch)
tree62f8425f65de05be8d889a5b03d23813769d40d2 /src/freedreno
parent195abadd2c0d589f9b29a3061c6b2b72f1450151 (diff)
turnip: align layer_size
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/vulkan/tu_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_image.c b/src/freedreno/vulkan/tu_image.c
index 694f45802bc..67f94095af0 100644
--- a/src/freedreno/vulkan/tu_image.c
+++ b/src/freedreno/vulkan/tu_image.c
@@ -121,7 +121,7 @@ setup_slices(struct tu_image *image, const VkImageCreateInfo *pCreateInfo)
depth = u_minify(depth, 1);
}
- image->layer_size = layer_size;
+ image->layer_size = align(layer_size, 4096);
}
VkResult