summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-01-11 11:56:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-01-11 11:56:19 +1000
commit68c1f908be5739692c9f0bde9c23f3dc2a7210ea (patch)
tree4006aa77c0f6d1db21be477ccaa01e7249baa685
parent06499197d6eb07a272a1812e1c8bce886798a1d7 (diff)
remove pNv->VRAMPhysical
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--src/nv_driver.c5
-rw-r--r--src/nv_type.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 1d61c95..f2a2cbc 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -921,13 +921,9 @@ NVMapMem(ScrnInfoPtr pScrn)
{
NVPtr pNv = NVPTR(pScrn);
struct nouveau_device *dev = pNv->dev;
- uint64_t res;
uint32_t tile_mode = 0, tile_flags = 0;
int ret, size;
- nouveau_device_get_param(dev, NOUVEAU_GETPARAM_FB_PHYSICAL, &res);
- pNv->VRAMPhysical=res;
-
size = pScrn->displayWidth * (pScrn->bitsPerPixel >> 3);
if (pNv->Architecture >= NV_ARCH_50 && pNv->tiled_scanout) {
tile_mode = 4;
@@ -1244,7 +1240,6 @@ NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if (pNv->ShadowFB)
ShadowFBInit(pScreen, NVRefreshArea);
- pScrn->memPhysBase = pNv->VRAMPhysical;
pScrn->fbOffset = 0;
NVInitVideo(pScreen);
diff --git a/src/nv_type.h b/src/nv_type.h
index 510ec11..e75c37a 100644
--- a/src/nv_type.h
+++ b/src/nv_type.h
@@ -71,9 +71,6 @@ typedef struct _NVRec {
int NVArch;
Bool Primary;
- /* VRAM physical address */
- unsigned long VRAMPhysical;
-
/* Various pinned memory regions */
struct nouveau_bo * scanout;
struct nouveau_bo * offscreen;