Mesa (master): panfrost: Fix the tile size assertion
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 20 23:55:03 UTC 2021
Module: Mesa
Branch: master
Commit: a4e8ad9b2784e1b6a8e1bed50134ddcb0124a1e9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4e8ad9b2784e1b6a8e1bed50134ddcb0124a1e9
Author: Icecream95 <ixn at disroot.org>
Date: Fri Dec 18 00:27:14 2020 +1300
panfrost: Fix the tile size assertion
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7086>
---
src/gallium/drivers/panfrost/pan_mfbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c
index 8932118e1ab..17514d1bfc8 100644
--- a/src/gallium/drivers/panfrost/pan_mfbd.c
+++ b/src/gallium/drivers/panfrost/pan_mfbd.c
@@ -456,7 +456,7 @@ pan_internal_cbuf_size(struct panfrost_batch *batch, unsigned *tile_size)
total_size = ALIGN_POT(total_size, 1024);
/* Minimum tile size is 4x4. */
- assert(*tile_size > 4 * 4);
+ assert(*tile_size >= 4 * 4);
return total_size;
}
More information about the mesa-commit
mailing list