drm/radeon: update ib_execute for SI (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jul 2012 18:02:29 +0000 (14:02 -0400)
committerChristian König <deathsimple@vodafone.de>
Wed, 18 Jul 2012 11:33:39 +0000 (13:33 +0200)
commita85a7da4c5922e6621526946d5a56b2194692fdd
tree68f23a3706ed03b194910c5beec0bf0ac8e211cf
parent4ef72566f1035fef5abd0913100d13746e066ee3
drm/radeon: update ib_execute for SI (v2)

When submitting a CONST_IB, emit a SWITCH_BUFFER
packet before the CONST_IB.  This isn't strictly necessary
(the driver will work fine without it), but is good practice
and allows for more flexible DE/CE sychronization options
in the future.  Current userspace drivers do not take
advantage of the CE yet.

v2: - clean up code flow a bit
    - no need to flush caches for CONST IB

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/si.c
drivers/gpu/drm/radeon/sid.h