drm/radeon/kms: r600 CS parser fixes
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 6 Aug 2010 06:54:05 +0000 (02:54 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Aug 2010 00:46:47 +0000 (10:46 +1000)
commit1729dd33d20bddf1b3f371f3090f0cfd6be50b7a
treee5f6ac18c7b0771a23ff377ec21584406e7db332
parent43861f713c17223cd0fa87dcb57308b7cde7c10a
drm/radeon/kms: r600 CS parser fixes

- buffer offsets in the base regs are 256b aligned so
shift properly when comparing, fixed by Andre Maasikas
- mipmap size was calculated wrong when nlevel=0
- texture bo offsets were used after the bo base address was added
- vertex resource size register is size - 1, not size

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: Andre Maasikas <amaasikas@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_cs.c