diff options
author | Kenneth Graunke <[email protected]> | 2019-03-23 10:04:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-07-02 07:23:55 +0000 |
commit | 07f345566448c4defef109b315a5361266ffd2ea (patch) | |
tree | cf829659147d320b59cbf0c27d448ec924b8cdd1 /src/gallium/drivers/iris/iris_bufmgr.h | |
parent | 042aeffd5b2c8d0af8310bdd57515b4c71eb125e (diff) |
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 <[email protected]>
Tested-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_bufmgr.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.h | 1 |
1 files changed, 1 insertions, 0 deletions
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, |