From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: staging: media: tegra-video: tegra20: adjust format align calculations Date: Wed, 04 Mar 2026 07:48:08 +1000 Message-ID: In-Reply-To: <20260303084239.15007-11-clamor95@gmail.com> References: <20260303084239.15007-1-clamor95@gmail.com> <20260303084239.15007-11-clamor95@gmail.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Refactors `tegra20_fmt_align` and expands the format table with `img_dt` and `bit_width` fields. The bytesperline alignment changes from `roundup(width, 2)` to `roundup(width, 8)` for YUV422 formats. This is a behavioral change, though the commit message doesn't call it out explicitly. For YUV420 planar, the sizeimage is now computed as `(bytesperline * height) * 3 / 2` which is correct for 4:2:0 subsampling. **Minor:** The YUV422 case statements were removed from the switch, relying on the common path. This means the `default` case (implicit fall-through with no match) also uses `roundup(width, 8) * bpp`. For any future formats that need different alignment, this would need to be revisited. --- Generated by Claude Code Patch Reviewer