Merge lp://qastaging/~hikiko/compiz/compiz.use-pipeline-with-3d-clipping into lp://qastaging/compiz/0.9.12
Status: | Merged |
---|---|
Approved by: | Stephen M. Webb |
Approved revision: | 3969 |
Merged at revision: | 3964 |
Proposed branch: | lp://qastaging/~hikiko/compiz/compiz.use-pipeline-with-3d-clipping |
Merge into: | lp://qastaging/compiz/0.9.12 |
Diff against target: |
119 lines (+21/-12) 3 files modified
plugins/cube/src/cube.cpp (+10/-8) plugins/opengl/src/vertexbuffer.cpp (+4/-1) plugins/td/src/3d.cpp (+7/-3) |
To merge this branch: | bzr merge lp://qastaging/~hikiko/compiz/compiz.use-pipeline-with-3d-clipping |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephen M. Webb | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
MC Return | Needs Information | ||
Review via email: mp+257611@code.qastaging.launchpad.net |
Commit message
It fixes the 3d windows plugin.
Problem:
The 3d clipping is performed in viewing space (modelview transformation) and should be done inside the shader when we use shaders otherwise the viewing space pipeline operations will be ignored. Compiz used to perform the clipping inside the td plugin using pipeline functions, then it was loading a generic shader program (no clipping operations) to render the windows and then it rendered the 3d quads around the windows using the pipeline (so these were clipped correctly).
Fix:
Added a variable that indicates when to load the shaders and when render using the fixed functions pipeline and use the fixed functions pipeline to render between glEnableOutputC
+small fix in the legacyRendering (pipeline)
Description of the change
It fixes the 3d windows plugin.
Problem:
The 3d clipping is performed in viewing space (modelview transformation) and should be done inside the shader when we use shaders otherwise the viewing space pipeline operations will be ignored. Compiz used to perform the clipping inside the td plugin using pipeline functions, then it was loading a generic shader program (no clipping operations) to render the windows and then it rendered the 3d quads around the windows using the pipeline (so these were clipped correctly).
Fix:
Added a variable that indicates when to load the shaders and when render using the fixed functions pipeline and use the fixed functions pipeline to render between glEnableOutputC
+small fix in the legacyRendering (pipeline)
PASSED: Continuous integration, rev:3948 jenkins. qa.ubuntu. com/job/ compiz- ci/52/ jenkins. qa.ubuntu. com/job/ compiz- vivid-amd64- ci/42 jenkins. qa.ubuntu. com/job/ compiz- vivid-armhf- ci/42 jenkins. qa.ubuntu. com/job/ compiz- vivid-i386- ci/42
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/compiz- ci/52/rebuild
http://