diff options
author | Owain G. Ainsworth <zerooa@googlemail.com> | 2010-04-19 04:05:36 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-21 10:35:32 +1000 |
commit | 761f0de5556e46f166280476185977f720efe586 (patch) | |
tree | d76e2928ccde34aa694720bcdbbb6d521c20959a /src/radeon_probe.h | |
parent | 2059d628c5fb03222a62502cc1b5724bf296a7b3 (diff) |
Make consistent use of fbOffset and share fb mappings.
What we were doing previously was mapping the framebuffer for zaphod for
only this driver instances chunk, however, fbOffset was (rightly) set to
the offset into the whole framebuffer we were using.
Since in some cases we did operations on the FB virtual address +
fbOffset (for example zeroing the framebuffer on entervt) we were
actually pissing all over ourselves in those cases.
Fix this by implementing shared fb mappings like we do for MMIO already,
and whenever we wish to refer to our area of FB space we always use
fbOffset. Fixes zaphod for some users on r600 chipsets, my 4870 is still
behaving strangely on screen 0, but I suspect that is another bug.
Once calculation (in PreInitAccel) is now wrong because of this, however
dri on zaphod does now happen so this is irrelavent, add a comment to
that effect.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_probe.h')
-rw-r--r-- | src/radeon_probe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_probe.h b/src/radeon_probe.h index cab077fe..5b16f271 100644 --- a/src/radeon_probe.h +++ b/src/radeon_probe.h @@ -644,6 +644,7 @@ typedef struct RADEONSaveRec SavedReg; /* Original (text) mode */ void *MMIO; /* Map of MMIO region */ + void *FB; /* Map of FB region */ int fd; /* for sharing across zaphod heads */ } RADEONEntRec, *RADEONEntPtr; |