aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r300.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r--drivers/gpu/drm/radeon/r300.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c
index cde1d3480d93..36b4f7b48d6a 100644
--- a/drivers/gpu/drm/radeon/r300.c
+++ b/drivers/gpu/drm/radeon/r300.c
@@ -787,6 +787,13 @@ static int r300_packet0_check(struct radeon_cs_parser *p,
787 case 15: 787 case 15:
788 track->cb[i].cpp = 2; 788 track->cb[i].cpp = 2;
789 break; 789 break;
790 case 5:
791 if (p->rdev->family < CHIP_RV515) {
792 DRM_ERROR("Invalid color buffer format (%d)!\n",
793 ((idx_value >> 21) & 0xF));
794 return -EINVAL;
795 }
796 /* Pass through. */
790 case 6: 797 case 6:
791 track->cb[i].cpp = 4; 798 track->cb[i].cpp = 4;
792 break; 799 break;