Bug 159343

Summary: default fglrx option (of sax2) render fglrx unusable for Xgl
Product: [openSUSE] SUSE Linux 10.1 Reporter: Christoph Thiel <cthiel>
Component: SaX2Assignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: ms, sndirsch
Version: Beta 8   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christoph Thiel 2006-03-18 15:37:36 UTC
After commeting out all fglrx option in xorg.conf Xgl starts working on my ATI Technologies Inc M10 NT [FireGL Mobility T2].
Comment 1 Stefan Dirsch 2006-03-18 15:42:59 UTC
Device->[X]->Raw->11->Option = "#NoDDC"
Device->[X]->Raw->12->Option = "UseInternalAGPGART" "no"
Device->[X]->Raw->13->Option = "no_accel" "no"
Device->[X]->Raw->14->Option = "no_dri" "no"
Device->[X]->Raw->15->Option = "mtrr" "off"
Device->[X]->Raw->16->Option = "ScreenOverlap" "0"
Device->[X]->Raw->17->Option = "GammaCorrectionI" "0x00000000"
Device->[X]->Raw->18->Option = "GammaCorrectionII" "0x00000000"
Device->[X]->Raw->19->Option = "Capabilities" "0x00000000"
Device->[X]->Raw->20->Option = "CapabilitiesEx" "0x00000000"
Device->[X]->Raw->21->Option = "VideoOverlay" "on"
Device->[X]->Raw->22->Option = "OpenGLOverlay" "off"
Device->[X]->Raw->23->Option = "CenterMode" "off"
Device->[X]->Raw->24->Option = "PseudoColorVisuals" "off"
Device->[X]->Raw->25->Option = "Stereo" "off"
Device->[X]->Raw->26->Option = "StereoSyncEnable" "1"
Device->[X]->Raw->27->Option = "FSAAEnable" "no"
Device->[X]->Raw->28->Option = "FSAAScale" "1"
Device->[X]->Raw->29->Option = "FSAADisableGamma" "no"
Device->[X]->Raw->30->Option = "FSAACustomizeMSPos" "no"
Device->[X]->Raw->31->Option = "FSAAMSPosX0" "0.000000"
Device->[X]->Raw->32->Option = "FSAAMSPosY0" "0.000000"
Device->[X]->Raw->33->Option = "FSAAMSPosX1" "0.000000"
Device->[X]->Raw->34->Option = "FSAAMSPosY1" "0.000000"
Device->[X]->Raw->35->Option = "FSAAMSPosX2" "0.000000"
Device->[X]->Raw->36->Option = "FSAAMSPosY2" "0.000000"
Device->[X]->Raw->37->Option = "FSAAMSPosX3" "0.000000"
Device->[X]->Raw->38->Option = "FSAAMSPosY3" "0.000000"
Device->[X]->Raw->39->Option = "FSAAMSPosX4" "0.000000"
Device->[X]->Raw->40->Option = "FSAAMSPosY4" "0.000000"
Device->[X]->Raw->41->Option = "FSAAMSPosX5" "0.000000"
Device->[X]->Raw->42->Option = "FSAAMSPosY5" "0.000000"
Device->[X]->Raw->43->Option = "UseFastTLS" "0"
Device->[X]->Raw->44->Option = "BlockSignalsOnLock" "on"
Device->[X]->Raw->45->Option = "ForceGenericCPU" "no"
Device->[X]->Raw->46->Option = "EnablePrivateBackZ" "yes"

Christoph, could you check which has been responsible?
Comment 2 Christoph Thiel 2006-03-18 15:59:56 UTC
Actually I didn't really want to try all the N x N different variants -- so, do you have one (or two) option(s) that you'd suspect to be the bad one to start with? ;)
Comment 3 Stefan Dirsch 2006-03-18 19:20:02 UTC
I don't think you need to try all the N x N different variant. Simply remove/add one by one. I personally don't think the FSAAMS* options are responsible. These look like defaults anyway.

BTW, what does mean "did not work before"? What was the problem?
Comment 5 Christoph Thiel 2006-03-20 11:43:44 UTC
Ok, "EnablePrivateBackZ" "yes" is to blame.

(In reply to comment #3)
> BTW, what does mean "did not work before"? What was the problem?

Xgl was hanging in some driver call, which rendered it unusable :( I once debugged it with mhopf, but as we don't have the driver sources, we had no chance to find out what's going wrong.
Comment 6 Stefan Dirsch 2006-03-20 12:00:41 UTC
Hmm. So should we break Xgl or Xinerama?
Comment 7 Christoph Thiel 2006-03-20 12:03:53 UTC
Is this option really needed for Xinerama? I'll give it a try as soon as I'm back in the office tomorrow.
Comment 8 Stefan Dirsch 2006-03-20 12:05:17 UTC
It seems so. See Bug #135708, comment #21.
Comment 9 Matthias Hopf 2006-03-21 11:51:55 UTC
Now my results: 8.23.7 on i386 SL10.1 Beta8:

1st) fglrx *does* work without EnablePrivateBackZ.
     Even OpenGL apps on big desktops (MergedFB) on a Radeon 9700 Pro.
     Xgl seems to work fine as well.
     Christoph, I assume you mean mergedFB when you talk about Xinerama?
2nd) Xgl freezes with EnablePrivateBackZ. No other change.

AFAIK EnablePrivateBackZ was mainly introduced in order to gain some % more speed. I would say we set this option to 'No' for now, as the issues in bug #135708 seem to be fixed in 8.23.7.
Comment 10 Stefan Dirsch 2006-03-21 11:54:39 UTC
Thanks for investigation! Marcus, could you please remove the EnablePrivateBackZ option from FireGL profile again? Thanks.
Comment 11 Christoph Thiel 2006-03-21 11:55:58 UTC
Matthias, ad 1) yes
             2) exactly

=> remove EnablePrivateBackZ ;)
Comment 12 Marcus Schaefer 2006-03-21 15:03:26 UTC
option has been removed