radv: Handle cmask being disallowed by addrlib.
alignment=0 does weird things with align64. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
5eaed7ecfc
commit
e46b41b3ae
|
@ -1153,6 +1153,11 @@ radv_image_alloc_cmask(struct radv_device *device,
|
|||
uint32_t clear_value_size = 0;
|
||||
radv_image_get_cmask_info(device, image, &image->cmask);
|
||||
|
||||
if (!image->cmask.size)
|
||||
return;
|
||||
|
||||
assert(image->cmask.alignment);
|
||||
|
||||
image->cmask.offset = align64(image->size, image->cmask.alignment);
|
||||
/* + 8 for storing the clear values */
|
||||
if (!image->clear_value_offset) {
|
||||
|
|
Loading…
Reference in New Issue