From 07f345566448c4defef109b315a5361266ffd2ea Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 23 Mar 2019 10:04:16 -0700 Subject: iris: Add an explicit alignment parameter to iris_bo_alloc_tiled(). In the future, some images will need to be aligned to a larger value than 4096. Most buffers, however, don't have any such requirement, so for now we only add the parameter to iris_bo_alloc_tiled() and leave the others with the simpler interface. v2: Fix missing alignment in vma_alloc, caught by Caio! Reviewed-by: Caio Marcelo de Oliveira Filho Tested-by: Jordan Justen --- src/gallium/drivers/iris/iris_bufmgr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/iris/iris_bufmgr.h') diff --git a/src/gallium/drivers/iris/iris_bufmgr.h b/src/gallium/drivers/iris/iris_bufmgr.h index 5676a35e106..f05a71edf98 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.h +++ b/src/gallium/drivers/iris/iris_bufmgr.h @@ -219,6 +219,7 @@ struct iris_bo *iris_bo_alloc(struct iris_bufmgr *bufmgr, struct iris_bo *iris_bo_alloc_tiled(struct iris_bufmgr *bufmgr, const char *name, uint64_t size, + uint32_t alignment, enum iris_memory_zone memzone, uint32_t tiling_mode, uint32_t pitch, -- cgit v1.2.3