From 5724f7fb5bea6fa1a354c64c0972c53d70e2f27b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 25 Aug 2008 10:39:36 -0400 Subject: [PATCH] EDID: Publish the whole block in the RANDR property if we've got it. --- hw/xfree86/modes/xf86Crtc.c | 6 ++++-- 1 file 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);