[PATCH] drm/radeon/kms: fix r6xx/7xx 1D tiling CS checker
Alex Deucher
alexdeucher at gmail.com
Tue Oct 26 12:21:41 PDT 2010
broken by:
drm/radeon/r600: fix tiling issues in CS checker.
Signed-off-by: Alex Deucher <alexdeucher at gmail.com>
---
drivers/gpu/drm/radeon/r600_cs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c
index 7e44b5a..aec0944 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -190,6 +190,8 @@ static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i)
height = slice_tile_max / (pitch * 8);
if (height > 8192)
height = 8192;
+ if (height > 7)
+ height &= ~0x7;
array_mode = G_0280A0_ARRAY_MODE(track->cb_color_info[i]);
switch (array_mode) {
case V_0280A0_ARRAY_LINEAR_GENERAL:
--
1.7.1.1
More information about the dri-devel
mailing list