Skip to contentSkip to conversation

qemu-system-sparc video problem on 16 bit displays

Qemu-devel Juergen Lock 3 participants 4 messages Aug 9, 2006 – Aug 14, 2006

lore
Share & tools
lore
#0 lore raw

Hi!

I was made aware of this by a FreeBSD user, but i suspect the
problem is not specific to FreeBSD hosts: If run on a 16 bit display, qemu-system-sparc' video is messed up like shown here:

	http://img320.imageshack.us/img320/3807/qemusparckd1.png

(pink, and uses only half of the window's width...) It looks okay on 24 bit displays.

Thanx,
Juergen

#1 lore raw

I can confirm this happens under linux also. Never thought to try 24bit.

Quoted 18 lines · Juergen Lock

Hi!

I was made aware of this by a FreeBSD user, but i suspect the
problem is not specific to FreeBSD hosts: If run on a 16 bit display, qemu-system-sparc' video is messed up like shown here:

        http://img320.imageshack.us/img320/3807/qemusparckd1.png

(pink, and uses only half of the window's width...) It looks okay on 24 bit displays.

Thanx,
Juergen

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 1 line
< undrdawg> it was buggy and hung a lot
#2 lore raw
In reply to Juergen Lock
Quoted 8 lines · Juergen Lock

Hi!

I was made aware of this by a FreeBSD user, but i suspect the
problem is not specific to FreeBSD hosts: If run on a 16 bit display, qemu-system-sparc' video is messed up like shown here:

	http://img320.imageshack.us/img320/3807/qemusparckd1.png

(pink, and uses only half of the window's width...) It looks okay on 24 bit displays.

Looks you're telling QEMU that you've got a 16 bit buffer when it's really a 32 bit buffer.

Perhaps we're mixing up bits-per-pixel with depth?

Regards,

Anthony Liguori

Quoted 2 lines

Thanx,
Juergen

#3 lore raw
Quoted 11 lines · Anthony Liguori
Quoted 8 lines · Juergen Lock

Hi!

I was made aware of this by a FreeBSD user, but i suspect the
problem is not specific to FreeBSD hosts: If run on a 16 bit display, qemu-system-sparc' video is messed up like shown here:

      http://img320.imageshack.us/img320/3807/qemusparckd1.png

(pink, and uses only half of the window's width...) It looks okay on 24 bit displays.

Quoted 15 lines

Looks you're telling QEMU that you've got a 16 bit buffer when it's really a 32 bit buffer.

Perhaps we're mixing up bits-per-pixel with depth?

Regards,

Anthony Liguori

Quoted 2 lines

Thanx,
Juergen

Perhaps this in tcx.c?

   switch (ts->ds->depth) {
   case 32:
   f = tcx_draw_line32;
   break;
   case 24:
   f = tcx_draw_line24;
   break;
   default:
   case 8:
   f = tcx_draw_line8;
   break;
   case 0:
   return;
   }

WD

Signature · 1 line
< undrdawg> it was buggy and hung a lot