On Wed, Dec 30, 2009 at 3:02 PM, Chris Evans <[email protected]> wrote:
> I'm interested in a breakdown here. Is it dependent on X server version?
> (e.g. can you say Ubuntu version 9.10+ has it)? Or is it more subtle,
> involving exact gfx chipset and proprietary vs. X.org drivers?
The latter, I believe.
Build the attached program with g++ -o shm shm.cc -lXext and it will
dump what you have.
My computer (karmic, nvidia 185.18.36, Quadro FX 380) says:
XSHM 1.1 (pixmaps: no).
--
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev#include <X11/Xlib.h>
#include <X11/extensions/XShm.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
Display* dpy = XOpenDisplay(NULL);
int major, minor;
Bool pixmaps;
Bool shm = XShmQueryVersion(dpy, &major, &minor, &pixmaps);
if (shm) {
printf("XSHM %d.%d (pixmaps: %s).\n", major, minor, pixmaps ? "yes" : "no");
} else {
printf("No SHM support.\n");
}
return 0;
}