diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-07-25 16:53:34 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-07-25 17:07:53 +0200 |
commit | 7e1fe81f565fb72c63705b516d3e3b4c06184fc5 (patch) | |
tree | 13977406b954410a88a63e861071d269c6bdd61b | |
parent | 832cedfdee015f276420d79fc4d9df1a2733daff (diff) |
radv: Set correct metadata size for GFX9+.
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"
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index d46946269e6..f3237dd5985 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1039,7 +1039,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 |