[Mesa-dev] [PATCH] radv: Set correct metadata size for GFX9+.
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Jul 25 15:06:52 UTC 2019
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 7/25/19 4:55 PM, Bas Nieuwenhuizen wrote:
> Without correct size, radeonsi assumes the metadata is incorrect,
> which can and will cause issues.
>
> Since the metadata is really incorrect without the size, let us
> fix that.
>
> Fixes: e43cc3e3afc "radv/gfx9: handle GFX9 opaque metadata"
> ---
> src/amd/vulkan/radv_image.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index 09413333cbb..541ff4086f4 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -1034,7 +1034,8 @@ radv_query_opaque_metadata(struct radv_device *device,
> for (i = 0; i <= image->info.levels - 1; i++)
> md->metadata[10+i] = image->planes[0].surface.u.legacy.level[i].offset >> 8;
> md->size_metadata = (11 + image->info.levels - 1) * 4;
> - }
> + } else
> + md->size_metadata = 10 * 4;
> }
>
> void
More information about the mesa-dev
mailing list