Bug 8277 - GL_ARB_texture_rectangle not working in i965
Summary: GL_ARB_texture_rectangle not working in i965
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 6.5
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
: 8278 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-14 11:35 UTC by German Monroy
Modified: 2006-10-16 14:05 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Garbled windows under SLED10-64 (175.88 KB, image/png)
2006-09-29 18:18 UTC, German Monroy
Details
Garbled windows under SLED10-64 (after moving windows) (242.63 KB, image/png)
2006-09-29 18:20 UTC, German Monroy
Details
No garbled images during rain animation (242.63 KB, image/png)
2006-09-29 18:20 UTC, German Monroy
Details
Garbled windows under SLED10-64 (another take) (166.17 KB, image/png)
2006-09-29 18:25 UTC, German Monroy
Details
Updated Mesa rpm with XGL support for i965 (1.65 MB, application/octet-stream)
2006-09-29 18:33 UTC, German Monroy
Details
Sources of updated Mesa rpm (2.08 MB, application/octet-stream)
2006-09-29 18:34 UTC, German Monroy
Details
32 bit version in case you want to compare (1.56 MB, application/octet-stream)
2006-09-29 18:35 UTC, German Monroy
Details

Description German Monroy 2006-09-14 11:35:45 UTC
Steps to reproduce:

1) First method:

- Install SLED10 in a G965/Q965/946GZ system.  Download and install the kernel-
drm, kernel-agp, xorg and Mesa rpms from 
http://software.opensuse.org/download/home:/sndirsch/SLED10_SDK_Extras/
- Enable XGL with `gnome-xgl-switch -e' or from the control panel and reboot.
- Start X.  You should be able to rotate the cube with Ctrl-Alt+arrow-keys.  
The UI is responsive, but the panels and windows are displayed a solid blocks 
of color.

2) Second Method

- Install SLED10 in a G965/Q965/946GZ system.  
- Install Xorg 7.1.1 (1.1.1) with xf86-video-i810-1.6.4 and Mesa 6.5.1 and 
make /usr/X11R6 link to the the new Xorg
- create a symbolic link in Xorg's 7.1.1 bin directory to the Xgl that ships 
with SLED10 (e.g. /usr/X11R6.orig/bin/Xgl)
- Run "Xgl&" 
- Open a terminal with "gnome-terminal".  You will get empty boxes: no 
textures, no letters. 

This problem doesn't occur in i915.

According to Dave Reveman (developer of Xgl/compiz) who I'll allow myself to 
quote:
"Problem is that GL_ARB_texture_rectangle is not working. It's present in
the extensions string but it's like the GL_TEXTURE_RECTANGLE target is
ignored. Hence compiz ends up drawing with black instead of the actual
window content. Windows with power-of-two dimensions works fine
though :)"
Comment 1 Eric Anholt 2006-09-14 13:08:01 UTC
*** Bug 8278 has been marked as a duplicate of this bug. ***
Comment 2 German Monroy 2006-09-29 18:15:09 UTC
I backported Keith Withwell's `Support ARB_texture_rectangle’ commitment to the
Mesa development tree into SLED10.  I also had to apply to i965 a patch that
Novell had applied to i915 to make let windows appear in XGL
(dri-copy-sub-buffer-intel.diff)

The good news: the cube rotates, windows wobble, fading works, etc.

The bad news: fine in SLED10 32 bits.  In 64 bits you'll get the attached
garbled windows any time there is no animation working (for example there is no
problem if you leave the rain effect -shift-F9- on all the time).  See attached
screenshots.
Comment 3 German Monroy 2006-09-29 18:18:18 UTC
Created attachment 7207 [details]
Garbled windows under SLED10-64
Comment 4 German Monroy 2006-09-29 18:20:00 UTC
Created attachment 7208 [details]
Garbled windows under SLED10-64 (after moving windows)
Comment 5 German Monroy 2006-09-29 18:20:34 UTC
Created attachment 7209 [details]
No garbled images during rain animation
Comment 6 German Monroy 2006-09-29 18:25:32 UTC
Created attachment 7210 [details]
Garbled windows under SLED10-64 (another take)
Comment 7 German Monroy 2006-09-29 18:31:58 UTC
All that's needed to reproduce is SLED10 64 bit-version, the 
 intel-i810-agpgart-kmp, intel-i810-drm-kmp and intel-i810-xorg-x11 rpms from:

http://software.opensuse.org/download/home:/sndirsch/SLED10_SDK_Extras/

and the updated Mesa rpm that I am attaching to this bugzilla.
Comment 8 German Monroy 2006-09-29 18:33:06 UTC
Created attachment 7211 [details]
Updated Mesa rpm with XGL support for i965
Comment 9 German Monroy 2006-09-29 18:34:20 UTC
Created attachment 7212 [details]
Sources of updated Mesa rpm
Comment 10 German Monroy 2006-09-29 18:35:43 UTC
Created attachment 7213 [details]
32 bit version in case you want to compare
Comment 11 German Monroy 2006-09-29 18:38:52 UTC
Additional info:
- in a 945G system both 32 bits and 64 bits run XGL ok
Comment 12 German Monroy 2006-10-03 18:56:21 UTC
Additional info:
 Problem only affects the edges of the windows (window manager) when opacity 
is set to exactly 100%.   Transparent windows are okay.
Comment 13 German Monroy 2006-10-10 18:18:32 UTC
Also happening in rawhide (FC6 test3 + manual creation of initrd due to bug +
`yum update *kernel* *xorg* *mesa*'  + `yum install *compiz*') in x86_64 only. 
32 bits is fine.

See:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=209318
Comment 14 German Monroy 2006-10-16 14:04:34 UTC
This problem has just been solved upstream by Keith Whitwell.

Please see patch (1 line long!) in the diff for Rev1.2 of:
http://webcvs.freedesktop.org/mesa/Mesa/src/mesa/drivers/dri/i965/brw_draw_upload.c

Comment 15 German Monroy 2006-10-16 14:05:00 UTC
I tested in my backport of the driver to SLED10 and in FC6 Test3 (updated as of
today) and this patch fixes the problem.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.