diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index f82832780a7e..41802915f93f 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -229,7 +229,7 @@ static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) | |||
229 | __func__, __LINE__, pitch); | 229 | __func__, __LINE__, pitch); |
230 | return -EINVAL; | 230 | return -EINVAL; |
231 | } | 231 | } |
232 | if (!IS_ALIGNED((height / 8), track->nbanks)) { | 232 | if (!IS_ALIGNED((height / 8), track->npipes)) { |
233 | dev_warn(p->dev, "%s:%d cb height (%d) invalid\n", | 233 | dev_warn(p->dev, "%s:%d cb height (%d) invalid\n", |
234 | __func__, __LINE__, height); | 234 | __func__, __LINE__, height); |
235 | return -EINVAL; | 235 | return -EINVAL; |
@@ -378,7 +378,7 @@ static int r600_cs_track_check(struct radeon_cs_parser *p) | |||
378 | __func__, __LINE__, pitch); | 378 | __func__, __LINE__, pitch); |
379 | return -EINVAL; | 379 | return -EINVAL; |
380 | } | 380 | } |
381 | if ((height / 8) & (track->nbanks - 1)) { | 381 | if (!IS_ALIGNED((height / 8), track->npipes)) { |
382 | dev_warn(p->dev, "%s:%d db height (%d) invalid\n", | 382 | dev_warn(p->dev, "%s:%d db height (%d) invalid\n", |
383 | __func__, __LINE__, height); | 383 | __func__, __LINE__, height); |
384 | return -EINVAL; | 384 | return -EINVAL; |