EDID: Publish the whole block in the RANDR property if we've got it.

This commit is contained in:
Adam Jackson 2008-08-25 10:39:36 -04:00
parent 668f89eba3
commit 5724f7fb5b

View File

@ -2631,9 +2631,11 @@ xf86OutputSetEDID (xf86OutputPtr output, xf86MonPtr edid_mon)
size = 0; size = 0;
if (edid_mon) if (edid_mon)
{ {
if (edid_mon->ver.version == 1) if (edid_mon->ver.version == 1) {
size = 128; 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; size = 256;
} }
xf86OutputSetEDIDProperty (output, edid_mon ? edid_mon->rawData : NULL, size); xf86OutputSetEDIDProperty (output, edid_mon ? edid_mon->rawData : NULL, size);