aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-12-12 11:30:20 -0500
committerMarge Bot <[email protected]>2019-12-16 19:48:28 +0000
commit5386b7e011b4986a52de08d0b944eb317e5134fd (patch)
treef56843bca21db31d0c24aa1ddcfa201c414a4863 /src
parent6378797a6d1ce3652d0394beeb1af33af7426ed2 (diff)
panfrost: Remove asserts in panfrost_pack_work_groups_compute
It's a hot routine and these are exceedingly unlikely to break. Signed-off-by: Alyssa Rosenzweig <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3067> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3067>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/encoder/pan_invocation.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/panfrost/encoder/pan_invocation.c b/src/panfrost/encoder/pan_invocation.c
index ecde3da4648..0ec7c634a24 100644
--- a/src/panfrost/encoder/pan_invocation.c
+++ b/src/panfrost/encoder/pan_invocation.c
@@ -50,17 +50,7 @@ panfrost_pack_work_groups_compute(
unsigned size_z,
bool quirk_graphics)
{
- /* First of all, all 6 values are off-by-one (strictly positive).
- * Account for that, first by ensuring all values are strictly positive
- * and then by offsetting */
-
- assert(num_x > 0);
- assert(num_y > 0);
- assert(num_z > 0);
-
- assert(size_x > 0);
- assert(size_y > 0);
- assert(size_z > 0);
+ /* First of all, all 6 values are off-by-one (strictly positive). */
num_x = MALI_POSITIVE(num_x);
num_y = MALI_POSITIVE(num_y);