Module: Mesa Branch: master Commit: 50b039590e19d07607ae0714ebffeed6d4f182d5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=50b039590e19d07607ae0714ebffeed6d4f182d5
Author: Bas Nieuwenhuizen <[email protected]> Date: Sun Aug 16 22:38:22 2020 +0200 radv: Use getter instead of setter to extract value. Oops ... Fixes: 64768111c30 "radv: Handle slightly different image dimensions." Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3417 Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6337> --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index f2b82dd8369..f4ef4fab778 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
