Bug 11261

Summary: RenderSetPictureClipRectangles bug
Product: xorg Reporter: Matthieu Herrb <matthieu.herrb>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium CC: keithp
Version: 7.2 (2007.02)   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 8888    
Attachments:
Description Flags
Test program showing the bug
none
proposed patch none

Description Matthieu Herrb 2007-06-13 15:38:33 UTC
xterm version 225 (and probably other applications) use XftDrawSetClipRectangles() by default to limit the areas in which text is drawn. 
When running xterm-255 on a big endian machine, with a DISPLAY on a little endian machine, no text is displayed. 

The attached test program demonstrates the problem. Just run it on mixed endianess client/server combinaison. 

A detailled analysis of the problem shows that SProcRenderSetPictureClipRectangles fails to swap the xOrigin and yOrigin members of the X request.
Comment 1 Matthieu Herrb 2007-06-13 15:39:42 UTC
Created attachment 10303 [details]
Test program showing the bug
Comment 2 Matthieu Herrb 2007-06-13 15:40:18 UTC
Created attachment 10304 [details] [review]
proposed patch
Comment 3 Matthieu Herrb 2007-06-14 15:15:02 UTC
Committed to master

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.