On 2018-04-06 07:12 PM, Marek Olšák wrote:
> From: Marek Olšák <marek.ol...@amd.com>
> 
> This enables the tile swizzle for some cases of the displayable micro mode,
> and it also fixes an addrlib assertion failure on Vega.

[...]

> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index dd3189c67d0..ef6f1072abd 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -919,20 +919,21 @@ radv_image_create(VkDevice _device,
>       if (!image)
>               return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
>  
>       image->type = pCreateInfo->imageType;
>       image->info.width = pCreateInfo->extent.width;
>       image->info.height = pCreateInfo->extent.height;
>       image->info.depth = pCreateInfo->extent.depth;
>       image->info.samples = pCreateInfo->samples;
>       image->info.array_size = pCreateInfo->arrayLayers;
>       image->info.levels = pCreateInfo->mipLevels;
> +     image->info.num_channels = 4; /* TODO: set this correctly */

Maybe a radv developer can suggest something here? Anyway,

Reviewed-by: Michel Dänzer <michel.daen...@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to