panfrost: Fix checksumming typo
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Jun 2019 16:55:15 +0000 (09:55 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Jun 2019 16:58:30 +0000 (09:58 -0700)
Fixes: 3e6c6bb0 ("panfrost: Merge checksum buffer with main BO")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_resource.c

index 4dc8cbe577a8f8b0f073b3c574b16ccd7b4dfb27..c5bda809320621a63d371f2907e53ff66436776e 100644 (file)
@@ -193,7 +193,7 @@ panfrost_compute_checksum_sizes(
                 unsigned height)
 {
         unsigned aligned_width = ALIGN(width, CHECKSUM_TILE_WIDTH);
-        unsigned aligned_height = ALIGN(width, CHECKSUM_TILE_HEIGHT);
+        unsigned aligned_height = ALIGN(height, CHECKSUM_TILE_HEIGHT);
 
         unsigned tile_count_x = aligned_width / CHECKSUM_TILE_WIDTH;
         unsigned tile_count_y = aligned_height / CHECKSUM_TILE_HEIGHT;