Bug 870808 - Clipping is performed incorrectly when using shaders with intel and nouveau (maybe radeon, i'll check it) driver.
Summary: Clipping is performed incorrectly when using shaders with intel and nouveau (...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 17
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-28 21:09 UTC by Blade_Arma
Modified: 2013-07-31 17:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-31 17:58:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
intel-i915-with-shader (14.90 KB, image/png)
2012-10-28 21:11 UTC, Blade_Arma
no flags Details
nvidia-Nouveau-with-shader (6.98 KB, image/png)
2012-10-28 21:11 UTC, Blade_Arma
no flags Details
amd-Catalyst-with-shader (6.72 KB, image/png)
2012-10-28 21:12 UTC, Blade_Arma
no flags Details
nvidia-NVIDIA-with-shader (8.04 KB, image/png)
2012-10-28 21:12 UTC, Blade_Arma
no flags Details
radeon with shader (14.52 KB, image/png)
2012-10-29 13:44 UTC, Alexei Panov
no flags Details

Description Blade_Arma 2012-10-28 21:09:52 UTC
Description of problem:
Clipping is performed incorrectly when using shaders with intel and nouveau (maybe radeon, i'll check it) driver.

Test to reproduce the bug:
git clone https://github.com/edgbla/opengl-clipping-plane-bug.git
cd opengl-clipping-plane-bug 
make
./test
Use SPACE to toggle between shader state (enable/disable).

This simple test draws a quad with vertices coordinates (0,0,0), (640,0,0), (640,480,0), (0,480,0) and setup a clipping plane with plane equation coefficients (1,0,0,0), model view is identity.
According to documentation http://www.opengl.org/sdk/docs/man2/xhtml/glClipPlane.xml all vertices must be in clipping plane, but when using shaders half of quad is clipped instead.

Version-Release number of selected component (if applicable):
X.Org X Server 1.12.3
mesa-libGL-8.0.4-1
xorg-x11-drv-intel-2.20.8-1
xorg-x11-drv-nouveau-0.0.16-37

How reproducible:
Always.

Actual results:
Object is half-clipped.
(see screenshots "intel-i915-with-shader.png" "nvidia-Nouveau-with-shader.png")

Expected results:
Object is fully shown.
(see screenshots "amd-Catalyst-with-shader.png" "nvidia-NVIDIA-with-shader.png")

Additional info:

Comment 1 Blade_Arma 2012-10-28 21:11:19 UTC
Created attachment 634726 [details]
intel-i915-with-shader

Comment 2 Blade_Arma 2012-10-28 21:11:45 UTC
Created attachment 634727 [details]
nvidia-Nouveau-with-shader

Comment 3 Blade_Arma 2012-10-28 21:12:14 UTC
Created attachment 634732 [details]
amd-Catalyst-with-shader

Comment 4 Blade_Arma 2012-10-28 21:12:35 UTC
Created attachment 634733 [details]
nvidia-NVIDIA-with-shader

Comment 5 Alexei Panov 2012-10-29 13:42:06 UTC
I can confirm this bug for radeon video driver and Fedora 18.

packaes:
xorg-x11-server-Xorg-1.13.0-5.fc18.x86_64
mesa-libGL-9.0-3.fc18.x86_64
xorg-x11-drv-ati-7.0.0-0.7.20121015gitbd9e2c064.fc18.x86_64

lspci:
06:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Caicos [Radeon HD 6450]

Comment 6 Alexei Panov 2012-10-29 13:44:04 UTC
Created attachment 635018 [details]
radeon with shader

Comment 7 Fedora End Of Life 2013-07-03 19:28:30 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2013-07-31 17:58:08 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.