drm/radeon/kms: compute GPU addresses correctly on evergreen
authorMarek Olšák <maraeo@gmail.com>
Mon, 19 Mar 2012 02:09:33 +0000 (03:09 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Mar 2012 08:44:29 +0000 (08:44 +0000)
commit788571313870610bd7eb444e0fdc86f7e5541ee2
treed793645cdc98918ca5323d8a555b0a45f11f4f79
parent7df7c547c5aada8c6b9ee5ce14139e0ff5c66369
drm/radeon/kms: compute GPU addresses correctly on evergreen

There are also two fixes:
- In DRAW_INDEX_2, we read idx_value, but should have read idx+1.
- When correcting SQ_VTX_CONSTANT_WORD1_0.SIZE, we should subtract
  the offset.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_cs.c