drm/radeon/kms/evergreen: set accel_enabled
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 3 Jun 2010 23:00:03 +0000 (19:00 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Jun 2010 23:34:42 +0000 (09:34 +1000)
commit148a03bc0b0e3ef153d0cade7bc88e9b14edfb7a
treeec5cf10676d6f69848952f6a89b475eb664333e2
parent9b8eb4d14767209c83087063352cd04266ecdfd1
drm/radeon/kms/evergreen: set accel_enabled

This is needed to enable accel in the ddx.  However,
due to a bug in older versions of the ddx, it relies
on accel being disabled in order to load properly on
evergreen chips.  To maintain compatility, we add a new
get accel param and call that from the ddx.  The old one
always returns false for evergreen cards.

[this fixes a regression with older userspaces on newer kernels].

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c
include/drm/radeon_drm.h