mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 09:00:31 +01:00
iris/resource: Use isl surface alignment during bo allocation
Reworks: * Change subject from "iris: Align main surface allocation to 64k on gen12+" * Make use of isl surf alignment. (Nanley) Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
48c153e21b
commit
22859a18d5
1 changed files with 3 additions and 1 deletions
|
|
@ -823,7 +823,9 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
bo_size = res->surf.size_B;
|
||||
}
|
||||
|
||||
res->bo = iris_bo_alloc_tiled(screen->bufmgr, name, bo_size, 4096, memzone,
|
||||
uint32_t alignment = MAX2(4096, res->surf.alignment_B);
|
||||
res->bo = iris_bo_alloc_tiled(screen->bufmgr, name, bo_size, alignment,
|
||||
memzone,
|
||||
isl_tiling_to_i915_tiling(res->surf.tiling),
|
||||
res->surf.row_pitch_B, flags);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue