]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms/evergreen: set the clear state to the blit state
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 21 Oct 2010 17:31:38 +0000 (13:31 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Oct 2010 04:42:39 +0000 (14:42 +1000)
commitb48f8f98216e72957e540c20b2a89609d2f0633f
tree8fce4594a1d1b8854d219f5297ccb5ecfc263b10
parent313bb5ff454ca72611910fe0d2ca2451addd3c03
drm/radeon/kms/evergreen: set the clear state to the blit state

The hw stores a default clear state for registers in the context
range that can be initialized when the CP is set up.  Set the
blit state as the default clear state and use the CLEAR_STATE
packet to load the blit state rather than loading it from an IB.
This reduces overhead when doing bo moves using the 3D engine.

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/evergreen_blit_kms.c
drivers/gpu/drm/radeon/evergreen_blit_shaders.c
drivers/gpu/drm/radeon/evergreend.h