Bug#389289: libgl1-mesa-dri: R200 driver flips reflection cube maps

Dan Torop dtorop934 at gmail.com
Sun Sep 24 22:53:43 UTC 2006


Package: libgl1-mesa-dri
Version: 6.5.0.cvs.20060524-1.1
Severity: normal

When using GL_ARB_texture_cube_map with the R200 DRI driver and
GL_REFLECTION_MAP_ARB, the generated texture coordinates are flipped
from what they should be.  That is, rotating the texture 180 degrees
around the X axis and then 180 degrees around the Y axis will result in
a "correct" image.

I'm judging "correct" by comparing it to non-DRI MESA using the GLX
Indirect renderer, and also compared this to ATI's proprietary fglrx
renderer.

I will try to attach the following:

- A modification of Brian Paul's cube map demo program from 2000, slightly
modified and with initial comments describing the problem.

- Images of the demo's output for different renderers.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libgl1-mesa-dri depends on:
ii  libc6             2.3.6.ds1-4            GNU C Library: Shared libraries
ii  libdrm2           2.0.1-1                Userspace interface to kernel DRM 
ii  libexpat1         1.95.8-3.3             XML parsing C library - runtime li
ii  libgl1-mesa-glx   6.5.0.cvs.20060524-1.1 A free implementation of the OpenG

libgl1-mesa-dri recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cubemap.c
Type: text/x-c
Size: 9497 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/cubemap-0001.bin
-------------- next part --------------
CC=  gcc

LDFLAGS=-L/usr/X11R6/lib
LIBS= -lglut -lGL -lGLU -lX11 -lXext -lXmu -lXi -lm

TARGET = cubemap
OBJS = cubemap.o

.c.o:
	$(CC) -Wall -O2 -c -o $@ $<

$(TARGET): $(OBJS) 
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

clean:
	$(RM) $(TARGET) $(OBJS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r200-reflection.png
Type: image/png
Size: 3940 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/r200-reflection-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r200-normal.png
Type: image/png
Size: 2885 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/r200-normal-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-reflection.png
Type: image/png
Size: 3989 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/mesa-reflection-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-normal.png
Type: image/png
Size: 2907 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/mesa-normal-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ati-reflection.png
Type: image/png
Size: 3964 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/ati-reflection-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ati-normal.png
Type: image/png
Size: 2886 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060924/d301eda4/ati-normal-0001.png


More information about the Pkg-mesa-devel mailing list