diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-02-19 16:07:02 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-23 09:46:22 +1000 |
commit | 6271901d828b34b27607314026deaf417f9f9b75 (patch) | |
tree | d967c5aff6b08292f03a1bf7fbb4f8ae4c66652c /drivers/gpu/drm/radeon/r600_cp.c | |
parent | 8e36113082821980c60ce89a6c5d45fc9492fc26 (diff) | |
download | kernel_samsung_tuna-6271901d828b34b27607314026deaf417f9f9b75.zip kernel_samsung_tuna-6271901d828b34b27607314026deaf417f9f9b75.tar.gz kernel_samsung_tuna-6271901d828b34b27607314026deaf417f9f9b75.tar.bz2 |
drm/radeon/rv740: fix backend setup
This patch fixes occlusion queries and rendering errors
on rv740 boards. Hardcoding the backend map is not an optimal
solution, but a better fix is being worked on.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_cp.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_cp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c index d9712a1..fca96aa 100644 --- a/drivers/gpu/drm/radeon/r600_cp.c +++ b/drivers/gpu/drm/radeon/r600_cp.c @@ -1439,9 +1439,12 @@ static void r700_gfx_init(struct drm_device *dev, gb_tiling_config |= R600_BANK_SWAPS(1); - backend_map = r700_get_tile_pipe_to_backend_map(dev_priv->r600_max_tile_pipes, - dev_priv->r600_max_backends, - (0xff << dev_priv->r600_max_backends) & 0xff); + if ((dev_priv->flags & RADEON_FAMILY_MASK) == CHIP_RV740) + backend_map = 0x28; + else + backend_map = r700_get_tile_pipe_to_backend_map(dev_priv->r600_max_tile_pipes, + dev_priv->r600_max_backends, + (0xff << dev_priv->r600_max_backends) & 0xff); gb_tiling_config |= R600_BACKEND_MAP(backend_map); cc_gc_shader_pipe_config = |