diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 99c8f40..cf57038 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -187,6 +187,8 @@ static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i) height = size / (pitch * 8 * bpe); if (height > 8192) height = 8192; + if (height > 0x7) + height &= ~0x7; switch (G_0280A0_ARRAY_MODE(track->cb_color_info[i])) { case V_0280A0_ARRAY_LINEAR_GENERAL: /* technically height & 0x7 */