From: Alex Deucher Date: Wed, 11 Aug 2010 15:54:25 +0000 (-0400) Subject: drm/radeon/kms: another r6xx/r7xx CS checker fix X-Git-Tag: v2.6.36-rc1~71^2~7 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=618145ea5434046f0fedf50185f6ad84f9934dda;p=net-next-2.6.git drm/radeon/kms: another r6xx/r7xx CS checker fix add default case for buffer formats Signed-off-by: Alex Deucher Cc: Andre Maasikas Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 52b52529ff3..8e165b22a33 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; }