mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vk/image: Stop hardcoding alignment of stencil surfaces
Look up the alignment from anv_tile_info_table.
This commit is contained in:
parent
e6bd568f36
commit
081f617b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ VkResult anv_image_create(
|
|||
|
||||
if (info->has_stencil) {
|
||||
const struct anv_tile_info *w_info = &anv_tile_info_table[WMAJOR];
|
||||
image->stencil_offset = ALIGN_U32(image->size, 4096);
|
||||
image->stencil_offset = ALIGN_U32(image->size, w_info->surface_alignment);
|
||||
image->stencil_stride = ALIGN_I32(image->extent.width, w_info->width);
|
||||
aligned_height = ALIGN_I32(image->extent.height, w_info->height);
|
||||
stencil_size = image->stencil_stride * aligned_height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue