- test-texture.c
gcc -o test-texture test-texture.c -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lGL -lGLU
This will run through various permutations. Click on the "Bad" button if it looks wrong, and it will go on to the next test. Click on the "Good" button when it looks right, and it will print out some text.
If you get a good result, send me the text it printed. If you get no good result, tell me that. No need to post screen shots.
If at all possible, try it on a variety of machines (local and remote, both ways) and in a variety of bit depths.
Thanks!
Update: <LJ-CUT text=" the results so far... "> Ok, here are the results so far. I can't make any sense of this! Assuming people gave me good data, it seems just totally random what works and what doesn't.
First 5 columns are "Packed, Endian, Bytes, Bits, BPP."
N | B | B | B | 32 | BGRA | INT_8_8_8_8_REV | ppc 1.1 ATI-1.3.26 |
N | B | B | B | 32 | BGRA | INT_8_8_8_8_REV | ppc 1.5 ATI-1.3.36 |
Y | B | B | B | 32 | BGRA | INT_8_8_8_8_REV | ppc 1.2 (1.5 Mesa 6.2.1) |
N | B | B | B | 16 | BGRA | SHORT_4_4_4_4_REV | ppc 1.3 NVIDIA-1.3.36 |
N | B | B | B | 16 | BGRA | SHORT_1_5_5_5_REV | ppc 1.5 NVIDIA-1.3.36 |
N | B | B | B | 32 | RGBA | INT_8_8_8_8_REV | ppc 1.1 ATI-1.3.26 |
N | B | B | B | 32 | RGBA | INT_8_8_8_8_REV | sun4u 1.3 Sun OpenGL 1.3 |
N | B | L | L | 32 | BGRA | INT_8_8_8_8 | irix 1.5.2 NVIDIA 66.29 |
N | B | L | L | 32 | BGRA | INT_8_8_8_8 | sun4u 1.5.2 NVIDIA 66.29 |
N | B | L | L | 32 | RGBA | BYTE | parisc 1.3 Mesa 4.0.4 |
N | B | L | L | 32 | RGBA | INT_8_8_8_8 | irix64 1.5.2 NVIDIA 66.29 |
N | B | L | L | 32 | RGBA | INT_8_8_8_8 | sun4u 1.5.2 NVIDIA 66.29 |
N | L | L | L | 32 | BGRA | INT_8_8_8_8_REV | i686 1.3 Mesa 4.0.4 |
Y | L | L | L | 32 | BGRA | INT_8_8_8_8_REV | i686 1.2 Mesa 4.0.4 |
Y | L | L | L | 32 | BGRA | INT_8_8_8_8_REV | i686 1.2 Mesa 6.1 |
Y | L | L | L | 32 | RGBA | INT_8_8_8_8_REV | i686 1.2 Mesa 4.0.4 |
Y | L | L | L | 32 | RGBA | INT_8_8_8_8_REV | i686 1.4.1 NVIDIA 53.36 |
Y | L | L | L | 32 | RGBA | INT_8_8_8_8_REV | i686 1.5.1 NVIDIA 61.11 |
Y | L | L | L | 32 | RGBA | INT_8_8_8_8_REV | i686 1.5.2 NVIDIA 66.29 |
Here we go:
System: Linux ppc 2.6.10-2-powerpc
Server: The X.Org Foundation 11.0 60801099
OpenGL: 1.2 (1.5 Mesa 6.2.1)
Packed: Yes
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x23 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
On my Intel box, local display:
System: Linux i686 2.6.10-1-k7
Server: The XFree86 Project, Inc 11.0 40300001
OpenGL: 1.2 Mesa 4.0.4
Packed: Yes
Endian: Little
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x27 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Display on my Intel box, client being run on my PowerPC laptop, all over SSH:
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 128 (XFree86-DRI)
Minor opcode of failed request: 1 ()
Serial number of failed request: 6185
Current serial number in output stream: 6185
Too bad :-(
Took a couple of goes to get it going, but as requested....
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.1 ATI-1.3.26
Packed: No
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
Three bad results, then a good result on "Mac OS X 10.3.7".
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.3 NVIDIA-1.3.36
Packed: No
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Trying again in 16-bit (aka "thousands"), the window appears then seg-faults before drawing any content:
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Segmentation fault
I guess GL might be reading off the end of the bitmap data in some of the bad cases; I put up a new version that allocates a bunch of extra space, try again?
Not sure if you need to see the list of failed ones, but anyway here is the result on mac OS 10.3.7 in 16-bit:
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGB UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: (null)
Trying: 3 BGR UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: (null)
Trying: 3 RGB UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: (null)
Trying: 3 BGR UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: (null)
Trying: 3 RGB UNSIGNED_SHORT_5_6_5
Trying: 3 BGR UNSIGNED_SHORT_5_6_5
gluBuild2DMipmaps says: (null)
Trying: 3 RGB UNSIGNED_SHORT_5_6_5_REV
Trying: 3 BGR UNSIGNED_SHORT_5_6_5_REV
gluBuild2DMipmaps says: (null)
Trying: 3 RGBA UNSIGNED_SHORT_4_4_4_4
Trying: 3 BGRA UNSIGNED_SHORT_4_4_4_4
Trying: 3 RGBA UNSIGNED_SHORT_4_4_4_4_REV
Trying: 3 BGRA UNSIGNED_SHORT_4_4_4_4_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.3 NVIDIA-1.3.36
Packed: No
Endian: Big
Root: 1024 x 768 x 15
Image: 640 x 400 x 15
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 00007C00 000003E0 0000001F
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_SHORT_4_4_4_4_REV
Mac OS X 10.3.7 with Apple's X11 implementation, running under "Millions of Colors":
"Thousands of colors" (e.g. 16-bit color) failed in all modes. "3 RGB UNSIGNED_SHORT_5_6_5_REV" comes the closest - the background is yellowish, the colors are reversed (BGR -> RGB), and there's some "blocking" on the "red" and "gray" color bars - but at least the format is mostly correct. A bunch of formats consistently throw the error
and I'm wondering if the correct format was one of those.
256-color mode wouldn't run at all:
Follow-up: "Thousands" (16-bit) mode works with the added modeline:
If anyone else has trouble in 16-bit modes:
Note that you'll have to add some extra code to display them properly in the readout. That's your problem, not mine.
Ok, updated.
And an official result for OS X in 16-bit mode, now.
I'll bet 256 color mode is running in PseudoColor instead of TrueColor. Maybe there's some way to configure the Apple X server to come up in 8-bit TrueColor? That's the only way the test will work.
Getting yellow instead of black or white means that one of the color channels is swapped with "A", the spare byte. Getting blocking within the ramps means that the bits within each byte are the wrong way around. (The ramp will be sawtoothy, changing direction.)
Maybe there's some way to configure the Apple X server to come up in 8-bit TrueColor? That's the only way the test will work.
Not that I know of. The only real display configuration (ha!) for the Apple X server is a single dropdown in the preferences that lets you select between color modes { "From Display", "256 colors", "Thousands", "Millions" } - "From Display" uses whatever depth the monitor's natively set to.
See above for 16-bit success.
feynman:~/src mstyne$ ./test-texture Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.5 NVIDIA-1.3.36
Packed: No
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Linux x86_64 2.6.10-1.9_FC2smp
Server: The X.Org Foundation 11.0 60700000
OpenGL: 1.5.2 NVIDIA 66.29
Packed: Yes
Endian: Little
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
--
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
System: IRIX64 IP27 6.5
Server: The X.Org Foundation 11.0 60700000
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8
--
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
System: SunOS sun4u 5.8
Server: The X.Org Foundation 11.0 60700000
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8
You're running Debian?
It's funny, given this output, you could fingerprint distros like queso.
I get a black box on top with the good/bad buttons below. The black area never changed. I kept clicking "bad" until I ran out of choices:
error: nothing left to try!
My info:
System: Mandrake 10.0 Linux, 2.6.3-15mdk i686
OpenGL pkgs:
libMesaglut3-5.0.2-2mdk
libMesaGL1-5.0.2-2mdk
libMesaGLU1-5.0.2-2mdk
libMesaGLU1-devel-5.0.2-2mdk
I suck.
Is this what you were asking for with remote/local?
Local machine:
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.9-1-686
Server: The XFree86 Project, Inc 11.0 40300001
OpenGL: 1.2 Mesa 4.0.4
Packed: Yes
Endian: Little
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x24 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
Compile on remote machine (laptop), ssh tunnelled to same local machine:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.9-2-686
Server: The XFree86 Project, Inc 11.0 40300001
OpenGL: 1.3 Mesa 4.0.4
Packed: No
Endian: Little
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x24 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
System: IRIX IP32 6.5
Server: Gentoo Linux (The X.Org Foundation 6.8.1.901, revision r0-0.3.3) 11.0 60801901
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Big
Root: 1152 x 864 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8
-----
System: SunOS sun4u 5.9
Server: Gentoo Linux (The X.Org Foundation 6.8.1.901, revision r0-0.3.3) 11.0 60801901
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Big
Root: 1152 x 864 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.3 ATI-1.3.36
Packed: No
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.5 ATI-1.3.36
Packed: No
Endian: Big
Root: 1280 x 854 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Redhat 9 on a Dell P4.
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.4.20-18.9smp
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.4.1 NVIDIA 53.36
Packed: Yes
Endian: Little
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
Here's the same sun4u box as before:
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: SunOS sun4u 5.8
Server: Sun Microsystems, Inc. 11.0 6410
OpenGL: 1.3 Sun OpenGL 1.3 patch 113886-17 for Solaris
Packed: No
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 000000FF 0000FF00 00FF0000
Visual: 0x2c TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
no good result with client running on linux, server on OSX (16 bit).
For curiosity's sake, if you work it out, could you please post your findings?
Thanks.
I've got it compiled on my SGI Octane running Xsgi from IRIX 6.5.26, but it doesn't run. It dies with:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 6191
Current serial number in output stream: 6198
It dies on line 632 with the first call to XCreateWindow(). If I run it on a remote XFree86 server it works fine. Something different about XCreateWindow()'s arg list in Xsgi?
Success on the second try from an AIX 4.3 box to an XFree86 server under Cygwin (can only do 32bpp for now):
Output of uname -a for the above:
Linux ho.*.*.ca 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 i686 i386 GNU/Linux
% ./test-texture
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
System: SunOS sun4u 5.9
Server: The Cygwin/X Project 11.0 60700000
OpenGL: 1.2 (1.4 Mesa 5.0.2)
Packed: No
Endian: Big
Root: 1280 x 996 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x22 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8
Setting the Win2000 color to 16 bits makes the window repeat twice at 1/4 size and the gradients are weird but this is when the colors at least said what they were.
% ./test-texture
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: SunOS sun4u 5.9
Server: The Cygwin/X Project 11.0 60700000
OpenGL: 1.2 (1.4 Mesa 5.0.2)
Packed: No
Endian: Big
Root: 1280 x 996 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x22 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
Dunno if this cygwin crap is useful to you, but I'll do sparc -> linux tomorrow.
% ./test-texture
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
System: SunOS sun4u 5.9
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Big
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.7
Server: The X.Org Foundation 11.0 60801000
OpenGL: 1.2 Mesa 6.1
Packed: Yes
Endian: Little
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x27 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
Compiled and running on an Athlon with Debian Linux, but displaying across the network on a SunBlade 100 (works great):
I wish you would unban my primary account, already!
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
System: Linux i686 2.6.5-7.145-default
Server: The XFree86 Project, Inc 11.0 40399902
OpenGL: 1.2 (1.4 Mesa 5.0.2)
Packed: Yes
Endian: Little
Root: 1280 x 1024 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x24 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8
Please ignore my previous post. I was in error as to what I thought it was supposed to look like. I checked out the previous LJ entry and found the proper image to match. Below is the output to get there:
user@host:~/bin> ./test-texture
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGB UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_SHORT_5_6_5
System: Linux i686 2.6.5-7.145-default
Server: The XFree86 Project, Inc 11.0 40399902
OpenGL: 1.2 (1.4 Mesa 5.0.2)
Packed: Yes
Endian: Little
Root: 800 x 600 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x24 TrueColor
Texture: RGB UNSIGNED_SHORT_5_6_5
not to be a tard, but what qualifies as "good" enough for the magic happy "good" button?
does low-res-barely-readable-blurry-and-red-is-really-magenta-but-otherwise-seemingly-okay qualify as "good"?
I guess my "good" report fell into this category as well. I could really only see the content if I fell down to 800x600 or less. Even then it was low-res, blurry, and red was magenta. I cycled through some bad button clicks and a couple of them seemed to marginally better but I'm not clear as to what good should mean.
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGB UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_SHORT_5_6_5
System: Linux i686 2.6.10-1-686
Server: The XFree86 Project, Inc 11.0 40300001
OpenGL: 1.2 Mesa 4.0.4
Packed: Yes
Endian: Little
Root: 1400 x 1050 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x27 TrueColor
Texture: RGB UNSIGNED_SHORT_5_6_5
That was on my Thinkpad T30 P4m laptop with a Radeon 7500 mobility chip, w/Debian unstable versions of the packages.
Replied are the results of running the various tests with my homegrown desktop Athlon XP 2000+ with a Geforce FX5600 (NV31 chipset) with the latest ubuntu hoary packages (and the nvidia binary driver).
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGB UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 BGR UNSIGNED_INT_8_8_8_8_REV
gluBuild2DMipmaps says: invalid operation
Trying: 3 RGB UNSIGNED_SHORT_5_6_5
System: Linux i686 2.6.10-3-k7
Server: The XFree86 Project, Inc 11.0 40300001
OpenGL: 1.3 Mesa 4.0.4
Packed: No
Endian: Little
Root: 1400 x 1050 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x27 TrueColor
Texture: RGB UNSIGNED_SHORT_5_6_5
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.10-1-686
Server: The X.Org Foundation 11.0 60801902
OpenGL: 1.5.2 NVIDIA 66.29
Packed: No
Endian: Little
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.10-3-k7
Server: The X.Org Foundation 11.0 60801902
OpenGL: 1.5.2 NVIDIA 66.29
Packed: Yes
Endian: Little
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.5 NVIDIA-1.3.36
Packed: No
Endian: Big
Root: 3200 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x3e TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
7:53am drake /home/jamie/test %./test-texture
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1 (X_CreateWindow)
Serial number of failed request: 6187
Current serial number in output stream: 6194
I'll try displaying this to exceed on my laptop in a few minutes and post the results from there.
Displaying to exceed works and here's your output:
8:10am drake /home/jamie/test %./test-texture
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: IRIX64 IP35 6.5
Server: Hummingbird Ltd. 11.0 9006
OpenGL: 1.5.2
Packed: Yes
Endian: Big
Root: 1600 x 1200 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 000000FF 0000FF00 00FF0000
Visual: 0x32 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
8:11am drake /home/jamie/test %hinv
2 800 MHZ IP35 Processors
CPU: MIPS R16000 Processor Chip Revision: 2.2
FPU: MIPS R16010 Floating Point Chip Revision: 2.2
Main memory size: 2048 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
Secondary unified instruction/data cache size: 4 Mbytes
Integral SCSI controller 2: Version IDE (ATA/ATAPI) IOC4
CDROM: unit 0 on SCSI controller 2
Integral SCSI controller 0: Version QL12160, low voltage differential
Disk drive: unit 1 on SCSI controller 0
Integral SCSI controller 1: Version QL12160, low voltage differential
IOC3/IOC4 serial port: tty3
IOC3/IOC4 serial port: tty4
Graphics board: V12
Integral Gigabit Ethernet: tg0, module 001c01, PCI bus 1 slot 4
Iris Audio Processor: version MAD revision 1, number 1
IOC3/IOC4 external interrupts: 1
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: SunOS sun4u 5.8
Server: Sun Microsystems, Inc. 11.0 6410
OpenGL: 1.2 Sun OpenGL 1.2.1 patch 109543-05 for Solaris
Packed: No
Endian: Big
Root: 1152 x 900 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x22 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
The previous was running locally on a Sun box (I don't know many details about it). This is running remotely from that Sun box, local is FreeBSD 5.3-RELEASE on i386:
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
System: SunOS sun4u 5.8
Server: The X.Org Foundation 11.0 60700000
OpenGL: 1.2 (1.4 Mesa 5.0.2)
Packed: No
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x22 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.3 ATI-1.3.36
Packed: No
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: CYGWIN_NT-5.1 i686 1.5.12(0.116/4/2)
Server: The Cygwin/X Project 11.0 60801000
OpenGL: 1.2 (1.5 Mesa 6.1)
Packed: Yes
Endian: Little
Root: 1280 x 960 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x22 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
-----------------------------------------------------------
Trying: 3 BGRA UNSIGNED_BYTE
System: CYGWIN_NT-5.1 i686 1.5.12(0.116/4/2)
Server: The Cygwin/X Project 11.0 60801000
OpenGL: 1.2 (1.5 Mesa 6.1)
Packed: Yes
Endian: Little
Root: 1280 x 960 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x22 TrueColor
Texture: BGRA UNSIGNED_BYTE
Trying: 3 RGB UNSIGNED_SHORT_5_6_5
System: CYGWIN_NT-5.1 i686 1.5.12(0.116/4/2)
Server: The Cygwin/X Project 11.0 60801000
OpenGL: 1.2 (1.5 Mesa 6.1)
Packed: Yes
Endian: Little
Root: 1280 x 960 x 16
Image: 640 x 400 x 16
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 1280
bpp = 16
rgb = 0000F800 000007E0 0000001F
Visual: 0x22 TrueColor
Texture: RGB UNSIGNED_SHORT_5_6_5
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.7.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.5 NVIDIA-1.3.36
Packed: No
Endian: Big
Root: 2944 x 1435 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Forgot to post details. Powerbook G4 12" (nVidia geForce 5200) running locally under X11.app.
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8 21:17 Feb 09, 05
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8_REV
System: Darwin Power Macintosh 7.8.0
Server: The XFree86 Project, Inc 11.0 40300000
OpenGL: 1.3 ATI-1.3.42
Packed: No
Endian: Big
Root: 1024 x 768 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x36 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV
Sorry I havent had a chance to test this earlier but here it is..
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8
Trying: 3 BGRA UNSIGNED_INT_8_8_8_8
Trying: 3 RGBA UNSIGNED_INT_8_8_8_8_REV
System: IRIX IP32 6.5
Server: Silicon Graphics 11.0 6600
OpenGL: 1.1 Irix 6.5
Packed: Yes
Endian: Big
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = MSBFirst
bits = MSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 000000FF 0000FF00 00FF0000
Visual: 0x39 TrueColor
Texture: RGBA UNSIGNED_INT_8_8_8_8_REV
System: Linux i686 2.6.9
Server: The X.Org Foundation 11.0 60801000
OpenGL: 1.2 (1.5.1 NVIDIA 61.11)
Packed: No
Endian: Little
Root: 1280 x 1024 x 24
Image: 640 x 400 x 24
format = ZPixmap
bytes = LSBFirst
bits = LSBFirst
pad = 32
bpl = 2560
bpp = 32
rgb = 00FF0000 0000FF00 000000FF
Visual: 0x21 TrueColor
Texture: BGRA UNSIGNED_INT_8_8_8_8_REV