[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Qemu-devel] [RFC PATCH] vga: Start supporting resolution not multiple of 16 correctly.



2013/7/23 Gerd Hoffmann <kraxel@xxxxxxxxxx>
 Hi,

> Tested-by: Fabio Fantoni <fabio.fantoni@xxxxxxx>
>
> I tested it for a long time with spice on xen (because qxl will be fully
> working only after adding SSE support on hvm domUs). It works, I think
> it is good to add this and the respective vgabios patch on upstream.

>> Â Â Â Â Âcase VBE_DISPI_INDEX_XRES:
>> - Â Â Â Â Â Âif ((val <= VBE_DISPI_MAX_XRES) && ((val & 7) == 0)) {
>> + Â Â Â Â Â Âif ((val <= VBE_DISPI_MAX_XRES) && ((val & 1) == 0)) {
>> Â Â Â Â Â Â Â Â Âs->vbe_regs[s->vbe_index] = val;
>> Â Â Â Â Â Â Â}
>> Â Â Â Â Â Â Âbreak;

It's not that simple. ÂWith 32bit depths common today it will work fine,
but for lower depths (especially those lower than 8bit) this will give
you broken scanline alignment.

cheers,
 Gerd



In the card I tested the scanline is keep aligned but for this reason is not directly computed by maxx * bits but is something bigger.

Frediano

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.