Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154327
b: refs/heads/master
c: b1e3a6d
h: refs/heads/master
i:
  154325: 837a471
  154323: 9fe62c3
  154319: 8c934f2
v: v3
  • Loading branch information
Michel Dänzer authored and Dave Airlie committed Jun 24, 2009
1 parent 5c01d7b commit 1cd2629
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 696d4df1dbfe0b054e94c1990b49c1727ffc1ff0
refs/heads/master: b1e3a6d1c4d0ac75ad8289bcfd69efcc9b1bc6e5
20 changes: 20 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@
#include "radeon_asic.h"
#include "atom.h"

/*
* Clear GPU surface registers.
*/
static void radeon_surface_init(struct radeon_device *rdev)
{
/* FIXME: check this out */
if (rdev->family < CHIP_R600) {
int i;

for (i = 0; i < 8; i++) {
WREG32(RADEON_SURFACE0_INFO +
i * (RADEON_SURFACE1_INFO - RADEON_SURFACE0_INFO),
0);
}
}
}

/*
* GPU scratch registers helpers function.
*/
Expand Down Expand Up @@ -496,6 +513,9 @@ int radeon_device_init(struct radeon_device *rdev,
radeon_errata(rdev);
/* Initialize scratch registers */
radeon_scratch_init(rdev);
/* Initialize surface registers */
radeon_surface_init(rdev);

/* TODO: disable VGA need to use VGA request */
/* BIOS*/
if (!radeon_get_bios(rdev)) {
Expand Down

0 comments on commit 1cd2629

Please sign in to comment.