diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2005-03-17 00:04:19 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2005-03-17 00:04:19 +0000 |
commit | d2b0d82024da031257e943c424bd5f63cd0474e3 (patch) | |
tree | ba32222a22d070951d9189fb75ecfad3713838bd /src | |
parent | 8bbfca79a7397e997b875ea8943c1120114904e0 (diff) |
Fixed PCI ShadowStatus initialization for the case that ShadowStatus is
explicitly enabled in the configuration file.
Diffstat (limited to 'src')
-rw-r--r-- | src/savage_dri.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/savage_dri.c b/src/savage_dri.c index dd24375..aebcf2a 100644 --- a/src/savage_dri.c +++ b/src/savage_dri.c @@ -670,7 +670,11 @@ static Bool SAVAGEDRIMapInit( ScreenPtr pScreen ) psav->ShadowStatus = TRUE; xf86DrvMsg( pScreen->myNum, X_INFO, "[drm] Enabling ShadowStatus for DRI.\n" ); + } + /* If shadow status is manually or automatically enabled, use a + * page in system memory. */ + if ( psav->ShadowStatus ) { pSAVAGEDRIServer->status.size = 4096; /* 1 page */ if ( drmAddMap( psav->drmFD, 0, pSAVAGEDRIServer->status.size, |