drm/radeon/kms: fix typo in r600 cs checker

Looks like a typo in:
drm/radeon/r600: fix tiling issues in CS checker.
(f30df2fad0c901e74ac9a52a488a54c69a373a41)

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Alex Deucher and committed by
Dave Airlie
d33ef52d 21e2eae4

+1 -1
+1 -1
drivers/gpu/drm/radeon/r600_cs.c
··· 315 315 if (array_mode == V_0280A0_ARRAY_LINEAR_GENERAL) { 316 316 /* the initial DDX does bad things with the CB size occasionally */ 317 317 /* it rounds up height too far for slice tile max but the BO is smaller */ 318 - tmp = (height - 7) * 8 * bpe; 318 + tmp = (height - 7) * pitch * bpe; 319 319 if ((tmp + track->cb_color_bo_offset[i]) > radeon_bo_size(track->cb_color_bo[i])) { 320 320 dev_warn(p->dev, "%s offset[%d] %d %d %lu too big\n", __func__, i, track->cb_color_bo_offset[i], tmp, radeon_bo_size(track->cb_color_bo[i])); 321 321 return -EINVAL;