drm/radeon/kms/r100: fix bug in CS parser
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 19 Jan 2010 01:20:07 +0000 (20:20 -0500)
committerDave Airlie <airlied@linux.ie>
Wed, 20 Jan 2010 22:18:18 +0000 (08:18 +1000)
commitcf57fc7aa2ac61d02a29550b99db6a01ccd7917c
treef266175928615dc0543d0ee4911f939e3e8d549c
parent828153e29206196552c2cc34461ad7e5b93e3f22
drm/radeon/kms/r100: fix bug in CS parser

The first dword of PACKET3_3D_DRAW_IMMD maps to
SE_VTX_FMT so the vertex size is part of the draw
packet.

This patch fixes a possible case where you have a
command buffer that does not contain SE_VTX_FMT
register write, but does contain PACKET3_3D_DRAW_IMMD.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/radeon/r100.c