mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: Pass DCC alignment to application.
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
(cherry picked from commit 47ca0f537d)
This commit is contained in:
parent
ba725de721
commit
dc94e70e27
1 changed files with 1 additions and 0 deletions
|
|
@ -586,6 +586,7 @@ radv_image_alloc_dcc(struct radv_device *device,
|
|||
/* + 8 for storing the clear values */
|
||||
image->clear_value_offset = image->dcc_offset + image->surface.dcc_size;
|
||||
image->size = image->dcc_offset + image->surface.dcc_size + 8;
|
||||
image->alignment = MAX2(image->alignment, image->surface.dcc_alignment);
|
||||
}
|
||||
|
||||
static unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue