radv: Pass CMASK alignment to application.
CMASK alignment can be greater than image data alignment, so pass it to the app so that it knows what alignment to backing memory should have. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
a864ef7f48
commit
eb01b20cc4
|
@ -571,6 +571,7 @@ radv_image_alloc_cmask(struct radv_device *device,
|
|||
/* + 8 for storing the clear values */
|
||||
image->clear_value_offset = image->cmask.offset + image->cmask.size;
|
||||
image->size = image->cmask.offset + image->cmask.size + 8;
|
||||
image->alignment = MAX2(image->alignment, image->cmask.alignment);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue