9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Tim Newsham <newsham@lava.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] vga and vmware
Date: Mon, 17 Aug 2009 08:30:10 -1000	[thread overview]
Message-ID: <Pine.BSI.4.64.0908170828060.12479@malasada.lava.net> (raw)
In-Reply-To: <8d5e7486d802dd452d2f54d3b2dc1039@quanstro.net>

>> /dev/vgactl says 0xe0000000 has 0x3c0000 mapped.  Enough for
>> 1024x768x4 bytes but not enoug hfor 1280x1024x4 bytes.  I
>> patched vgavmware.c line 179 to allocate 2*vmrd(vm, Rfbsize)
>> instead of vmrd(vm, Rfbsize) and now I'm able to go into 1280x1024x8
[...]

> why would 8 bit color require 4 bytes-per-pixel?

I don't know.  I just know that the libdraw primitives were
going off the edge of allocated memory and the ctl file said
something about "x8r8g8b8" so I got out the calculator and
noticed that if there are 4 bytes per pixel then I would
expect 1024x768 to fit and 1280x1024 not to.  I plead ignorance
on how the plan9 vga system is actually set up.

> - erik

Tim Newsham
http://www.thenewsh.com/~newsham/



      reply	other threads:[~2009-08-17 18:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-16 20:35 Tim Newsham
2009-08-17  0:23 ` Devon H. O'Dell
2009-08-17  2:41 ` Tim Newsham
2009-08-17 13:39   ` erik quanstrom
2009-08-17 18:30     ` Tim Newsham [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSI.4.64.0908170828060.12479@malasada.lava.net \
    --to=newsham@lava.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).