summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-08-25 10:39:36 -0400
committerAdam Jackson <ajax@redhat.com>2008-08-25 10:40:17 -0400
commit5724f7fb5bea6fa1a354c64c0972c53d70e2f27b (patch)
tree3f9fa5130e5a5bf5c87cae8b5997bfa6e7cc7866
parent668f89eba3e8f9da7843f5cb350f8dc1e5d7efbe (diff)
EDID: Publish the whole block in the RANDR property if we've got it.
-rw-r--r--hw/xfree86/modes/xf86Crtc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index a5a0a6392..6ceb4261d 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -2631,9 +2631,11 @@ xf86OutputSetEDID (xf86OutputPtr output, xf86MonPtr edid_mon)
size = 0;
if (edid_mon)
{
- if (edid_mon->ver.version == 1)
+ if (edid_mon->ver.version == 1) {
size = 128;
- else if (edid_mon->ver.version == 2)
+ if (edid->flags & EDID_COMPLETE_RAWDATA)
+ size += edid->no_sections * 128;
+ } else if (edid_mon->ver.version == 2)
size = 256;
}
xf86OutputSetEDIDProperty (output, edid_mon ? edid_mon->rawData : NULL, size);