Re: [PATCH 5/8] vga: optimize horizontal pel panning in 256-color modes

2024-01-02 Thread BALATON Zoltan
On Mon, 1 Jan 2024, Paolo Bonzini wrote: Il dom 31 dic 2023, 17:27 BALATON Zoltan ha scritto: palette = vga->last_palette; hpel = (hpel >> 1) & 3; + +/* For 256 color modes, we can adjust the source address and write directly + * to the destination, even if horizontal pel pan

Re: [PATCH 5/8] vga: optimize horizontal pel panning in 256-color modes

2024-01-01 Thread Paolo Bonzini
Il dom 31 dic 2023, 17:27 BALATON Zoltan ha scritto: > > palette = vga->last_palette; > > hpel = (hpel >> 1) & 3; > > + > > +/* For 256 color modes, we can adjust the source address and write > directly > > + * to the destination, even if horizontal pel panning is active. > Howeve

Re: [PATCH 5/8] vga: optimize horizontal pel panning in 256-color modes

2023-12-31 Thread BALATON Zoltan
On Sun, 31 Dec 2023, Paolo Bonzini wrote: Do not go through the panning buffer unless the address wraps in the middle of the line. Signed-off-by: Paolo Bonzini --- hw/display/vga-helpers.h | 12 1 file changed, 12 insertions(+) diff --git a/hw/display/vga-helpers.h b/hw/display/vga

[PATCH 5/8] vga: optimize horizontal pel panning in 256-color modes

2023-12-31 Thread Paolo Bonzini
Do not go through the panning buffer unless the address wraps in the middle of the line. Signed-off-by: Paolo Bonzini --- hw/display/vga-helpers.h | 12 1 file changed, 12 insertions(+) diff --git a/hw/display/vga-helpers.h b/hw/display/vga-helpers.h index 29933562c45..60ddb27d946