Commit 6a660f06 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie

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: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d3932d6c
...@@ -1428,6 +1428,9 @@ static void r700_gfx_init(struct drm_device *dev, ...@@ -1428,6 +1428,9 @@ static void r700_gfx_init(struct drm_device *dev,
gb_tiling_config |= R600_BANK_SWAPS(1); gb_tiling_config |= R600_BANK_SWAPS(1);
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, backend_map = r700_get_tile_pipe_to_backend_map(dev_priv->r600_max_tile_pipes,
dev_priv->r600_max_backends, dev_priv->r600_max_backends,
(0xff << dev_priv->r600_max_backends) & 0xff); (0xff << dev_priv->r600_max_backends) & 0xff);
......
...@@ -549,6 +549,9 @@ static void rv770_gpu_init(struct radeon_device *rdev) ...@@ -549,6 +549,9 @@ static void rv770_gpu_init(struct radeon_device *rdev)
gb_tiling_config |= BANK_SWAPS(1); gb_tiling_config |= BANK_SWAPS(1);
if (rdev->family == CHIP_RV740)
backend_map = 0x28;
else
backend_map = r700_get_tile_pipe_to_backend_map(rdev->config.rv770.max_tile_pipes, backend_map = r700_get_tile_pipe_to_backend_map(rdev->config.rv770.max_tile_pipes,
rdev->config.rv770.max_backends, rdev->config.rv770.max_backends,
(0xff << rdev->config.rv770.max_backends) & 0xff); (0xff << rdev->config.rv770.max_backends) & 0xff);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment