Bug 16998 - Mesa unichrome (openchrome, chrome, chrome9) driver does not support Compiz
Summary: Mesa unichrome (openchrome, chrome, chrome9) driver does not support Compiz
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/Unichrome (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 10:30 UTC by Adam Williamson
Modified: 2012-11-12 13:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Adam Williamson 2008-08-05 10:30:47 UTC
(Extra terms in summary are to be Google friendly, to greater inform the general populace).

This is quite widely known, but as far as I can tell, it's never been actually submitted as a bug report, I figured it deserved that. The unichrome driver in Mesa does not work with Compiz (via AIGLX, I guess it's possible Xgl would work) - I don't actually have one of these cards myself, but I believe it's because support for non-power-of-two textures is lacking. The bottom of http://www.linux-archive.org/fedora-development/7371-driver-transition-via-openchrome.html is probably a good reference.

I don't know if anyone's interested in fixing this, or if it's even possible (see Adam Jackson's speculation that the cards themselves may not support it), but I figured it deserved to be immortalized in a bug report. :)
Comment 1 Thomas Hellström 2008-08-05 11:03:50 UTC
Actually there are two things needed for the unichrome driver to support this stuff

1) Accelerated copypixels.
2) NPOT textures.

The unichromes do not natively support NPOT textures, however they allow the level0 mipmap stride to be arbitrarily specified (if 32 bytes aligned). But the texture width and height still needs to be a power of two.
So the driver can fake support quite easily if texture coordinates are within

0 <= s <= width and
0 <= t <= height.

For primitives with vertex texture coordinates outside of these limits the driver either would need to fall back to software or split the primitive to do wrapping correctly. 

/Thomas
Comment 2 Michel Dänzer 2008-08-06 02:14:27 UTC
(In reply to comment #1)
> 
> 1) Accelerated copypixels.

That shouldn't be necessary with GLX_MESA_copy_sub_buffer.
Comment 3 James Simmons 2012-11-12 13:09:50 UTC
Openchrome is no longer supported by Mesa


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.