radv: Use getter instead of setter to extract value.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 16 Aug 2020 20:38:22 +0000 (22:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 16 Aug 2020 23:40:03 +0000 (23:40 +0000)
Oops ...

Fixes: 64768111c30 "radv: Handle slightly different image dimensions."
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3417
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6337>

src/amd/vulkan/radv_image.c

index f2b82dd83695471ba8c92a7ffa69b65fd8bd88c1..f4ef4fab77806c24da3002cb7668e61f63d3e37a 100644 (file)
@@ -369,7 +369,7 @@ radv_patch_image_dimensions(struct radv_device *device,
                if (device->physical_device->rad_info.chip_class >= GFX10) {
                        width = G_00A004_WIDTH_LO(md->metadata[3]) +
                                (G_00A008_WIDTH_HI(md->metadata[4]) << 2) + 1;
-                       height = S_00A008_HEIGHT(md->metadata[4]) + 1;
+                       height = G_00A008_HEIGHT(md->metadata[4]) + 1;
                } else {
                        width = G_008F18_WIDTH(md->metadata[4]) + 1;
                        height = G_008F18_HEIGHT(md->metadata[4]) + 1;