Commit 4dbbd59a authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Marge Bot
Browse files

radv: Don't relayout images with modifiers.

The modifier should have been the exact layout of the image. Hence
we should not relayout the image according to the implicit modifier
on memory import (i.e. VkMemory allocation).
Reviewed-By: chadversary's avatarChad Versace <>
Part-of: <mesa/mesa!7667>
parent f543f09e
......@@ -5310,7 +5310,8 @@ static VkResult radv_alloc_memory(struct radv_device *device,
if (mem->image && mem->image->plane_count == 1 &&
!vk_format_is_depth_or_stencil(mem->image->vk_format) &&
mem->image->info.samples == 1) {
mem->image->info.samples == 1 &&
struct radeon_bo_metadata metadata;
device->ws->buffer_get_metadata(mem->bo, &metadata);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment