qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH] vga: Start supporting resolution not multip


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [RFC PATCH] vga: Start supporting resolution not multiple of 16 correctly.
Date: Tue, 23 Jul 2013 13:28:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130621 Thunderbird/17.0.7

  Hi,

> Tested-by: Fabio Fantoni <address@hidden>
> 
> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]