[PATCH] drm/radeon/kms: another r6xx/r7xx CS checker fix

Alex Deucher alexdeucher at gmail.com
Wed Aug 11 08:54:25 PDT 2010


add default case for buffer formats

Signed-off-by: Alex Deucher <alexdeucher at gmail.com>
Cc: Andre Maasikas <amaasikas at gmail.com>
---
 drivers/gpu/drm/radeon/r600_cs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c
index 52b5252..8e165b2 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -133,6 +133,7 @@ static inline int r600_bpe_from_format(u32 *bpe, u32 format)
 	case V_038004_FMT_GB_GR:
 	case V_038004_FMT_BG_RG:
 	case V_038004_COLOR_INVALID:
+	default:
 		*bpe = 16;
 		return -EINVAL;
 	}
-- 
1.7.1.1



More information about the dri-devel mailing list